Skip to content

DX | 28-10-2024 | Release #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1522861
fix: doc type fixes
Sep 15, 2024
672ee44
fix: more fixes
Sep 18, 2024
c90bd75
Merge pull request #53 from contentstack/fix/doctype_fixes
netrajpatel Sep 27, 2024
4b4b413
refactor: Package type changed to be module instead of CommonJS
nadeem-cs Oct 10, 2024
2526a69
fix: :adhesive_bandage: preview_timestamp to be added only when its a…
nadeem-cs Oct 16, 2024
82447c2
Node version bump in package publish workflow (#59)
sunil-lakshman Oct 16, 2024
cee07c4
Merge branch 'development' into refactor/DX-1103
nadeem-cs Oct 16, 2024
316a1b9
fix: changelog fix
nadeem-cs Oct 16, 2024
8d27df0
Merge pull request #58 from contentstack/refactor/DX-1103
nadeem-cs Oct 16, 2024
d34a184
Merge pull request #60 from contentstack/fix/DX-1483
nadeem-cs Oct 17, 2024
fd245e4
Fix: Variants headers to be added only on specific call
nadeem-cs Oct 17, 2024
755a52e
fix: tsconfig changes for ESM package
nadeem-cs Oct 17, 2024
2bb4ecc
Merge pull request #62 from contentstack/fix/DX-1492
nadeem-cs Oct 17, 2024
c67976d
feat: include_applied_variants in StackConfig
nadeem-cs Oct 17, 2024
29c5dc4
Merge pull request #61 from contentstack/development
cs-raj Oct 23, 2024
405f90c
refactor: tsconfig and webpack config changes
nadeem-cs Oct 24, 2024
f9fac5e
build: :fire: removed UMD build
nadeem-cs Oct 29, 2024
0abb1ce
fix: removed debugging script from package file
nadeem-cs Oct 29, 2024
34b3249
Merge pull request #63 from contentstack/refactor/DX-1103
nadeem-cs Oct 29, 2024
b5f5a88
Merge pull request #64 from contentstack/feat/DX-1547-include_applied…
nadeem-cs Oct 29, 2024
4ba42b1
fix: version bump
nadeem-cs Oct 29, 2024
b060ff3
Merge pull request #67 from contentstack/fix/versionBump
nadeem-cs Oct 29, 2024
3bf9e84
Merge pull request #66 from contentstack/development
nadeem-cs Oct 29, 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
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --tag latest --access public
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@contentstack'
- run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
fileignoreconfig:
- filename: package-lock.json
checksum: f2a832173c4b84d2105f29c5f83adc9ffbdb017ec869f820251f7496b8ef7f9d
- filename: test/unit/image-transform.spec.ts
checksum: 7beabdd07bd35d620668fcd97e1a303b9cbc40170bf3008a376d75ce0895de2a
- filename: test/utils/mocks.ts
checksum: a1cb4b1890a584f1facd30f2a0974c97a66f91417022be79d00516338e244227
- filename: package-lock.json
checksum: 6e6c9c6f379ec75ce259a49f405c49a6b24dfbfd68406d6d49642042db2bf188
- filename: test/typescript/taxonomy.test.ts
checksum: e4bdf633e147fd60d929d379f20c814eed5f68b11421d7b53ec8826e9142de37
- filename: src/core/modules/taxonomy.js
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## Change log
### Version: 4.4.0
#### Date: October-21-2024
Fix: getData to receive params and headers both in data
Enh: Node version bump
Refactor: Package type changed to be module instead of CommonJS

### Version: 4.3.0
#### Date: Septmber-09-2024
Expand Down
2 changes: 1 addition & 1 deletion config/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"declaration": true,
},
"include": ["../src/**/*.ts"],
"exclude": ["../dist/cjs"]
"exclude": ["node_modules", "../dist/cjs"]
}
6 changes: 4 additions & 2 deletions config/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../dist/esm",
"module": "esnext"
"module": "ESNext",
"declaration": true,
"declarationDir": "../dist/esm/types",
},
"include": ["../src/**/*.ts"], // Adjust this path based on your project structure
"exclude": ["../dist/esm"]
"exclude": ["node_modules", "../dist/esm"]
}
2 changes: 1 addition & 1 deletion config/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"outDir": "../dist/types" /* Redirect output structure to the directory. */
},
"include": ["../src/**/*.ts"], // Adjust this path based on your project structure
"exclude": ["../dist/types"]
"exclude": ["node_modules", "../dist/types"]
}
7 changes: 3 additions & 4 deletions config/tsconfig.umd.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"module": "umd" /* 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"]
"include": ["../src/**/*"],
"exclude": ["node_modules", "dist"]
}
20 changes: 16 additions & 4 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
const path = require('path');
import path, { dirname } from 'path';
import { fileURLToPath } from 'url';

module.exports = {
// Replicating __dirname in ES modules
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

export default {
mode: 'production',
entry: './src/index.ts',
output: {
Expand All @@ -14,17 +19,24 @@ module.exports = {
rules: [
{
test: /\.ts(x*)?$/,
exclude: /node_modules/,
exclude: path.resolve(__dirname, "node_modules"),
use: {
loader: 'ts-loader',
options: {
configFile: 'config/tsconfig.umd.json',
configFile: path.resolve(__dirname, "tsconfig.umd.json"),
},
},
},
{
test: /node-localstorage/,
use: 'ignore-loader',
}
],
},
resolve: {
extensions: ['.ts', '.js', '.tsx', '.jsx'],
fallback: {
path: path.resolve("path-browserify")
}
},
};
4 changes: 2 additions & 2 deletions jest.preset.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const nxPreset = require('@nrwl/jest/preset').default;
import nxPreset from '@nrwl/jest/preset/index.js';

module.exports = { ...nxPreset };
export default { ...nxPreset };
Loading
Loading