Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
487 commits
Select commit Hold shift + click to select a range
ad8cfef
Merge pull request #233 from contentstack/development
cs-raj Oct 18, 2024
0034d3e
Fix Development
cs-raj Oct 23, 2024
4caea7b
Merge pull request #235 from contentstack/fix/versionbump
cs-raj Oct 29, 2024
6ba0069
Merge pull request #236 from contentstack/development
cs-raj Oct 29, 2024
f43a957
Merge pull request #234 from contentstack/staging
cs-raj Nov 8, 2024
cf306a1
Merge pull request #237 from contentstack/master
cs-raj Nov 8, 2024
c723e07
Merge pull request #238 from contentstack/staging
cs-raj Nov 8, 2024
441ab3d
Handle empty entries in case of Live Preview with proper error message
harshitha-cstk Nov 14, 2024
8868257
code changes to handle empty entries
harshitha-cstk Nov 14, 2024
0f4cea7
updated the condition to reject with error message
harshitha-cstk Nov 14, 2024
af978a7
Merge pull request #239 from contentstack/fix/dx-1675-handle-empty-en…
harshithad0703 Nov 14, 2024
acb9fd7
Merge pull request #240 from contentstack/development
cs-raj Nov 14, 2024
c349ba4
Merge pull request #241 from contentstack/staging
cs-raj Nov 18, 2024
ac74cd4
Merge pull request #243 from contentstack/master
cs-raj Nov 18, 2024
d9a6df0
Merge pull request #245 from contentstack/staging
cs-raj Nov 18, 2024
dafe4d3
Include HTTP error codes in the findOne method (#250)
sunil-lakshman Dec 2, 2024
964afe6
Merge pull request #251 from contentstack/development
cs-raj Dec 2, 2024
a9161ab
fix: added fix for updateasseturl for handling jrte within blocks
Dec 2, 2024
46b0b86
Merge pull request #252 from contentstack/staging
cs-raj Dec 5, 2024
3e93b8a
Merge pull request #254 from contentstack/master
cs-raj Dec 5, 2024
e657d79
Merge pull request #255 from contentstack/staging
cs-raj Dec 5, 2024
8b9f81d
Merge pull request #253 from contentstack/fix/DX-1371
vkalta Dec 5, 2024
df971ed
dropping isomorphic-fetch and node-fetch
harshitha-cstk Dec 16, 2024
499b179
version bumpt to 3.23.1
harshitha-cstk Dec 16, 2024
677abe5
removed commented lines
harshitha-cstk Dec 17, 2024
894080a
Updated error codes in testcases
sunil-lakshman Dec 17, 2024
4567296
Merge pull request #260 from contentstack/fix/http_code_testcases
harshithad0703 Dec 17, 2024
8bb371e
Merge pull request #259 from contentstack/fix/dx-1415-drop-isomorphic…
harshithad0703 Dec 17, 2024
b0c9256
fix: disable minification for improved debugging
Dec 18, 2024
c2215c6
Update README.md
kartikk868 Jan 9, 2025
869ec7c
fix: setting minimize to true for browser
Jan 9, 2025
eb9cff9
verison bump
cs-raj Jan 13, 2025
de608da
license update
cs-raj Jan 13, 2025
58c64c5
Updated slack bolt and qs
cs-raj Jan 18, 2025
74796ea
sca-scan.yml
Aravind-Kumar-cstk Jan 20, 2025
f1674da
jira.yml
Aravind-Kumar-cstk Jan 20, 2025
f591bc2
sast-scan.yml
Aravind-Kumar-cstk Jan 20, 2025
64ce6f6
codeql-analysis.yml
Aravind-Kumar-cstk Jan 20, 2025
33bd86a
Updated codeowners
Aravind-Kumar-cstk Jan 20, 2025
aaa5b73
Merge pull request #263 from contentstack/fix/VersionBump
cs-raj Jan 20, 2025
bf9df98
version fixed
cs-raj Jan 20, 2025
060c4b3
Merge pull request #264 from contentstack/fix/VersionBump
cs-raj Jan 20, 2025
e1424ff
sanity update for dev11
harshitha-cstk Jan 21, 2025
d246c5b
Merge pull request #265 from contentstack/fix/dx-2069-sanity-update-d…
harshithad0703 Jan 21, 2025
5da7a6e
Merge pull request #261 from contentstack/feat/DX-1417
vkalta Jan 21, 2025
aed6af6
Merge branch 'master' into staging
cs-raj Jan 21, 2025
9341dc8
Merge pull request #266 from contentstack/fix/stage
cs-raj Jan 21, 2025
be96351
Merge pull request #267 from contentstack/staging
cs-raj Jan 21, 2025
6c0266c
Merge pull request #268 from contentstack/development
cs-raj Jan 21, 2025
3d29348
fix: added npm token to github release pipeline
Jan 22, 2025
7ba4d69
Refactor getCacheCallback to directly use parent promise's resolve an…
sunil-lakshman Jan 24, 2025
e7d4955
removed cheerio package as it had high vulnerability in latest update
harshitha-cstk Jan 29, 2025
9432cba
update sanity reports files
harshitha-cstk Jan 29, 2025
50cfdaf
version bump to 3.24.2
harshitha-cstk Jan 29, 2025
35a3679
Merge pull request #274 from contentstack/fix/dx-2117-snyk-issue
harshithad0703 Jan 29, 2025
f089dd0
DX | 27-01-2025 | Release (#269)
cs-raj Jan 30, 2025
6e5366c
DX | 27-01-2025 | Release (#269) (#276)
sunil-lakshman Jan 30, 2025
baae6a1
DX | 27-01-2025 | Release | Refactor getCacheCallback to directly use…
sunil-lakshman Jan 30, 2025
d296cfc
Back merge (#277)
sunil-lakshman Jan 30, 2025
d90deb9
Merge branch 'staging' into fix/27-01-2025-backmerge
harshitha-cstk Jan 30, 2025
c5b5144
update packages with master
harshitha-cstk Jan 30, 2025
ed37da3
Merge pull request #278 from contentstack/fix/27-01-2025-backmerge
harshithad0703 Jan 30, 2025
912521f
Merge remote-tracking branch 'origin/development' into fix/27-01-2025…
harshitha-cstk Jan 30, 2025
3a5bc27
update package files and changeLog
harshitha-cstk Jan 30, 2025
7034ba7
updated change log
harshitha-cstk Jan 30, 2025
8b35940
#262 update readme file
harshitha-cstk Jan 30, 2025
bfe370a
Merge pull request #279 from contentstack/fix/27-01-2025-backmerge-st…
harshithad0703 Jan 30, 2025
82cf2f2
Merge pull request #280 from contentstack/development
harshithad0703 Jan 30, 2025
0f6cd0e
Fixed license and semgrep issues (#282)
sunil-lakshman Feb 3, 2025
0ed0a14
Fixed license and semgrep issues (#282) (#283)
sunil-lakshman Feb 3, 2025
e7a336f
DX | 03-02-2025 | Hotfix Release (#281)
harshithad0703 Feb 3, 2025
32adf6b
fix: update registry url
Feb 5, 2025
8cb04b6
Update node version to 22
sunil-lakshman Feb 6, 2025
f002b52
Merge pull request #284 from contentstack/master
cs-raj Feb 6, 2025
0fe41eb
Merge pull request #285 from contentstack/enh/dx-1732
harshithad0703 Feb 6, 2025
a7817c7
update sanity message
harshitha-cstk Feb 11, 2025
bab3990
Merge pull request #287 from contentstack/fix/sanity-message
reeshika-h Feb 11, 2025
bf6f70e
Merge pull request #288 from contentstack/development
harshithad0703 Feb 18, 2025
8dd7d48
Merge pull request #289 from contentstack/staging
cs-raj Feb 25, 2025
361d713
Merge pull request #290 from contentstack/master
cs-raj Feb 25, 2025
4497a66
fix: reset timeline preview variables when not found
nadeem-cs Feb 26, 2025
d7eabea
Merge pull request #291 from contentstack/fix/DX-2225-timeline-previe…
nadeem-cs Feb 26, 2025
8286cd8
chore: update changelog
nadeem-cs Feb 26, 2025
9bf0983
Merge pull request #293 from contentstack/fix/DX-2225-timeline-previe…
nadeem-cs Feb 26, 2025
13915f0
Merge pull request #292 from contentstack/development
nadeem-cs Feb 26, 2025
99614bc
Merge pull request #270 from contentstack/fix/DX-1101
vkalta Feb 26, 2025
28d341f
chore: update version to 3.24.3 in package-lock.json
harshitha-cstk Feb 26, 2025
f1eb47b
Merge branch 'development' into patch-1
nadeem-cs Feb 26, 2025
e8bf6a4
Merge pull request #296 from contentstack/fix/package-lock
harshithad0703 Feb 26, 2025
a2a56fa
Merge pull request #295 from contentstack/development
harshithad0703 Feb 26, 2025
68828a7
Merge pull request #262 from myWorkshop123/patch-1
harshithad0703 Feb 26, 2025
535375d
feat: update version to 3.25.0 and add GCP-EU support
harshitha-cstk Feb 28, 2025
984d812
Merge pull request #297 from contentstack/feat/gcp-eu-support
harshithad0703 Mar 3, 2025
1ba3514
Merge pull request #294 from contentstack/staging
harshithad0703 Mar 4, 2025
efcb2ee
Merge pull request #298 from contentstack/master
harshithad0703 Mar 4, 2025
b62aca4
Merge pull request #299 from contentstack/staging
harshithad0703 Mar 4, 2025
26e4464
Merge pull request #300 from contentstack/development
cs-raj Mar 5, 2025
1e0166b
fix: validate parameters in sync method and ensure query parameters a…
harshitha-cstk Mar 11, 2025
5659488
Merge pull request #303 from contentstack/fix/dx-2269-sre-issue
harshithad0703 Mar 11, 2025
09ac25e
Merge pull request #301 from contentstack/staging
cs-raj Mar 11, 2025
135aec1
Merge pull request #304 from contentstack/staging
cs-raj Mar 12, 2025
c7393b0
feat: add Jest configuration for testing environment and reporting
harshitha-cstk Mar 20, 2025
6dddf32
refactor: improve test summary reporting in sanity-report.js
harshitha-cstk Mar 20, 2025
6fa302f
refactor: update tests to use jest and improve readability
harshitha-cstk Mar 20, 2025
1d77bfc
fix: update live preview test to use correct CDN host
harshitha-cstk Mar 20, 2025
600c115
feat: update testing scripts and enhance Slack reporting for test res…
harshitha-cstk Mar 20, 2025
9a4b699
refactor: remove unnecessary invocation of sendSlackMessage in sanity…
harshitha-cstk Mar 20, 2025
9870ff0
refactor: remove try catch blocks in test cases
harshitha-cstk Mar 20, 2025
abff767
fix: update Slack channel in sendSlackMessage function
harshitha-cstk Mar 24, 2025
b116bd6
update dependencies
harshitha-cstk Mar 26, 2025
e673176
Merge pull request #307 from contentstack/fix/dx-2317-slack-fail-msg
harshithad0703 Mar 26, 2025
5aef8f0
Merge pull request #308 from contentstack/development
harshithad0703 Mar 26, 2025
b7e3bc9
fix: update Slack channel to SLACK_CHANNEL2 in sendFailureDetails fun…
harshitha-cstk Mar 27, 2025
92eab6d
Merge pull request #310 from contentstack/fix/slack-thread-msg
harshithad0703 Mar 27, 2025
066d687
Merge pull request #311 from contentstack/development
harshithad0703 Mar 27, 2025
cb95614
Merge pull request #316 from contentstack/master
harshithad0703 Apr 1, 2025
3d50877
Merge pull request #309 from contentstack/staging
harshithad0703 Apr 1, 2025
82693e9
bump version to 3.25.1
harshitha-cstk Apr 1, 2025
e8356bd
Merge branch 'master' into fix/version-bump
harshithad0703 Apr 1, 2025
b7d5262
Merge pull request #317 from contentstack/fix/version-bump
harshithad0703 Apr 1, 2025
0dc5f41
Merge pull request #318 from contentstack/master
reeshika-h Apr 1, 2025
80ce9dc
Merge pull request #319 from contentstack/staging
harshithad0703 Apr 1, 2025
7f091c9
allow number, string, object, boolean, and RegExp as valid query para…
sunil-lakshman Apr 2, 2025
cbc7c0a
Added testcases
sunil-lakshman Apr 2, 2025
98c9a1b
Merge pull request #320 from contentstack/fix/DX-2389
sunil-lakshman Apr 2, 2025
a396460
update package-lock
harshitha-cstk Apr 2, 2025
2e70392
Merge pull request #322 from contentstack/fix/update-package-lock
harshithad0703 Apr 2, 2025
7ceb065
Merge pull request #321 from contentstack/development
harshithad0703 Apr 2, 2025
8257d02
update CDN links and integrity hashes in README.md
harshitha-cstk Apr 2, 2025
5943d67
Merge pull request #324 from contentstack/fix/integrity-hash-update
harshithad0703 Apr 3, 2025
e20d811
Add environment variable checks and refactor live preview tests
harshitha-cstk Apr 3, 2025
830be32
Merge pull request #323 from contentstack/staging
harshithad0703 Apr 3, 2025
68d4090
Update environment variable checks and improve error handling in config
harshitha-cstk Apr 8, 2025
7a6deb2
Bump version to 3.25.3 and update changelog to handle sanity tests wi…
harshitha-cstk Apr 8, 2025
d4abca6
Update changelog date for version 3.25.3
harshitha-cstk Apr 8, 2025
0de8500
Update integrity hashes in README
harshitha-cstk Apr 8, 2025
e8a4541
Merge pull request #325 from contentstack/fix/dx-2231-handle-envs
harshithad0703 Apr 8, 2025
f8e8422
Fix: initialize live_preview config before setting properties in Live…
sunil-lakshman Apr 8, 2025
78d3401
Merge pull request #326 from contentstack/fix/sanity-testcases
AniketDev7 Apr 8, 2025
c7f13e6
test: added sync test cases with improved structure
harshitha-cstk Apr 15, 2025
f117f1c
Fix: pagination token test
harshitha-cstk Apr 15, 2025
59670d7
chore: update package-lock.json with dependency version bumps
harshitha-cstk Apr 15, 2025
dec7cc4
Merge pull request #327 from contentstack/fix/dx-2392-sync-test-cases
harshithad0703 Apr 15, 2025
353bd24
chore: bump dependencies in package.json and package-lock.json
harshitha-cstk Apr 15, 2025
121fb85
Merge branch 'staging' into fix/upgrade-dependencies
harshitha-cstk Apr 15, 2025
43e4ba9
Merge pull request #329 from contentstack/fix/upgrade-dependencies
harshithad0703 Apr 15, 2025
156df49
policy-scan.yml
Aravind-Kumar-cstk Apr 16, 2025
a31cefc
issues-jira.yml
Aravind-Kumar-cstk Apr 16, 2025
96a248e
Delete jira.yml
Aravind-Kumar-cstk Apr 16, 2025
1ab9fe1
Delete sast-scan.yml
Aravind-Kumar-cstk Apr 16, 2025
cd10cc0
codeql-analysis.yml
Aravind-Kumar-cstk Apr 16, 2025
d92e265
Updated codeowners
Aravind-Kumar-cstk Apr 16, 2025
b941b1c
Merge pull request #330 from contentstack/master
harshithad0703 Apr 16, 2025
085e856
Merge pull request #331 from contentstack/staging
harshithad0703 Apr 16, 2025
6e55a28
Update policy-scan.yml
Aravind-Kumar-cstk Apr 16, 2025
21661c9
Merge pull request #332 from contentstack/master
harshithad0703 Apr 16, 2025
3689437
Merge pull request #328 from contentstack/development
harshithad0703 Apr 16, 2025
22562ae
Test 1
cs-raj Apr 17, 2025
61eb440
Merge pull request #333 from contentstack/staging
harshithad0703 Apr 21, 2025
446084f
Merge pull request #335 from contentstack/master
harshithad0703 Apr 21, 2025
3a18cf4
Merge pull request #336 from contentstack/staging
harshithad0703 Apr 21, 2025
32dada1
policy-scan.yml
Aravind-Kumar-cstk Apr 23, 2025
70439a3
policy-scan.yml
Aravind-Kumar-cstk May 5, 2025
cd8e90c
issues-jira.yml
Aravind-Kumar-cstk May 5, 2025
e5c6dc6
secrets-scan.yml
Aravind-Kumar-cstk May 5, 2025
78a4281
Updated codeowners
Aravind-Kumar-cstk May 5, 2025
d5cf3df
talismanrc file updated
Aravind-Kumar-cstk May 5, 2025
1314d21
feat: update sanity suite name to SDK-JS-CDA
AniketDev7 May 7, 2025
2cc8758
Merge pull request #337 from contentstack/update-sanity-suite-name
AniketDev7 May 7, 2025
5fac3a3
Added AWS-AU support
ntrjpatel Jul 1, 2025
5c75fa3
Merge pull request #342 from contentstack/feat/dx-3125
netrajpatel Jul 3, 2025
6a58ce9
Merge pull request #343 from contentstack/development
harshithad0703 Jul 3, 2025
e27fde1
Merge branch 'master' into fix/talisman-update
harshitha-cstk Jul 4, 2025
6157f31
update talismanrc
harshitha-cstk Jul 4, 2025
aba5a1d
Merge pull request #345 from contentstack/fix/talisman-update
harshithad0703 Jul 4, 2025
458798b
Merge pull request #344 from contentstack/staging
harshithad0703 Jul 7, 2025
9d82927
Merge pull request #346 from contentstack/master
harshithad0703 Jul 7, 2025
1241688
Merge pull request #347 from contentstack/staging
harshithad0703 Jul 8, 2025
032957d
build: :heavy_minus_sign: remove unused dependencies and fix installa…
nadeem-cs Jul 25, 2025
ef70b33
Merge pull request #351 from contentstack/fix/DX-2118
nadeem-cs Jul 25, 2025
0c1600d
Merge pull request #352 from contentstack/development
cs-raj Jul 25, 2025
ce9e220
Merge pull request #353 from contentstack/staging
harshithad0703 Jul 28, 2025
56d4f0a
Merge pull request #354 from contentstack/master
harshithad0703 Jul 28, 2025
5c9606d
Merge pull request #355 from contentstack/staging
harshithad0703 Jul 28, 2025
9e672d8
Merge branch 'development' into fix/snyk
cs-raj Jul 29, 2025
d80030f
Fix ESLint setup and auto-format code
cs-raj Jul 29, 2025
afa7859
Update ESLint config to require semicolons and fix Husky auto-install
cs-raj Jul 29, 2025
fa8b19b
Configure ESLint with standard style and fix formatting issues
cs-raj Jul 29, 2025
548a0a9
Changed const to let
cs-raj Jul 30, 2025
998b450
Merge pull request #334 from contentstack/fix/snyk
cs-raj Jul 31, 2025
1b7848f
Changelog
cs-raj Aug 1, 2025
6dfd34f
Merge pull request #358 from contentstack/fix/dev3
cs-raj Aug 1, 2025
a09ad00
Merge pull request #356 from contentstack/development
harshithad0703 Aug 1, 2025
f4abcff
Update .talismanrc
harshithad0703 Aug 1, 2025
9749db7
Merge pull request #360 from contentstack/fix/talismanrc
harshithad0703 Aug 1, 2025
48af637
Merge pull request #359 from contentstack/staging
harshithad0703 Aug 4, 2025
8e41b43
Merge pull request #361 from contentstack/master
harshithad0703 Aug 5, 2025
a44441f
Merge pull request #362 from contentstack/staging
harshithad0703 Aug 5, 2025
2c40881
Delete secrets-scan.yml
Aravind-Kumar-cstk Sep 8, 2025
4861297
Updated codeowners
Aravind-Kumar-cstk Sep 8, 2025
43f4e36
feat: comprehensive integration test suite with 737 tests
AniketDev7 Nov 13, 2025
634b88c
Refactor error and warning messages for clarity and consistency acros…
reeshika-h Nov 24, 2025
438aa00
Refactor error handling in stack, cache provider, and entry modules t…
reeshika-h Nov 24, 2025
e00833f
workflow fix
reeshika-h Nov 24, 2025
c636220
workflow fix 2
reeshika-h Nov 24, 2025
ab6fd2c
version bump
reeshika-h Dec 4, 2025
76f0605
Merge pull request #365 from contentstack/fix/DX-3490-improve-error-msg
harshithad0703 Dec 4, 2025
d12d269
Change checksum for messages.js
harshithad0703 Dec 4, 2025
f5a87a3
Merge pull request #367 from contentstack/fix/update-talismanrc
harshithad0703 Dec 4, 2025
87c1b29
Merge pull request #366 from contentstack/development
harshithad0703 Dec 5, 2025
81e0152
Merge pull request #369 from contentstack/master
harshithad0703 Dec 5, 2025
018b353
Merge pull request #368 from contentstack/staging
harshithad0703 Dec 8, 2025
8e0c9ae
Merge pull request #371 from contentstack/master
harshithad0703 Dec 9, 2025
e6faead
fix: increase performance test thresholds for pagination timing
AniketDev7 Dec 22, 2025
0a28659
fix cve-2025-15284 by updating 'qs' dependency, and remove deprecated…
nadeem-cs Jan 21, 2026
8e07d1f
chore: license update
nadeem-cs Jan 21, 2026
744cfd3
Merge pull request #373 from contentstack/fix/DX-3856
nadeem-cs Jan 23, 2026
ffa922a
Merge latest changes from development branch
AniketDev7 Jan 27, 2026
f6c9ce1
Merge pull request #374 from contentstack/development
harshithad0703 Jan 30, 2026
3fb4891
Merge pull request #375 from contentstack/staging
harshithad0703 Feb 2, 2026
3e93542
Merge pull request #376 from contentstack/master
harshithad0703 Feb 2, 2026
585f24f
fix: resolve 4 failing test cases - increase timeouts and performance…
AniketDev7 Feb 5, 2026
31c41a4
fix: update error handling for invalid locale in LocaleAndLanguage test
AniketDev7 Feb 9, 2026
57bb919
Update sca-scan.yml
dhavaljain999 Mar 3, 2026
4ed6523
fix: handle connection drops (UND_ERR_SOCKET) and prevent process crash
harshitha-cstk Mar 16, 2026
a1cc9ab
revert docs
harshitha-cstk Mar 16, 2026
e3e0386
refactor: remove unused variables from request.js
harshitha-cstk Mar 16, 2026
0434d1b
version bump
harshitha-cstk Mar 18, 2026
bc1ff33
Merge pull request #377 from contentstack/fix/dx-5444-und-err-socket-…
harshitha-cstk Mar 18, 2026
43fead9
Merge pull request #378 from contentstack/development
naman-contentstack Mar 23, 2026
1143032
Merge pull request #379 from contentstack/staging
naman-contentstack Mar 23, 2026
9be487a
Merge pull request #380 from contentstack/master
harshitha-cstk Mar 23, 2026
88d91d2
Added skills and cursor rules
sunil-lakshman Mar 24, 2026
402adba
Merge pull request #381 from contentstack/enh/dx-5356
sunil-lakshman Mar 25, 2026
d268062
docs: add AGENTS.md, skills, and Cursor rules entry
harshitha-cstk Apr 17, 2026
98a69cd
Merge branch 'development' into fix/dx-6049-update-cursor-rules-skills
harshitha-cstk Apr 17, 2026
1668fb4
Merge pull request #383 from contentstack/fix/dx-6049-update-cursor-r…
harshitha-cstk Apr 17, 2026
996f9f9
chore: align release workflows with new development-to-main process
harshitha-cstk Apr 29, 2026
9d7168d
Merge pull request #385 from contentstack/enh/dx-6158-new-release-pro…
harshitha-cstk Apr 30, 2026
619c4f0
chore: merge master into feature/comprehensive-integration-tests
aniket-shikhare-cstk May 12, 2026
4cd9e1f
test: add 6 socket/transport error tests for v3.27.0 retry coverage
aniket-shikhare-cstk May 12, 2026
c206caa
fix: increase test timeouts and fix flaky async test behavior
aniket-shikhare-cstk May 12, 2026
11da881
feat: add nested global field support in test config and helpers
aniket-shikhare-cstk May 12, 2026
7500714
fix: resolve ESLint lint failures across test suite
aniket-shikhare-cstk May 12, 2026
d660950
fix: remove env-var value from console.log to resolve CodeQL alert
aniket-shikhare-cstk May 12, 2026
2f2213d
Merge pull request #364 from contentstack/feature/comprehensive-integ…
aniket-shikhare-cstk May 14, 2026
0a4f3b1
chore: migrate asset/entry tests to integration suite and remove lega…
maheshmotkar-cs May 27, 2026
e43c5ee
Merge pull request #388 from contentstack/chore/DX-7600
maheshmotkar-cs May 29, 2026
194d0f7
Merge pull request #386 from contentstack/development
harshitha-cstk Jun 1, 2026
ec3bbac
fix: instantiate Result with new in resultWrapper
achromik Jun 11, 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
3 changes: 3 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ['@babel/preset-env']
};
5 changes: 5 additions & 0 deletions .cursor/rules/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Cursor (optional)

**Cursor** users: start at **[AGENTS.md](../../AGENTS.md)**. All conventions live in **`skills/*/SKILL.md`**.

This folder only points contributors to **`AGENTS.md`** so editor-specific config does not duplicate the canonical docs.
38 changes: 38 additions & 0 deletions .cursor/rules/code-review.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
description: "PR review themes — API docs, compatibility, errors, security, tests (CDA SDK)"
alwaysApply: true
---

# Code review checklist (CDA JavaScript SDK)

Apply when reviewing changes to the **`contentstack`** npm package (Content Delivery API client).

## Public API & documentation

- **JSDoc** updated for new or changed public methods/classes (params, return shape, examples), matching style in `src/core/contentstack.js` / `src/core/stack.js`.
- **`index.d.ts`** updated when TypeScript consumers would see different signatures or new exports.

## Backward compatibility

- Avoid breaking changes to exported function signatures, option objects, or default behavior without a major version rationale.
- If behavior changes, ensure **callers inside `src/`** and tests reflect the new contract.

## Errors & safety

- HTTP failures should continue to reject with a predictable shape from **`src/core/lib/request.js`** where applicable (**`error_message`**, **`error_code`**, **`errors`**, **`status`**, **`statusText`**).
- Do not log full **delivery_token**, **preview_token**, **management_token**, or **api_key** values.
- Respect **null/undefined** edge cases for optional API fields.

## Dependencies & supply chain

- New **dependencies** should be justified (size, maintenance, license).
- Lockfile and **`package.json`** version bumps should be minimal and reviewable.

## Tests

- **Jest** tests for new logic or regressions under **`test/`** (JS and/or **`test/typescript/`** as appropriate).
- Live stack tests must remain compatible with **`test/config.js`** env requirements; document new env needs in **`test/README.md`** or comments near the harness — never commit credentials.

## Security & privacy

- No hardcoded credentials; no accidental exposure of customer content in logs or error messages.
36 changes: 36 additions & 0 deletions .cursor/rules/contentstack-javascript-cda.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
description: "Contentstack CDA SDK patterns in src/core (Content Delivery API)"
globs: ["src/**/*.js"]
alwaysApply: false
---

# Contentstack CDA SDK (`src/core/`)

This package implements the **Content Delivery API (CDA)** read client, not the Content Management API (CMA).

## Stack & config

- **`Contentstack.Stack(options)`** (`src/core/stack.js`) — **`api_key`**, **`delivery_token`**, **`environment`**; optional **`region`**, **`branch`**, **`host`**, **`live_preview`**, **`plugins`**, **`fetchOptions`** (timeout, retries, `retryCondition`, `logHandler`, etc.).
- Default CDN paths and version come from **`config.js`** at the repo root; regional hosts follow existing `stack.js` logic (e.g. `{region}-cdn.contentstack.com`).

## HTTP & errors

- Requests are built in **`src/core/lib/request.js`**: query serialization, **`fetch`**, default retries on **408** / **429** (configurable), plugin hooks **`onRequest`** / **`onResponse`**.
- Failed responses reject with objects carrying **`error_message`**, **`error_code`**, **`errors`**, **`status`**, **`statusText`** when JSON parsing succeeds — keep new code compatible with this shape.

## Modules

- **Entry, Query, Assets, Taxonomy, Result**, etc. live under **`src/core/modules/`** — follow neighboring patterns for chaining, parameters, and URL assembly.
- **Cache**: policies and providers under **`src/core/cache.js`** and **`src/core/cache-provider/`**.

## Live preview

- When **`live_preview.enable`** is true, **`management_token`** vs **`preview_token`** affect host selection — mirror existing `stack.js` behavior and tests under **`test/live-preview/`**.

## Runtime targets

- **`src/runtime/node|web|react-native|nativescript/`** supply **`http`** and **`localstorage`** — changes that affect networking or storage must consider **all** bundled targets.

## Docs

- Align behavior with the official [Content Delivery API](https://www.contentstack.com/docs/developers/apis/content-delivery-api/) documentation.
31 changes: 31 additions & 0 deletions .cursor/rules/dev-workflow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
description: "Branches, tests, and PR expectations for contentstack-javascript (CDA SDK)"
globs: ["**/*.js", "**/*.ts", "**/*.json"]
alwaysApply: false
---

# Development workflow — Contentstack JavaScript CDA SDK

## Branches

- Follow team Git conventions (e.g. feature branches off the repo’s default integration branch).
- Do not commit permanent `test.only`, `it.only`, `describe.only`, or skipped tests meant for CI.

## Before opening a PR

1. **`npm run lint`** — ESLint must pass on `src` and `test`.
2. **`npm test`** — Runs **`pretest`** → **`npm run build`**, then **`test:e2e`** and **`test:typescript`**. For live stack tests, set env vars (see **`test/config.js`**: `HOST`, `API_KEY`, `DELIVERY_TOKEN`, `ENVIRONMENT`). Never commit secrets or `.env` with real tokens.
3. **Version bump** — When the PR introduces **user-visible or release-worthy** SDK behavior (new API, bug fix shipped to npm, or a **breaking** change), update **`version`** in `package.json` per **semver** (patch / minor / major). Docs-only or test-only changes may omit a bump per team practice; match sibling PRs when unsure.

## PR expectations (summary)

- **User-facing changes** — JSDoc on public methods; update **`index.d.ts`** when the public TypeScript surface changes.
- **Behavior** — Preserve backward compatibility unless the change is explicitly breaking and documented.
- **Errors** — Keep rejection shapes consistent with **`src/core/lib/request.js`** (`error_message`, `error_code`, `errors`, `status`, `statusText` where applicable). Do not log full **delivery_token** or **management_token** / **preview_token** values in new code.
- **Tests** — Add or adjust Jest tests under **`test/`** for new behavior; live tests require the env contract in **`test/config.js`**.

## Quick links

- Agent overview: repo root `AGENTS.md`
- CDA patterns: `skills/contentstack-javascript-cda/SKILL.md`
- HTTP / retries / plugins: `skills/framework/SKILL.md`
30 changes: 30 additions & 0 deletions .cursor/rules/javascript.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
description: "JavaScript/TypeScript conventions for src, webpack, and index.d.ts"
globs:
- "src/**/*.js"
- "webpack/**/*.js"
- "index.d.ts"
alwaysApply: false
---

# JavaScript & types (this repo)

## Runtime & modules

- **Source** is **ES modules** under `src/` (`import` / `export`). Webpack resolves aliases such as **`runtime/http.js`** per target (`webpack/webpack.*.js`).
- **`index.d.ts`** is the public TypeScript surface for npm consumers; keep it aligned with `src/core/` JSDoc and exports.

## Style & tooling

- **ESLint** uses **`eslint-config-standard`** and **`@babel/eslint-parser`**. This repo **requires semicolons** and related rules in **`.eslintrc.js`** — match existing `src/core/` style rather than semicolon-free Standard.
- **Environment**: ESLint `es2020`, `node`, `browser`, `jest`.

## Patterns

- Use **JSDoc** (`@description`, `@param`, `@returns`, `@example`) on **public** API consistent with `src/core/contentstack.js` and `src/core/stack.js`.
- **Dependencies**: **`@contentstack/utils`** is exposed on the main class; follow existing import paths (including `.js` suffixes where the codebase uses them in ESM files).

## Logging

- Avoid noisy logging in library code except via existing **`fetchOptions.logHandler`** / **`fetchOptions.debug`** patterns in `src/core/lib/request.js` and `stack.js`.
- Never log full **delivery_token**, **preview_token**, **management_token**, or API keys.
36 changes: 36 additions & 0 deletions .cursor/rules/testing.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
description: "Jest e2e and TypeScript tests for the CDA SDK"
globs:
- "test/**/*.js"
- "test/**/*.ts"
alwaysApply: false
---

# Testing — `contentstack` (CDA)

## Frameworks

| Suite | Runner | Notes |
|-------|--------|--------|
| **JS e2e / integration-style** | **Jest** (`jest.js.config.js`) | `testMatch`: `**/test/**/*.js`; ignores `test/index.js`, `test/config.js`, `test/sync_config.js`, some `utils.js` paths |
| **TypeScript** | **Jest** + **ts-jest** (`jest.config.js`) | `npm run test:typescript`; `test/typescript/**/*.test.ts` |

## Env & live stack

- **Canonical required vars** for suites that `require('./config')` or `require('../config.js')`: **`HOST`**, **`API_KEY`**, **`DELIVERY_TOKEN`**, **`ENVIRONMENT`** — validated in **`test/config.js`** (loads **dotenv**). Missing any variable throws on import.
- Use a **`.env`** file locally; do not commit secrets. **`HOST`** should match the delivery API host for your stack/region.
- Built SDK: many tests **`require('../../dist/node/contentstack.js')`**. **`npm test`** runs **`pretest`** → **`npm run build`** first.

## Layout

- **Suite entry (JS):** `test/index.js` `require`s individual test files.
- **TypeScript:** colocate under **`test/typescript/`** with `*.test.ts` naming.

## Hygiene

- No committed **`only`** / **`skip`** for tests that must run in CI.
- Prefer deterministic assertions; mock or scope live tests when adding new cases so CI behavior stays predictable if env is absent.

## Coverage

- Jest / reporter config is in **`jest.js.config.js`** and **`jest.config.js`**; HTML reports paths are configured there.
43 changes: 43 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
module.exports = {
env: {
"es2020": true,
"node": true,
"browser": true,
"jest": true
},
extends: 'standard',
// "globals": {
// "Atomics": "readonly",
// "SharedArrayBuffer": "readonly"
// },
// "parserOptions": {
// "ecmaFeatures": {
// "jsx": true
// },
// "ecmaVersion": 2015,
// "sourceType": "module"
// },
parser: "@babel/eslint-parser", // Use Babel parser to handle modern JS syntax
plugins: [
'standard',
'promise'
],
rules: {
'semi': ['error', 'always'],
'semi-spacing': ['error', { before: false, after: true }],
'camelcase': 'off',
'no-tabs': 'off',
'eqeqeq': 'off',
'no-unused-vars': 'warn',
'no-undef': 'warn',
'no-prototype-builtins': 'off',
'no-extend-native': 'off',
'no-fallthrough': 'off',
'prefer-promise-reject-errors': 'off',
'prefer-regex-literals': 'off',
'no-useless-escape': 'off',
'n/handle-callback-err': 'off',
'n/no-callback-literal': 'off',
'no-async-promise-executor': 'off'
}
};
54 changes: 54 additions & 0 deletions .github/workflows/back-merge-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Back-merge master to development

on:
push:
branches:
- master
workflow_dispatch:

permissions:
contents: read
pull-requests: write

jobs:
open-back-merge-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Open back-merge PR if needed
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
BASE_BRANCH="development"
SOURCE_BRANCH="master"

git fetch origin "$BASE_BRANCH" "$SOURCE_BRANCH"

if ! git show-ref --verify --quiet "refs/remotes/origin/$BASE_BRANCH"; then
echo "Base branch '$BASE_BRANCH' does not exist on origin; skipping."
exit 0
fi

SOURCE_SHA=$(git rev-parse "origin/$SOURCE_BRANCH")
BASE_SHA=$(git rev-parse "origin/$BASE_BRANCH")

if [ "$SOURCE_SHA" = "$BASE_SHA" ]; then
echo "$SOURCE_BRANCH and $BASE_BRANCH are at the same commit; nothing to back-merge."
exit 0
fi

EXISTING=$(gh pr list --repo "${{ github.repository }}" --base "$BASE_BRANCH" --head "$SOURCE_BRANCH" --state open --json number --jq 'length')

if [ "$EXISTING" -gt 0 ]; then
echo "An open PR from $SOURCE_BRANCH to $BASE_BRANCH already exists; skipping."
exit 0
fi

gh pr create --repo "${{ github.repository }}" --base "$BASE_BRANCH" --head "$SOURCE_BRANCH" --title "chore: back-merge $SOURCE_BRANCH into $BASE_BRANCH" --body "Automated back-merge after changes landed on \\`$SOURCE_BRANCH\\`. Review and merge to keep \\`$BASE_BRANCH\\` in sync."

echo "Created back-merge PR $SOURCE_BRANCH -> $BASE_BRANCH."
86 changes: 86 additions & 0 deletions .github/workflows/check-version-bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Check Version Bump

on:
pull_request:

jobs:
version-bump:
name: Version & Changelog bump
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Detect changed files and version bump
id: detect
run: |
if git rev-parse HEAD^2 >/dev/null 2>&1; then
FILES=$(git diff --name-only HEAD^1 HEAD^2)
else
FILES=$(git diff --name-only HEAD~1 HEAD)
fi
VERSION_FILES_CHANGED=false
echo "$FILES" | grep -qx 'package.json' && VERSION_FILES_CHANGED=true
echo "$FILES" | grep -qx 'CHANGELOG.md' && VERSION_FILES_CHANGED=true
echo "version_files_changed=$VERSION_FILES_CHANGED" >> $GITHUB_OUTPUT
# Only lib/, webpack/, dist/, package.json count as release-affecting; .github/ and test/ do not
CODE_CHANGED=false
echo "$FILES" | grep -qE '^lib/|^webpack/|^dist/' && CODE_CHANGED=true
echo "$FILES" | grep -qx 'package.json' && CODE_CHANGED=true
echo "code_changed=$CODE_CHANGED" >> $GITHUB_OUTPUT

- name: Skip when only test/docs/.github changed
if: steps.detect.outputs.code_changed != 'true'
run: |
echo "No release-affecting files changed (e.g. only test/docs/.github). Skipping version-bump check."
exit 0

- name: Fail when version bump was missed
if: steps.detect.outputs.code_changed == 'true' && steps.detect.outputs.version_files_changed != 'true'
run: |
echo "::error::This PR has code changes but no version bump. Please bump the version in package.json and add an entry in CHANGELOG.md."
exit 1

- name: Setup Node
if: steps.detect.outputs.code_changed == 'true' && steps.detect.outputs.version_files_changed == 'true'
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: Check version bump
if: steps.detect.outputs.code_changed == 'true' && steps.detect.outputs.version_files_changed == 'true'
run: |
set -e
PKG_VERSION=$(node -p "require('./package.json').version.replace(/^v/, '')")
if [ -z "$PKG_VERSION" ]; then
echo "::error::Could not read version from package.json"
exit 1
fi
git fetch --tags --force 2>/dev/null || true
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || true)
if [ -z "$LATEST_TAG" ]; then
echo "No existing tags found. Skipping version-bump check (first release)."
exit 0
fi
LATEST_VERSION="${LATEST_TAG#v}"
LATEST_VERSION="${LATEST_VERSION%%-*}"
if [ "$(printf '%s\n' "$LATEST_VERSION" "$PKG_VERSION" | sort -V | tail -1)" != "$PKG_VERSION" ]; then
echo "::error::Version bump required: package.json version ($PKG_VERSION) is not greater than latest tag ($LATEST_TAG). Please bump the version in package.json."
exit 1
fi
if [ "$PKG_VERSION" = "$LATEST_VERSION" ]; then
echo "::error::Version bump required: package.json version ($PKG_VERSION) equals latest tag ($LATEST_TAG). Please bump the version in package.json."
exit 1
fi
CHANGELOG_VERSION=$(sed -nE 's/^## \[v?([0-9]+\.[0-9]+\.[0-9]+).*/\1/p' CHANGELOG.md | head -1)
if [ -z "$CHANGELOG_VERSION" ]; then
echo "::error::Could not find a version entry in CHANGELOG.md (expected line like '## [v1.0.0](...)')."
exit 1
fi
if [ "$CHANGELOG_VERSION" != "$PKG_VERSION" ]; then
echo "::error::CHANGELOG version mismatch: CHANGELOG.md top version ($CHANGELOG_VERSION) does not match package.json version ($PKG_VERSION). Please add or update the CHANGELOG entry for $PKG_VERSION."
exit 1
fi
echo "Version bump check passed: package.json and CHANGELOG.md are at $PKG_VERSION (latest tag: $LATEST_TAG)."
Loading