@dotcms/client 26.9.18-1 → 26.9.18-1-next.2741

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.
package/CLAUDE.md CHANGED
@@ -220,8 +220,8 @@ This client SDK serves as the foundation for:
220
220
 
221
221
  ### Dependencies
222
222
  - **Runtime**: `consola` for logging
223
- - **Development**: `@dotcms/types` for TypeScript definitions
224
- - **Peer Dependencies**: Framework-specific SDKs extend this client
223
+ - **Peer**: `@dotcms/types` — despite the name it is not type-only. The built `.js` imports runtime enums and the error classes (`UVE_MODE`, `DotHttpError`, `DotErrorPage`) from it, so a consumer who does not install it fails on first import. Declared with the `"0.0.0"` sentinel, like every cross-SDK dependency: the value is a slot marker, and the SDK release workflow overwrites it with the exact release version at publish. The `declared-deps` spec in `sdk-bundle-budgets` fails the build if a shipped `@dotcms/*` import is left undeclared.
224
+ - **Consumers**: framework-specific SDKs extend this client
225
225
 
226
226
  ## Common Development Tasks
227
227
 
package/index.cjs.js CHANGED
@@ -4,7 +4,7 @@ var consola = require('consola');
4
4
  var types = require('@dotcms/types');
5
5
  var internal = require('./internal.cjs.js');
6
6
 
7
- const SDK_VERSION = "26.9.18-1";
7
+ const SDK_VERSION = "26.9.18-1-next.2741";
8
8
 
9
9
  const DOTCMS_VERSION_HEADER = 'x-dotcms-version';
10
10
  const DOTCMS_MIN_SDK_HEADER = 'x-dotcms-min-sdk';
package/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import { consola } from 'consola';
2
2
  import { BaseHttpClient, DISTANCE_FUNCTIONS, DotHttpError, DotErrorAISearch, DotErrorContent, DotErrorNavigation, UVE_MODE, DotErrorPage } from '@dotcms/types';
3
3
  import { graphqlToPageEntity } from './internal.esm.js';
4
4
 
5
- const SDK_VERSION = "26.9.18-1";
5
+ const SDK_VERSION = "26.9.18-1-next.2741";
6
6
 
7
7
  const DOTCMS_VERSION_HEADER = 'x-dotcms-version';
8
8
  const DOTCMS_MIN_SDK_HEADER = 'x-dotcms-min-sdk';
package/package.json CHANGED
@@ -1,16 +1,19 @@
1
1
  {
2
2
  "name": "@dotcms/client",
3
- "version": "26.9.18-1",
3
+ "version": "26.9.18-1-next.2741",
4
4
  "description": "Official JavaScript library for interacting with DotCMS REST APIs.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/dotCMS/core.git#main"
8
8
  },
9
+ "peerDependencies": {
10
+ "@dotcms/types": "26.9.18-1-next.2741"
11
+ },
9
12
  "dependencies": {
10
13
  "consola": "^3.4.2"
11
14
  },
12
15
  "devDependencies": {
13
- "@dotcms/types": "26.9.18-1"
16
+ "@dotcms/types": "26.9.18-1-next.2741"
14
17
  },
15
18
  "keywords": [
16
19
  "dotCMS",
@@ -22,14 +25,14 @@
22
25
  "exports": {
23
26
  "./package.json": "./package.json",
24
27
  ".": {
25
- "module": "./index.esm.js",
26
28
  "types": "./index.d.ts",
29
+ "module": "./index.esm.js",
27
30
  "import": "./index.cjs.mjs",
28
31
  "default": "./index.cjs.js"
29
32
  },
30
33
  "./internal": {
31
- "module": "./internal.esm.js",
32
34
  "types": "./internal.d.ts",
35
+ "module": "./internal.esm.js",
33
36
  "import": "./internal.cjs.mjs",
34
37
  "default": "./internal.cjs.js"
35
38
  }
@@ -50,7 +53,8 @@
50
53
  "url": "https://github.com/dotCMS/core/issues"
51
54
  },
52
55
  "homepage": "https://github.com/dotCMS/core/tree/main/core-web/libs/sdk/client/README.md",
56
+ "sideEffects": false,
53
57
  "module": "./index.esm.js",
54
58
  "main": "./index.cjs.js",
55
59
  "types": "./index.d.ts"
56
- }
60
+ }