Skip to content

Commit 47278db

Browse files
Merge pull request #270 from contentstack/staging
DX | 13-04-2026 | Release
2 parents c1a84e6 + b8446b4 commit 47278db

File tree

4 files changed

+419
-398
lines changed

4 files changed

+419
-398
lines changed

.talismanrc

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,6 @@
11
fileignoreconfig:
2-
- filename: .github/workflows/secrets-scan.yml
3-
ignore_detectors:
4-
- filecontent
5-
- filename: package-lock.json
6-
checksum: 85c2c0c45183180b6793501e09529c5396a66a73e876ade9a80f625b8d174102
7-
- filename: __test__/find-render-content.test.ts
8-
checksum: c2508ae1fb2b20f6fe3d354558704076ecdcbe7e1ece46addaa5eb8354e60233
9-
- filename: __test__/json-to-html.test.ts
10-
checksum: 8ef368136341314dc597a1e0a3a7b45ac9255897b376395db5e7e032b661682e
11-
- filename: __test__/entry-editable.test.ts
12-
checksum: 32e5e047c56ef0e74456eb6275c6ea8d2ffbef38901bc3eb97ae0a62e431f5a2
13-
- filename: src/entry-editable.ts
14-
checksum: e130c19526679f220073ed9cc918fa28906ebf99c33c00cf8ee58f2178caddcf
15-
- filename: .husky/pre-commit
16-
checksum: 5baabd7d2c391648163f9371f0e5e9484f8fb90fa2284cfc378732ec3192c193
17-
- filename: src/endpoints.ts
18-
checksum: 721a1df93b02d04c1c19a76c171fe2748e4abb1fc3e43452e76fecfd8f384751
19-
- filename: src/options/default-node-options.ts
20-
checksum: d455330cc4f9306889fb299171364a37ad2c3bafe1fbd334033edc94f21694a6
21-
- filename: package.json
22-
checksum: 033eb21070795be5b426183f52d784347110fcb724bc9f8d63f94898ac5f0086
23-
- filename: src/Models/metadata-model.ts
24-
checksum: a101e109db1ec6ee0cb16a116f9b099e547c3104881e4fa1eaef2849e2d0aaf0
25-
- filename: src/json-to-html.ts
26-
checksum: a843710fc9f54bf4c7996f39561dc66491d62a9d9eeca50fa2c7c37bd6141f53
27-
- filename: src/render-embedded-objects.ts
28-
checksum: 35d56d4f7b625611fef18414fccdbff014c1d90d02e17eb0efa4d6166b73e23b
29-
- filename: .cursor/rules/code-review.mdc
30-
checksum: 43d4fddb706e5ad6c92fe0af30bd5f44eec9b83c31dc93d3d4cc5e6208d351cc
31-
- filename: .cursor/rules/dev-workflow.md
32-
checksum: b9a4d68439ce9564730506ab6c4712f5034a645858bdb78ac57e43ba183cb981
33-
- filename: skills/code-review/SKILL.md
34-
checksum: 4ec638a87a795e5cc0b0e66b569e04749cb27f9d3be29d4ea69f56b48225c943
2+
- filename: .github/workflows/secrets-scan.yml
3+
ignore_detectors:
4+
- filecontent
5+
- filename: package-lock.json
6+
checksum: 8e62821551e64c0fbd23ce2951b44e41561196f0d38b6a2da7de1f6921b48865

CHANGELOG.md

Lines changed: 104 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,186 @@
11
# Changelog
22

3+
## [1.9.1](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.9.1)
4+
5+
- fix: security updates
6+
37
## [1.9.0](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.9.0)
8+
49
- Feat: Variant utilities `getVariantAliases` and `getVariantMetadataTags` to read variant alias strings from CDA entry `publish_details.variants` (requires fetches with the `x-cs-variant-uid` header set to aliases per [CDA variants](https://www.contentstack.com/docs/developers/apis/content-delivery-api#get-all-entry-variants)).
510

611
## [1.8.0](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.8.0)
12+
713
- Fix: JSON-to-HTML now outputs valid HTML for nested lists when JSON RTE exports the nested list as a sibling of the preceding list item (`<li>`). The SDK folds such sibling `<ol>`/`<ul>` nodes into the previous `<li>` so the rendered HTML has the nested list inside the parent list item (PROD-2115).
814

915
## [1.7.1](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.7.1)
16+
1017
- Fix: Guard against null/undefined in getTag to prevent TypeError when addEditableTags/addTags processes entries with null content (Issue #193)
1118

1219
## [1.7.0](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.7.0)
20+
1321
- Added option in addTags to disable lowercasing of locale
1422

1523
## [1.6.3](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.6.3)
16-
- Refactor: Simplified endpoints.ts to use compile-time JSON import instead of runtime file loading
17-
- Build: Updated build process to download regions.json to src/assets directory
18-
- Test: Added comprehensive test coverage for endpoints.ts
19-
- Chore: Removed postinstall/postupdate scripts and simplified package.json scripts
24+
25+
- Refactor: Simplified endpoints.ts to use compile-time JSON import instead of runtime file loading
26+
- Build: Updated build process to download regions.json to src/assets directory
27+
- Test: Added comprehensive test coverage for endpoints.ts
28+
- Chore: Removed postinstall/postupdate scripts and simplified package.json scripts
2029

2130
## [1.6.2](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.6.2)
22-
- Fix: Missing attr in node does not add empty attr
31+
32+
- Fix: Missing attr in node does not add empty attr
2333

2434
## [1.6.1](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.6.1)
25-
- Fix: Improved error handling in getContentstackEndpoint
26-
- Fix: Enhanced error messages for better debugging
27-
- Refactor: Removed redundant try/catch wrapper and improved code structure
28-
- Test: Updated and improved test coverage for error scenarios
35+
36+
- Fix: Improved error handling in getContentstackEndpoint
37+
- Fix: Enhanced error messages for better debugging
38+
- Refactor: Removed redundant try/catch wrapper and improved code structure
39+
- Test: Updated and improved test coverage for error scenarios
2940

3041
## [1.6.0](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.6.0)
31-
- Feat: Adds Helper functions for Contentstack Endpoints
32-
42+
43+
- Feat: Adds Helper functions for Contentstack Endpoints
44+
3345
## [1.5.0](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.4.5) (2025-10-27)
34-
- fix: handle null and undefined values in getTag function
35-
- fix: refernce variant cslp generation fix
46+
47+
- fix: handle null and undefined values in getTag function
48+
- fix: refernce variant cslp generation fix
3649

3750
## [1.4.4](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.4.4) (2025-09-24)
38-
-Enhance break and newline handling, update dependencies
51+
52+
-Enhance break and newline handling, update dependencies
3953

4054
## [1.4.3](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.4.3) (2025-09-22)
41-
- Fix data-cslp generation logic in case of applied_variants
55+
56+
- Fix data-cslp generation logic in case of applied_variants
4257

4358
## [1.4.2](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.4.2) (2025-09-01)
44-
- Improve null checks in find embedded entry and find embedded asset functions
59+
60+
- Improve null checks in find embedded entry and find embedded asset functions
4561

4662
## [1.4.1](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.4.1) (2025-05-26)
47-
- Chore: Handle case sensitivity for contentType and locale
48-
63+
64+
- Chore: Handle case sensitivity for contentType and locale
65+
4966
## [1.4.0](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.4.0) (2025-04-21)
50-
- Fix: customRenderOption for entry-embedded-as-link nodes
51-
67+
68+
- Fix: customRenderOption for entry-embedded-as-link nodes
69+
5270
## [1.3.20](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.20) (2025-02-24)
53-
- Fix: Added data-mtec as allowed attribute
54-
71+
72+
- Fix: Added data-mtec as allowed attribute
73+
5574
## [1.3.19](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.19) (2025-02-24)
56-
- Fix: Added fix for html injection in keys and values of attributes
57-
75+
76+
- Fix: Added fix for html injection in keys and values of attributes
77+
5878
## [1.3.18](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.18) (2025-02-17)
59-
- Fix: Added fix for html injection
60-
79+
80+
- Fix: Added fix for html injection
81+
6182
## [1.3.17](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.17) (2025-02-11)
62-
- Enh: updateAssetURLForGQL update for multilpe entries
63-
- Fix: Added support of br tag (\n) after just enter
83+
84+
- Enh: updateAssetURLForGQL update for multilpe entries
85+
- Fix: Added support of br tag (\n) after just enter
6486

6587
## [1.3.16](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.16) (2025-01-27)
66-
- Enh: Added support for colgroup and col tags inside table tag
67-
- Fix: Updated rendorOption code block in reaadme file
88+
89+
- Enh: Added support for colgroup and col tags inside table tag
90+
- Fix: Updated rendorOption code block in reaadme file
6891

6992
## [1.3.15](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.15) (2024-11-18)
70-
- Fix: Added Table merge cell functionality
93+
94+
- Fix: Added Table merge cell functionality
7195

7296
## [1.3.14](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.14) (2024-11-12)
73-
- Fix: Add data-type attr to inlineCode
97+
98+
- Fix: Add data-type attr to inlineCode
7499

75100
## [1.3.13](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.13) (2024-10-22)
76-
- Enh: Node version bump
101+
102+
- Enh: Node version bump
77103

78104
## [1.3.12](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.12) (2024-09-30)
79-
- Fix: addTags methods changes for Variants
105+
106+
- Fix: addTags methods changes for Variants
80107

81108
## [1.3.11](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.11) (2024-08-21)
82-
- Fix: Reference to HTML fixed to support assets that are referenced
109+
110+
- Fix: Reference to HTML fixed to support assets that are referenced
83111

84112
## [1.3.10](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.10) (2024-07-08)
85-
- Enhancement: Update default node options
113+
114+
- Enhancement: Update default node options
86115

87116
## [1.3.9](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.9) (2024-07-08)
88-
- Fix: SRE vulnerabilities fixed
117+
118+
- Fix: SRE vulnerabilities fixed
89119

90120
## [1.3.8](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.8) (2024-06-24)
91-
- Feat: Support for Image type asset in JsonToHtml
121+
122+
- Feat: Support for Image type asset in JsonToHtml
92123

93124
## [1.3.7](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.7) (2024-06-18)
94-
- Fix: Cheerio and DOMPurify packages removed
125+
126+
- Fix: Cheerio and DOMPurify packages removed
95127

96128
## [1.3.6](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.6) (2024-05-31)
97-
- Fix: handle case of td or th nodes with attr void:true
129+
130+
- Fix: handle case of td or th nodes with attr void:true
98131

99132
## [1.3.5](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.5) (2024-05-31)
100-
- Feat: updateAssetURLForGQL added
101-
- Fix: add rowspan and colspan attribute to td and th nodes
133+
134+
- Feat: updateAssetURLForGQL added
135+
- Fix: add rowspan and colspan attribute to td and th nodes
102136

103137
## [1.3.4](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.4) (2024-05-13)
104-
- Fixes for vulnerability issues related to regular expression and options
138+
139+
- Fixes for vulnerability issues related to regular expression and options
105140

106141
## [1.3.3](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.3) (2024-02-28)
107-
- Fix for parsing nested children when entry is referenced as link
142+
143+
- Fix for parsing nested children when entry is referenced as link
108144

109145
## [1.3.2](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.2) (2024-02-14)
110-
- Added style attribute fragment as
146+
147+
- Added style attribute fragment as
111148

112149
## [1.3.1](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.1) (2023-12-13)
113-
- Text level rendering suppport
114-
- Dependencies update
115-
- Multiple array support
150+
151+
- Text level rendering suppport
152+
- Dependencies update
153+
- Multiple array support
116154

117155
## [1.3.0](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.3.0) (2023-05-02)
118-
- JSON RTE asset nested in reference field
119-
- Bug fixes
156+
157+
- JSON RTE asset nested in reference field
158+
- Bug fixes
120159

121160
## [1.2.0](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.2.0) (2023-02-27)
122-
- Added Dom parser for HTML parsing
161+
162+
- Added Dom parser for HTML parsing
123163

124164
## [1.1.3](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.1.3) (2022-10-19)
125-
- Resolving embedded items in Json RTE without include Embedded query
165+
166+
- Resolving embedded items in Json RTE without include Embedded query
126167

127168
## [1.1.2](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.1.2) (2022-04-21)
128-
- Image link and embed tag support for attribute url
169+
170+
- Image link and embed tag support for attribute url
129171

130172
## [1.1.1](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.1.1) (2021-12-08)
131-
- Render option support added for new tags
173+
174+
- Render option support added for new tags
132175

133176
## [1.1.0](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.1.0) (2021-10-19)
134-
- Live preview edit tags support added
177+
178+
- Live preview edit tags support added
135179

136180
## [1.0.1](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.0.1) (2021-05-26)
137-
- Dependency update
181+
182+
- Dependency update
183+
138184
## [1.0.0](https://github.com/contentstack/contentstack-utils-javascript/tree/v1.0.0) (2021-04-05)
139-
- Initial release for Contentstack JS Utils SDK
185+
186+
- Initial release for Contentstack JS Utils SDK

0 commit comments

Comments
 (0)