Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
05180fc
Merge pull request #102 from contentstack/next
nadeem-cs Nov 21, 2023
7a7cb63
feat: :sparkles: Initial codebase for Typescript Delivery SDK release
nadeem-cs Dec 13, 2023
f36ba47
refactor: :recycle: refactored query function to accept queryObj dire…
nadeem-cs Jan 8, 2024
e0d9eef
chore: added ids in env file
nadeem-cs Jan 9, 2024
b602bc0
fix: fixed contentstack export
abhinav-from-contentstack Jan 9, 2024
3141b45
fix: added gcp_na region and above,below operators
abhinav-from-contentstack Jan 9, 2024
b407e5c
Merge pull request #110 from contentstack/fix/CS-43257-query-function
nadeem-cs Jan 9, 2024
833b4ca
WIP: taxonomy query support
abhinav-from-contentstack Jan 11, 2024
cff6b71
updated talismanrc
abhinav-from-contentstack Jan 11, 2024
efc323d
feat: added taxonomy
abhinav-from-contentstack Jan 11, 2024
f744fd0
Revert "fix: fixed contentstack export"
abhinav-from-contentstack Jan 11, 2024
1f7c543
Merge branch 'v4-release' into feat/CS-42651-taxonomy-support
abhinav-from-contentstack Jan 11, 2024
82ca954
fix: changed default export to named export
abhinav-from-contentstack Jan 12, 2024
ec46e07
fix: added additionalData parameter to where
abhinav-from-contentstack Jan 12, 2024
c57b1f0
fix: added unit tests
abhinav-from-contentstack Jan 12, 2024
05c979c
fix: added api test for taxonomies
abhinav-from-contentstack Jan 12, 2024
4690f7d
fix: added ct query tests
abhinav-from-contentstack Jan 16, 2024
b57ff0f
fix: separated taxonomy query operators
abhinav-from-contentstack Jan 16, 2024
9ad9ae4
test: :white_check_mark: moves persistance test files
nadeem-cs Jan 16, 2024
3137697
test: :white_check_mark: adds plugin test in contentstack.spec.ts
nadeem-cs Jan 16, 2024
6d625a4
Merge pull request #117 from contentstack/feat/CS-42655-ts-taxonomy-test
abhinav-from-contentstack Jan 16, 2024
3d5108b
Merge branch 'v4-release' into chore/plugin-test
nadeem-cs Jan 17, 2024
b8fcc92
fix: :fire: removes redundant persistance test files
nadeem-cs Jan 16, 2024
88ec73c
chore: updates LICENSE file
nadeem-cs Jan 17, 2024
9140a6b
chore: updates package-lock file
nadeem-cs Jan 17, 2024
421aae1
Merge pull request #121 from contentstack/chore/plugin-test
nadeem-cs Jan 17, 2024
ea00f31
fix: :bug: getQuery function to return queryObj
nadeem-cs Jan 17, 2024
dc64b6f
fix: :bug: fetch function to directly give entry/asset/ct object
nadeem-cs Jan 17, 2024
a931add
Merge pull request #123 from contentstack/chore/plugin-test
nadeem-cs Jan 17, 2024
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
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{

"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
18 changes: 16 additions & 2 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
threshold: medium
fileignoreconfig:
- filename: test/unit/image-transform.spec.ts
checksum: 7beabdd07bd35d620668fcd97e1a303b9cbc40170bf3008a376d75ce0895de2a
- filename: test/utils/mocks.ts
checksum: a1cb4b1890a584f1facd30f2a0974c97a66f91417022be79d00516338e244227
- filename: package-lock.json
checksum: 0dbf56c1fd0eda1145d69b718de5b7d419650556492851c343fab05867e233a2
version: ""
checksum: af15bd4d7d590b3f88eee77ff66a06561b03888a30bd5e2b11b899f9ba4aca00
- filename: test/typescript/taxonomy.test.ts
checksum: e4bdf633e147fd60d929d379f20c814eed5f68b11421d7b53ec8826e9142de37
- filename: src/core/modules/taxonomy.js
checksum: 84589be9805c1be5fd6c56021c41d18365126cf82059ad2cbef1d418c70d08e0
- filename: src/core/lib/utils.js
checksum: 6018f9f13fa32b724d09b9cdf5f78cf030a6332ca549651e1e35fe91e8c7e0e7
- filename: src/core/modules/query.js
checksum: c88b336f9a271397ffedcf8c5085941ceb0bd1cd7e25ed9ada3acd8ce4f8970c
- filename: test/typescript/stack.test.ts
checksum: bbb3c425f8e1a63d4793f69ee9eaba9559294ff53f163a28f70ae54b1792276a
version: ""
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Change log

### Version: 4.0.0
#### Date: December-15-2023
- Initial release of Typescript SDK

### Version: 3.17.2
#### Date: November-15-2023
##### Bug fix:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)


Copyright (c) 2016-2023 Contentstack
Copyright (c) 2016-2024 Contentstack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 0 additions & 19 deletions config.js

This file was deleted.

7 changes: 7 additions & 0 deletions config/fileTransformer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const path = require('path');

module.exports = {
process(src, filename, config, options) {
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';';
},
};
9 changes: 9 additions & 0 deletions config/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../dist/cjs",
"declaration": true,
},
"include": ["../src/**/*.ts"],
"exclude": ["../dist/cjs"]
}
9 changes: 9 additions & 0 deletions config/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../dist/esm",
"module": "esnext"
},
"include": ["../src/**/*.ts"], // Adjust this path based on your project structure
"exclude": ["../dist/esm"]
}
10 changes: 10 additions & 0 deletions config/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"declaration": true /* Generates corresponding '.d.ts' file. */,
"emitDeclarationOnly": true,
"outDir": "../dist/types" /* Redirect output structure to the directory. */
},
"include": ["../src/**/*.ts"], // Adjust this path based on your project structure
"exclude": ["../dist/types"]
}
10 changes: 10 additions & 0 deletions config/tsconfig.umd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"declaration": false, /* Generates corresponding '.d.ts' file. */
},

"include": ["../src/**/*.ts"],
"exclude": ["../dist/umd"]
}
30 changes: 30 additions & 0 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const path = require('path');

module.exports = {
mode: 'production',
entry: './src/index.ts',
output: {
path: path.resolve(__dirname, '../dist/umd'),
filename: 'index.js',
library: 'exampleTypescriptPackage',
libraryTarget: 'umd',
globalObject: 'this',
},
module: {
rules: [
{
test: /\.ts(x*)?$/,
exclude: /node_modules/,
use: {
loader: 'ts-loader',
options: {
configFile: 'config/tsconfig.umd.json',
},
},
},
],
},
resolve: {
extensions: ['.ts', '.js', '.tsx', '.jsx'],
},
};
25 changes: 0 additions & 25 deletions docs-config.json

This file was deleted.

59 changes: 0 additions & 59 deletions examples/PromiseError/index.js

This file was deleted.

112 changes: 0 additions & 112 deletions examples/node/contentstack-demo.js

This file was deleted.

31 changes: 0 additions & 31 deletions examples/node/index.js

This file was deleted.

Binary file removed examples/web/favicon.ico
Binary file not shown.
Loading