contentful-management 11.64.0-new-beta.2 → 11.64.0-new-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ function createClient(params, opts = {}) {
22
22
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
23
23
  const userAgent = getUserAgentHeader(
24
24
  // @ts-expect-error
25
- `${sdkMain}/${"11.64.0-new-beta.2"}`, params.application, params.integration, params.feature);
25
+ `${sdkMain}/${"11.64.0-new-beta.4"}`, params.application, params.integration, params.feature);
26
26
  const adapter = createAdapter({ ...params, userAgent });
27
27
  // Parameters<?> and ReturnType<?> only return the types of the last overload
28
28
  // https://github.com/microsoft/TypeScript/issues/26591
@@ -22,7 +22,7 @@ function createClient(params, opts = {}) {
22
22
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
23
23
  const userAgent = getUserAgentHeader(
24
24
  // @ts-expect-error
25
- `${sdkMain}/${"11.64.0-new-beta.2"}`, params.application, params.integration, params.feature);
25
+ `${sdkMain}/${"11.64.0-new-beta.4"}`, params.application, params.integration, params.feature);
26
26
  const adapter = createAdapter({ ...params, userAgent });
27
27
  // Parameters<?> and ReturnType<?> only return the types of the last overload
28
28
  // https://github.com/microsoft/TypeScript/issues/26591
package/package.json CHANGED
@@ -1,20 +1,23 @@
1
1
  {
2
2
  "name": "contentful-management",
3
- "version": "11.64.0-new-beta.2",
3
+ "version": "11.64.0-new-beta.4",
4
4
  "description": "Client for Contentful's Content Management API",
5
5
  "homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
6
6
  "exports": {
7
7
  ".": {
8
8
  "types": "./dist/types/index.d.ts",
9
9
  "require": "./dist/cjs/index.cjs",
10
+ "browser": "./dist/browser/index.min.js",
10
11
  "default": "./dist/esm/index.mjs"
11
12
  },
12
13
  "./types": {
13
14
  "types": "./dist/types/index.d.ts"
14
15
  }
15
16
  },
16
- "main": "./dist/esm/index.js",
17
- "types": "dist/types/index.d.ts",
17
+ "main": "./dist/cjs/index.cjs",
18
+ "module": "./dist/esm/index.mjs",
19
+ "types": "./dist/types/index.d.ts",
20
+ "browser": "./dist/browser/index.min.js",
18
21
  "engines": {
19
22
  "node": ">=20"
20
23
  },
@@ -52,7 +55,7 @@
52
55
  "test:browser": "npx playwright install && npx vitest --project browser-unit --run && npx vitest --project browser-integration --run",
53
56
  "test:version": "grep -r \"0.0.0-determined-by-semantic-release\" ./dist > /dev/null && echo \"version 0.0.0-determined-by-semantic-release found in output\" && exit 1 || exit 0",
54
57
  "test:size": "size-limit",
55
- "test:demo-projects": "npm run test:demo-node",
58
+ "test:demo-projects": "npm run test:demo-node && npm run test:demo-browser",
56
59
  "test:demo-node": "rimraf ./test/output-integration/node/node-modules && npm --prefix ./test/output-integration/node ci && vitest --run ./test/output-integration/node",
57
60
  "test:demo-browser": "rimraf ./test/output-integration/browser/node-modules && npm --prefix ./test/output-integration/browser ci && npm --prefix ./test/output-integration/browser run test",
58
61
  "test:prepush": "npm run build && npm run test:unit && npm run test:size",
@@ -77,10 +80,12 @@
77
80
  "devDependencies": {
78
81
  "@contentful/integration-test-utils": "^2.0.1",
79
82
  "@eslint/js": "^9.15.0",
83
+ "@rollup/plugin-alias": "^6.0.0",
80
84
  "@rollup/plugin-commonjs": "^29.0.0",
81
85
  "@rollup/plugin-json": "^6.1.0",
82
86
  "@rollup/plugin-node-resolve": "^16.0.3",
83
87
  "@rollup/plugin-replace": "^6.0.3",
88
+ "@rollup/plugin-terser": "^0.4.4",
84
89
  "@rollup/plugin-typescript": "^12.3.0",
85
90
  "@semantic-release/changelog": "^6.0.3",
86
91
  "@size-limit/file": "^11.1.6",
@@ -104,6 +109,7 @@
104
109
  "prettier": "^3.6.2",
105
110
  "rimraf": "^5.0.0",
106
111
  "rollup": "^4.53.3",
112
+ "rollup-plugin-polyfill-node": "^0.13.0",
107
113
  "rollup-plugin-sourcemaps2": "^0.5.4",
108
114
  "semantic-release": "^25.0.2",
109
115
  "size-limit": "^11.1.6",