Skip to content

Commit 43fbdd5

Browse files
Revert "Updated this branch by pulling changes from master branch"
This reverts commit 2862d87.
1 parent 4ccc5e8 commit 43fbdd5

27 files changed

+18828
-4764
lines changed

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: '18.x'
16+
node-version: '12.x'
1717
registry-url: 'https://registry.npmjs.org'
18-
- run: npm ci/Users/harshitha.d/Documents/sdk-contentstack/contentstack-javascript/webpack
18+
- run: npm ci
1919
- run: npm publish
2020
env:
2121
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v3
2626
- uses: actions/setup-node@v3
2727
with:
28-
node-version: '18.x'
28+
node-version: '12.x'
2929
registry-url: 'https://npm.pkg.github.com'
3030
scope: '@contentstack'
3131
- run: npm ci

.github/workflows/sca-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
env:
1313
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
1414
with:
15-
args: --all-projects --fail-on=all
15+
args: --all-projects --fail-on=all

CHANGELOG.md

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

3-
### Version: 3.18.0
4-
#### Date: January-15-2024
5-
##### New Features:
6-
- added taxonomy support
7-
- X-User-Agent updated
8-
- added region gcp_na
93
### Version: 3.17.2
104
#### Date: November-15-2023
115
##### 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-2024 Contentstack
4+
Copyright (c) 2016-2023 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-2024 [Contentstack](https://www.contentstack.com). All Rights Reserved
294+
Copyright © 2012-2021 [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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ const config = {
88
content_types: "/content_types/",
99
entries: "/entries/",
1010
assets: "/assets/",
11-
environments: "/environments/",
12-
taxonomies: "/taxonomies/entries"
11+
environments: "/environments/"
1312
},
1413
live_preview: {
1514
enable: false,

index.d.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ export enum Region {
2323
US = "us",
2424
EU = "eu",
2525
AZURE_NA = "azure-na",
26-
AZURE_EU = "azure-eu",
27-
GCP_NA = "gcp-na",
26+
AZURE_EU = "azure-eu"
2827
}
2928

3029
//Enum for Contentstack CachePolicy
@@ -137,7 +136,6 @@ export class Stack {
137136
ContentType(uid: string): ContentType;
138137
Assets(uid: string): Asset;
139138
Assets(): Assets;
140-
Taxonomies(): Taxonomies;
141139

142140
setPort(port: number): Stack;
143141
setProtocol(protocol: string): Stack;
@@ -165,13 +163,11 @@ export class ContentType {
165163
constructor();
166164
content_type_uid: string
167165

168-
Query(): Taxonomy;
166+
Query(): Query;
169167
Entry(uid: string): Entry;
170168
fetch(fetchOptions?: object): Promise<any>;
171169
}
172170

173-
export class Taxonomies extends Taxonomy {}
174-
175171
export class Assets {
176172
constructor();
177173

@@ -292,11 +288,3 @@ export class Query extends Entry {
292288
find(fetchOptions?: object): Promise<any>;
293289
findOne(): Promise<any>;
294290
}
295-
296-
export class Taxonomy extends Query {
297-
constructor();
298-
above(key: string, value: string, levels?: number): Query;
299-
equalAndAbove(key: string, value: string, levels?: number): Query;
300-
below(key: string, value: string, levels?: number): Query;
301-
equalAndBelow(key: string, value: string, levels?: number): Query;
302-
}

0 commit comments

Comments
 (0)