Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ Common helper actions include:
- `implementation:setup:e2e`
- `implementation:test:e2e:run`

`implementation:install` removes the target implementation's `node_modules` and, for Next.js,
`.next` before installing dependencies. Run `pnpm build:pkgs` first when SDK source changes so the
install consumes fresh local tarballs.

You can also pass an implementation-local script name, such as `serve`, `build`, `typecheck`,
`test:e2e:ui`, `test:e2e:compose`, or `test:e2e:ios:build:release`.

Expand Down
2 changes: 1 addition & 1 deletion implementations/node-sdk+web-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"tslib": "2.8.1"
},
"devDependencies": {
"@playwright/test": "1.63.0",
"@playwright/test": "1.64.1",
"@types/express": "5.0.6",
"@types/node": "24.19.2",
"@types/qs": "6.15.1",
Expand Down
2 changes: 1 addition & 1 deletion implementations/node-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"tslib": "2.8.1"
},
"devDependencies": {
"@playwright/test": "1.63.0",
"@playwright/test": "1.64.1",
"@types/express": "5.0.6",
"@types/node": "24.19.2",
"@types/qs": "6.15.1",
Expand Down
16 changes: 9 additions & 7 deletions packages/react-native-sdk/src/ContentfulOptimization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
type ConsentInput,
CoreStateful,
type CoreStatefulConfig,
type EventBuilderConfig,
type EventEmissionResult,
hasOptimizationSelectionStateField,
type OptimizationSelectionState,
Expand Down Expand Up @@ -55,17 +56,18 @@ async function mergeConfig({
}

const storageDefaults = resolveStorageDefaults(defaults)
const eventBuilder: EventBuilderConfig = {
channel: 'mobile',
library: {
name: `${OPTIMIZATION_REACT_NATIVE_SDK_NAME}-${Platform.OS}`,
version: OPTIMIZATION_REACT_NATIVE_SDK_VERSION,
},
}

const mergedConfig = merge(
{
defaults: storageDefaults,
eventBuilder: {
channel: 'mobile',
library: {
name: `${OPTIMIZATION_REACT_NATIVE_SDK_NAME}-${Platform.OS}`,
version: OPTIMIZATION_REACT_NATIVE_SDK_VERSION,
},
},
eventBuilder,
logLevel: AsyncStorageStore.debug ? 'debug' : logLevel,
getAnonymousId:
config.getAnonymousId ??
Expand Down
4 changes: 2 additions & 2 deletions packages/web/web-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"buildTools": {
"bundleSize": {
"gzipBudgets": {
"contentful-optimization-web.umd.js": 37800,
"contentful-optimization-web.umd.js": 40000,
"index.cjs": 11800,
"index.mjs": 12400,
"bridge-support.cjs": 700,
Expand All @@ -162,7 +162,7 @@
"handoff.mjs": 1600,
"analytics.cjs": 12900,
"analytics.mjs": 14100,
"contentful-optimization-web-components.umd.js": 43300,
"contentful-optimization-web-components.umd.js": 45500,
"presentation.cjs": 3600,
"presentation.mjs": 3500,
"tracking-attributes.cjs": 1000,
Expand Down
Loading
Loading