Skip to content

Commit 56e2676

Browse files
Merge branch 'next' into snyk-upgrade-ac4573131d3387350f559f04c0099e1f
2 parents 9a75d7d + 9b86bcb commit 56e2676

36 files changed

+1306
-413
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: '12.x'
16+
node-version: '18.x'
1717
registry-url: 'https://registry.npmjs.org'
1818
- run: npm ci
1919
- run: npm publish
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v3
2626
- uses: actions/setup-node@v3
2727
with:
28-
node-version: '12.x'
28+
node-version: '18.x'
2929
registry-url: 'https://npm.pkg.github.com'
3030
scope: '@contentstack'
3131
- run: npm ci

.github/workflows/sast-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/secrets-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.talismanrc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
threshold: medium
21
fileignoreconfig:
32
- filename: package-lock.json
4-
checksum: 1e966081577191b52e4ac7fa113c9563d5e120043a3e399dec06e3943c4d81bc
3+
checksum: 4ddadcdbbd39ead729f20a58ce15fbbf2c71b17edf300df82f51f4f73489e96c
4+
- filename: test/typescript/taxonomy.test.ts
5+
checksum: e4bdf633e147fd60d929d379f20c814eed5f68b11421d7b53ec8826e9142de37
6+
- filename: src/core/modules/taxonomy.js
7+
checksum: 84589be9805c1be5fd6c56021c41d18365126cf82059ad2cbef1d418c70d08e0
8+
- filename: src/core/lib/utils.js
9+
checksum: 8a37566d0372573b8fe4ec506a43f1074981c5218e9adbc551c87922c8914922
10+
- filename: src/core/modules/query.js
11+
checksum: c88b336f9a271397ffedcf8c5085941ceb0bd1cd7e25ed9ada3acd8ce4f8970c
12+
- filename: test/typescript/stack.test.ts
13+
checksum: bbb3c425f8e1a63d4793f69ee9eaba9559294ff53f163a28f70ae54b1792276a
14+
version: ""

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
## Change log
22

3+
### Version: 3.19.0
4+
#### Date: February-02-2024
5+
##### New Features:
6+
- live preview support both 1.0 and 2.0
7+
- fix for `ESM module cannot use module.exports` issue react-native and nativescript builds
8+
### Version: 3.18.1
9+
#### Date: January-30-2024
10+
##### New Features:
11+
- added fix for `ESM module cannot use module.exports` issue
12+
### Version: 3.18.0
13+
#### Date: January-15-2024
14+
##### New Features:
15+
- added taxonomy support
16+
- X-User-Agent updated
17+
- added region gcp_na
18+
### Version: 3.17.2
19+
#### Date: November-15-2023
20+
##### Bug fix:
21+
- Same management token in Live Preview in different stack object fixed
22+
- X-User-Agent updated
23+
##### New Features
24+
- Early Access added to stack config
25+
326
### Version: 3.17.1
427
#### Date: April-18-2023
528
##### Bug fix:

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MIT License (MIT)
22

33

4-
Copyright (c) 2016-2023 Contentstack
4+
Copyright (c) 2016-2024 Contentstack
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ You can use advanced sync queries to fetch custom results while performing initi
291291

292292
### The MIT License (MIT)
293293

294-
Copyright © 2012-2021 [Contentstack](https://www.contentstack.com). All Rights Reserved
294+
Copyright © 2012-2024 [Contentstack](https://www.contentstack.com). All Rights Reserved
295295

296296
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
297297

config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ const config = {
88
content_types: "/content_types/",
99
entries: "/entries/",
1010
assets: "/assets/",
11-
environments: "/environments/"
11+
environments: "/environments/",
12+
taxonomies: "/taxonomies/entries"
1213
},
1314
live_preview: {
1415
enable: false,
15-
host: 'api.contentstack.io'
16+
host: 'rest-preview.contentstack.com'
1617
}
1718
};
1819

examples/PromiseError/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const Stack = Contentstack.Stack(
4040
Stack.setHost('api.contentstack.io');
4141

4242
const Query = Stack
43-
.ContentType(process.env.CONTENTSTACK_CONTENT_TYPE)
43+
.ContentType(process.env.CONTENT_TYPE)
4444
.Query({})
4545
.language("en-us")
4646
.includeCount();

examples/web/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Contentstack - Javascript SDK</title>
6-
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
6+
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-KXn5puMvxCw+dAYznun+drMdG1IFl3agK0p/pqT9KAo=">
77
</head>
88
<body>
99
<div class="container">
@@ -14,8 +14,8 @@ <h1>News</h1>
1414
<input type="submit" name="Download Asset">
1515
</div>
1616
</div>
17-
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
18-
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
17+
<script src="https://code.jquery.com/jquery-2.2.0.min.js" integrity="sha256-ihAoc6M/JPfrIiIeayPE9xjin4UWjsx2mjW/rtmxLM4="></script>
18+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha256-KXn5puMvxCw+dAYznun+drMdG1IFl3agK0p/pqT9KAo="></script>
1919
<script src="../../dist/web/contentstack.js"></script>
2020
<script src="scripts/custom.min.js"></script>
2121
</body>

0 commit comments

Comments
 (0)