Skip to content
Merged
Show file tree
Hide file tree
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
Nov 18, 2026
96b52ad
ci(release): prepare trusted npm publication and compatibility gates
Nov 18, 2026
4acb5f7
fix(release): restore 1.13.4 client auth rules and guard dist tags
Nov 18, 2026
8614d91
fix(release): restore 1.13.4 timeout and getContext semantics, keep b…
Nov 18, 2026
e109c6d
fix(release): add repository for npm provenance and close review test…
Nov 18, 2026
c965489
fix(release): restore null-timeout retries and the no-rule read path
Nov 18, 2026
eb82c3c
test(release): close the remaining review test gaps
Nov 18, 2026
791d211
fix(release): pass explicitly undefined SDK client options through, a…
Nov 18, 2026
720bd07
fix(release): read SDK client options with 1.13.4's key set
Nov 18, 2026
c81e5d6
fix(release): address release review findings
Nov 18, 2026
f697ea9
fix(release): gate the live-units check and test it
Nov 19, 2026
f8cd40e
test(release): cover the revalidation missing-unit pin
Nov 19, 2026
813134f
perf(release): index loops on attribute paths; pin publish actions
Nov 19, 2026
a5d3680
test(release): pin getAttributes() latest-value ordering
Nov 19, 2026
8b62ce7
fix(release): treat null parents in audience paths as missing; keep f…
Nov 19, 2026
7bdfe3c
fix(release): preserve null-parent audience results from 1.13.4
Nov 19, 2026
eb9264a
fix(release): keep rule-condition semantics and restore 1.13.4 audien…
Nov 20, 2026
6acdbe7
fix(release): keep IE semver parsing and fail closed on real audience…
Nov 20, 2026
cfe6ced
fix(release): mark null-parent errors instead of subclassing TypeError
Nov 20, 2026
ea19253
test(release): fail closed on TypeError and truthy-marker audience er…
Nov 20, 2026
aa38149
docs(release): state which audience errors fail closed
Nov 20, 2026
87ead56
test(release): pin null-parent audience revalidation; fix CHANGELOG line
Nov 20, 2026
5196126
fix(release): preserve numeric ClientOptions readers with additive in…
Nov 20, 2026
6770fcc
fix(release): keep released constructor parameter types via overloads
Nov 20, 2026
4bbfb92
test(release): gate constructor readers and zero-request-timeout retr…
Nov 20, 2026
68e54f6
fix(release): retain native expression errors and utility return types
Nov 20, 2026
c336181
fix(release): preserve direct getApplicationVersion types and pin unk…
Nov 20, 2026
834aebe
fix(release): restore forEach on the audience path, test getContext a…
Nov 20, 2026
2396511
perf(release): restore 1.13.4 loop shapes on attribute paths
Nov 20, 2026
d17d309
test(release): pin the includeSystemAttributes publish loop; scope th…
Nov 21, 2026
abcf7c2
fix(release): classify null-parent audience reads by identity; tighte…
Nov 21, 2026
0910afc
test(release): make the npm dry-run probe hermetic; cover an undefine…
Nov 21, 2026
5eaec56
test(release): never silently skip the dry-run probe in CI; bound its…
Nov 21, 2026
a0b312c
perf(release): precompute the rule key and skip holdout checks on cac…
Nov 21, 2026
fa1c655
fix(release): reject a second publish command; fold opt-in attribute …
Nov 21, 2026
48e5732
test(release): pin configured environment in rule identity and no-hol…
Nov 21, 2026
fbce0cc
fix(release): preserve custom expression hooks on audience evaluation
Nov 21, 2026
1b5be09
fix(release): keep JsonExpr structural and recover only stale request…
Nov 21, 2026
6194e32
fix(release): build the rule key only from a non-empty string assignm…
Nov 21, 2026
d521b31
test(release): cover an empty assignmentRules string as no rules
Nov 21, 2026
95f906f
test(release): pin the parseRules error log; restore console spies in…
Nov 21, 2026
845ce9b
fix(context): select shared variable winner independently of arm
Nov 23, 2026
232801a
test(release): pin initial assignment rule cache
Nov 23, 2026
55678b6
fix(context): stop shared variable lookup at an out-of-range winning arm
Nov 23, 2026
96aa2c9
fix(context): restore caller default for prototype-named variable keys
Nov 23, 2026
1dd5f59
fix(context): expose only the winning experiment for shared variable …
Nov 23, 2026
2ceac72
perf(context): resolve shared variable winner without per-read tuples
Nov 24, 2026
92ba8cd
docs: note the held-out fallback and out-of-range winner exposure
Nov 24, 2026
0bb7c55
fix(context): accept variables named like Object.prototype members
Nov 24, 2026
e3814b9
test(context): cover empty and non-object configs with prototype-name…
Nov 24, 2026
8fe259e
perf(context): retain ordinary object layouts with safe own-key lookup
Nov 24, 2026
4ab001a
perf(context): restrict own-key checks to prototype-named variables
Nov 24, 2026
5ca7cd6
perf(context): classify prototype-key configs at indexing time
Nov 24, 2026
d526b08
fix(context): queue every exposure of a variable read before user cal…
Nov 24, 2026
2a90333
fix(context): defer variable-read callbacks without per-read cost; re…
Nov 24, 2026
a82ee6f
perf(context): outline the deferred-callback replay; fix refresh and …
Nov 24, 2026
1419d6a
refactor(context): skip the winner's second holdout walk; tidy shared…
Nov 24, 2026
76b1269
fix(context): replay deferred callbacks in queue order under one defe…
Nov 24, 2026
5360576
test(context): pin single holdout walk, nested treatment() deferral a…
Nov 24, 2026
8cbb104
fix(context): bound observer feedback while retaining ordered replay
Nov 24, 2026
5e12071
fix(context): bound callback replay by rounds instead of dropping cal…
Nov 24, 2026
fd76397
fix(context): keep replay exhaustion sticky until the outer replay ends
Nov 24, 2026
af581a0
test(context): pin treatment() exhaustion and its reset; tighten docs
Nov 24, 2026
a813be6
test(context): pin the iterator-free candidate walk; correct read cost
Nov 24, 2026
391fb9f
fix(context): keep each call's exposure batch intact at the replay limit
Nov 24, 2026
f0bf6d7
docs: describe the replay limit batch rule and held-out default
Nov 24, 2026
e4664fc
fix(context): restore a refreshed arm's variables; pin post-limit del…
Nov 25, 2026
18f1da1
docs: document removed-arm default and per-call batch delivery
Nov 25, 2026
7afa2da
test(context): pin switchback slot arm-following, post-limit timer an…
Nov 25, 2026
3024f1f
test(context): pin restored prototype-named variables after refresh
Nov 25, 2026
365f61f
fix(context): scope treatment() errors and count replay callbacks at …
Nov 25, 2026
abc1fbb
test(context): pin replay exhaustion at exact callback boundary
Nov 25, 2026
fe38141
test(context): cover replay stack and compatibility boundaries
Nov 25, 2026
c121981
docs: clarify shared-key callback and replay semantics
Nov 25, 2026
e4d7e99
fix(context): partition replay dispatch at callback budget
Nov 25, 2026
2062e21
fix(context): partition replay dispatch at callback budget
Nov 25, 2026
a6ec496
fix(context): bound post-limit replay delivery
Nov 25, 2026
fe83bc5
fix(context): enforce replay callback budget at dispatch
Nov 25, 2026
0d47aae
test(release): reject multiple publish commands
Nov 26, 2026
677b470
Merge origin/main (javascript-sdk#69, switchbacks) into release/1.14.…
Nov 26, 2026
94c33b3
fix(release): keep TS 3.9 declarations, own-key maps and SemVer tag o…
Nov 26, 2026
e3b6827
test(context): pin unset prototype-named units and the mid-round repl…
Nov 26, 2026
db9a38b
fix(context): keep every callback queued in the round the replay budg…
Nov 26, 2026
9bf3d5c
test(context): pin a second extra read queued before the replay cutoff
Nov 26, 2026
452fbbf
fix(switchback): hash only the encoded key bytes; revalidate audience…
Nov 26, 2026
d0465fc
fix(switchback): copy the cluster key with Uint8Array, which IE 10 has
Nov 26, 2026
4e205d6
feat: ship the owner-selected 1.14.0 batch (owner decision 2026-11-26)
Nov 26, 2026
068989e
fix: parse a valid audience once; review fixes for the 1.14.0 batch
Nov 27, 2026
0e352d7
fix: review P3s for the 1.14.0 batch
Nov 27, 2026
e339a79
test(compat): pin how strictly the runner matches accepted type breaks
Nov 27, 2026
77813d1
test(compat): pin the detail-line anchor and the accepted Exposure pr…
Nov 27, 2026
b18198a
test(es5): run every IE 10 probe without ES2015 typed-array methods
Nov 27, 2026
750ba5b
docs(release): dist-tag repair is run locally by a package owner
Nov 27, 2026
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
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,12 @@ jobs:

- name: Run npm build
run: npm run build

# Published declarations must still compile for 1.13.4 consumers on TypeScript 3.9, 4.4 and 4.9.
- name: Check compatibility with the published 1.13.4 package
run: |
mkdir -p "$RUNNER_TEMP/baseline"
npm pack @absmartly/javascript-sdk@1.13.4 --ignore-scripts --pack-destination "$RUNNER_TEMP"
tar -xzf "$RUNNER_TEMP/absmartly-javascript-sdk-1.13.4.tgz" -C "$RUNNER_TEMP/baseline"
npm install --prefix "$RUNNER_TEMP/baseline/package" --omit=dev --ignore-scripts --no-audit --no-fund
node scripts/compatibility/run.js "$RUNNER_TEMP/baseline/package" . --report "$RUNNER_TEMP/compat.json"
55 changes: 55 additions & 0 deletions .github/workflows/cross-sdk.yml
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
59 changes: 59 additions & 0 deletions .github/workflows/publish.yml
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:
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
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 }}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ js
lib
types
package-lock.json

.claude
# Vendored byte-for-byte from absmartly/abs; never reformat.
src/__tests__/fixtures/switchback
Loading
Loading