Repository navigation
Release 1.14.0: preserve the published 1.13.4 contracts #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
d44c2b2
fix(release): retain published 1.x contracts for 1.14.0
96b52ad
ci(release): prepare trusted npm publication and compatibility gates
4acb5f7
fix(release): restore 1.13.4 client auth rules and guard dist tags
8614d91
fix(release): restore 1.13.4 timeout and getContext semantics, keep b…
e109c6d
fix(release): add repository for npm provenance and close review test…
c965489
fix(release): restore null-timeout retries and the no-rule read path
eb82c3c
test(release): close the remaining review test gaps
791d211
fix(release): pass explicitly undefined SDK client options through, a…
720bd07
fix(release): read SDK client options with 1.13.4's key set
c81e5d6
fix(release): address release review findings
f697ea9
fix(release): gate the live-units check and test it
f8cd40e
test(release): cover the revalidation missing-unit pin
813134f
perf(release): index loops on attribute paths; pin publish actions
a5d3680
test(release): pin getAttributes() latest-value ordering
8b62ce7
fix(release): treat null parents in audience paths as missing; keep f…
7bdfe3c
fix(release): preserve null-parent audience results from 1.13.4
eb9264a
fix(release): keep rule-condition semantics and restore 1.13.4 audien…
6acdbe7
fix(release): keep IE semver parsing and fail closed on real audience…
cfe6ced
fix(release): mark null-parent errors instead of subclassing TypeError
ea19253
test(release): fail closed on TypeError and truthy-marker audience er…
aa38149
docs(release): state which audience errors fail closed
87ead56
test(release): pin null-parent audience revalidation; fix CHANGELOG line
5196126
fix(release): preserve numeric ClientOptions readers with additive in…
6770fcc
fix(release): keep released constructor parameter types via overloads
4bbfb92
test(release): gate constructor readers and zero-request-timeout retr…
68e54f6
fix(release): retain native expression errors and utility return types
c336181
fix(release): preserve direct getApplicationVersion types and pin unk…
834aebe
fix(release): restore forEach on the audience path, test getContext a…
2396511
perf(release): restore 1.13.4 loop shapes on attribute paths
d17d309
test(release): pin the includeSystemAttributes publish loop; scope th…
abcf7c2
fix(release): classify null-parent audience reads by identity; tighte…
0910afc
test(release): make the npm dry-run probe hermetic; cover an undefine…
5eaec56
test(release): never silently skip the dry-run probe in CI; bound its…
a0b312c
perf(release): precompute the rule key and skip holdout checks on cac…
fa1c655
fix(release): reject a second publish command; fold opt-in attribute …
48e5732
test(release): pin configured environment in rule identity and no-hol…
fbce0cc
fix(release): preserve custom expression hooks on audience evaluation
1b5be09
fix(release): keep JsonExpr structural and recover only stale request…
6194e32
fix(release): build the rule key only from a non-empty string assignm…
d521b31
test(release): cover an empty assignmentRules string as no rules
95f906f
test(release): pin the parseRules error log; restore console spies in…
845ce9b
fix(context): select shared variable winner independently of arm
232801a
test(release): pin initial assignment rule cache
55678b6
fix(context): stop shared variable lookup at an out-of-range winning arm
96aa2c9
fix(context): restore caller default for prototype-named variable keys
1dd5f59
fix(context): expose only the winning experiment for shared variable …
2ceac72
perf(context): resolve shared variable winner without per-read tuples
92ba8cd
docs: note the held-out fallback and out-of-range winner exposure
0bb7c55
fix(context): accept variables named like Object.prototype members
e3814b9
test(context): cover empty and non-object configs with prototype-name…
8fe259e
perf(context): retain ordinary object layouts with safe own-key lookup
4ab001a
perf(context): restrict own-key checks to prototype-named variables
5ca7cd6
perf(context): classify prototype-key configs at indexing time
d526b08
fix(context): queue every exposure of a variable read before user cal…
2a90333
fix(context): defer variable-read callbacks without per-read cost; re…
a82ee6f
perf(context): outline the deferred-callback replay; fix refresh and …
1419d6a
refactor(context): skip the winner's second holdout walk; tidy shared…
76b1269
fix(context): replay deferred callbacks in queue order under one defe…
5360576
test(context): pin single holdout walk, nested treatment() deferral a…
8cbb104
fix(context): bound observer feedback while retaining ordered replay
5e12071
fix(context): bound callback replay by rounds instead of dropping cal…
fd76397
fix(context): keep replay exhaustion sticky until the outer replay ends
af581a0
test(context): pin treatment() exhaustion and its reset; tighten docs
a813be6
test(context): pin the iterator-free candidate walk; correct read cost
391fb9f
fix(context): keep each call's exposure batch intact at the replay limit
f0bf6d7
docs: describe the replay limit batch rule and held-out default
e4664fc
fix(context): restore a refreshed arm's variables; pin post-limit del…
18f1da1
docs: document removed-arm default and per-call batch delivery
7afa2da
test(context): pin switchback slot arm-following, post-limit timer an…
3024f1f
test(context): pin restored prototype-named variables after refresh
365f61f
fix(context): scope treatment() errors and count replay callbacks at …
abc1fbb
test(context): pin replay exhaustion at exact callback boundary
fe38141
test(context): cover replay stack and compatibility boundaries
c121981
docs: clarify shared-key callback and replay semantics
e4d7e99
fix(context): partition replay dispatch at callback budget
2062e21
fix(context): partition replay dispatch at callback budget
a6ec496
fix(context): bound post-limit replay delivery
fe83bc5
fix(context): enforce replay callback budget at dispatch
0d47aae
test(release): reject multiple publish commands
677b470
Merge origin/main (javascript-sdk#69, switchbacks) into release/1.14.…
94c33b3
fix(release): keep TS 3.9 declarations, own-key maps and SemVer tag o…
e3b6827
test(context): pin unset prototype-named units and the mid-round repl…
db9a38b
fix(context): keep every callback queued in the round the replay budg…
9bf3d5c
test(context): pin a second extra read queued before the replay cutoff
452fbbf
fix(switchback): hash only the encoded key bytes; revalidate audience…
d0465fc
fix(switchback): copy the cluster key with Uint8Array, which IE 10 has
4e205d6
feat: ship the owner-selected 1.14.0 batch (owner decision 2026-11-26)
068989e
fix: parse a valid audience once; review fixes for the 1.14.0 batch
0e352d7
fix: review P3s for the 1.14.0 batch
e339a79
test(compat): pin how strictly the runner matches accepted type breaks
77813d1
test(compat): pin the detail-line anchor and the accepted Exposure pr…
b18198a
test(es5): run every IE 10 probe without ES2015 typed-array methods
750ba5b
docs(release): dist-tag repair is run locally by a package owner
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: Cross-SDK JavaScript | ||
|
|
||
| on: | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| javascript: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | ||
| with: | ||
| path: javascript-sdk | ||
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | ||
| with: | ||
| repository: absmartly/cross-sdk-tests | ||
| ref: ada8952293a8d4ebf81f8de038f4e7a406d98870 | ||
| path: cross-sdk-tests | ||
| - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 | ||
| with: | ||
| node-version: '24' | ||
| cache: npm | ||
| cache-dependency-path: javascript-sdk/package-lock.json | ||
| - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Build SDK and install reference wrapper | ||
| run: | | ||
| cd javascript-sdk | ||
| npm ci --ignore-scripts | ||
| npm run build | ||
| cd ../cross-sdk-tests/javascript-wrapper | ||
| npm install --ignore-scripts | ||
| - name: Run pinned JavaScript lane | ||
| working-directory: cross-sdk-tests | ||
| env: | ||
| SDK_URLS_OVERRIDE: javascript=http://127.0.0.1:3000 | ||
| run: | | ||
| set -euo pipefail | ||
| pip install -r orchestrator/requirements.txt | ||
| node javascript-wrapper/server.js > wrapper.log 2>&1 & | ||
| wrapper=$! | ||
| trap 'kill "$wrapper" 2>/dev/null || true' EXIT | ||
| python -u orchestrator/test_runner.py --sdk javascript --report report.json | ||
| - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 | ||
| if: always() | ||
| with: | ||
| name: cross-sdk-javascript | ||
| path: | | ||
| cross-sdk-tests/report.json | ||
| cross-sdk-tests/wrapper.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: Publish to npm | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| environment: npm | ||
| concurrency: | ||
| group: npm-publish-absmartly-javascript-sdk | ||
| cancel-in-progress: false | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 | ||
| with: | ||
| node-version: '22' | ||
| registry-url: 'https://registry.npmjs.org' | ||
| cache: npm | ||
|
|
||
| - name: Install a trusted-publishing-compatible npm | ||
| run: npm install --global npm@11.6.2 | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci --ignore-scripts | ||
|
|
||
| - name: Validate version and select distribution tag | ||
| id: release | ||
| run: node scripts/check-release.js | ||
|
|
||
| - name: Build and test | ||
| run: npm run build | ||
|
|
||
| - name: Inspect package | ||
| run: npm pack --dry-run --ignore-scripts | ||
|
|
||
| # A manual run is a package preflight only: npm's dry run skips the authenticated publish request, | ||
| # so it cannot prove OIDC or any token works. Only a pushed v* tag publishes. | ||
| - name: Dry-run publish (package preflight) | ||
| if: github.event_name == 'workflow_dispatch' | ||
| run: npm publish --dry-run --ignore-scripts --provenance --access public --tag "$DIST_TAG" | ||
| env: | ||
| DIST_TAG: ${{ steps.release.outputs.dist_tag }} | ||
|
|
||
| - name: Publish with trusted publishing | ||
| if: github.event_name == 'push' | ||
| run: npm publish --ignore-scripts --provenance --access public --tag "$DIST_TAG" | ||
| env: | ||
| DIST_TAG: ${{ steps.release.outputs.dist_tag }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.