oneentry 1.0.159 → 1.0.160

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.
Files changed (2) hide show
  1. package/changelog.md +13 -1
  2. package/package.json +43 -2
package/changelog.md CHANGED
@@ -1,6 +1,18 @@
1
1
  # SDK Change Log
2
2
 
3
- ## v.1.0.159
3
+ ## v.1.0.160
4
+
5
+ > Re-release of v.1.0.159. The 1.0.159 tarball was published from a stale build directory: the files changed by that release were updated, but the files it added (`dist/base/lazySchema.js`, `dist/web-socket/lazySocket.js`, `dist/types.js`, the root `types.js` / `types.d.ts` stubs and the whole `esm/` build) never made it into the package, so `require('oneentry')` threw `Cannot find module '../base/lazySchema'`. Use 1.0.160 instead — same feature set, complete build.
6
+
7
+ ### Packaging
8
+
9
+ Beyond the missing files, the packaging of 1.0.159 is now correct for every way the SDK can be consumed:
10
+
11
+ - **The ESM build is loadable by Node**, not only by bundlers. It used to be emitted with extensionless relative imports (`import './adminsSchemas'`) and no module marker, so the Node ESM loader could neither resolve those paths nor treat the files as ESM. The build now emits full specifiers and an `esm/package.json` with `{"type": "module"}`.
12
+ - **The ESM build ships its own type declarations**, so `import` resolves ESM types and `require` resolves CommonJS ones instead of both sharing the CommonJS set.
13
+ - **An `exports` map** now routes `oneentry` and `oneentry/types` to the right build per condition. Deep imports (`oneentry/dist/<module>/<module>Interfaces`) are covered by explicit patterns and keep working, in both the bare and the `.js` spelling, as do `main` / `module` / `types` for resolvers that ignore `exports`. Verified against `moduleResolution` `node`, `node16` (CommonJS and ESM) and `bundler`.
14
+ - **The published `dependencies` are taken from the repository's `package.json`**, so the declared ranges can no longer drift from the ones the SDK is built and tested against.
15
+ - **`npm run build` wipes `output/` first**, and the new `npm run smoke` packs the result and exercises the tarball as a consumer would — every deep path through `require` and `import`, both entry points, and a type check under the four resolution modes. It runs as part of `productionBuild`.
4
16
 
5
17
  ### What's New
6
18
 
package/package.json CHANGED
@@ -1,10 +1,51 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.159",
3
+ "version": "1.0.160",
4
4
  "description": "OneEntry NPM package",
5
5
  "main": "dist/index.js",
6
6
  "module": "esm/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./esm/index.d.ts",
12
+ "default": "./esm/index.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ },
18
+ "default": "./dist/index.js"
19
+ },
20
+ "./types": {
21
+ "import": {
22
+ "types": "./esm/types.d.ts",
23
+ "default": "./esm/types.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/types.d.ts",
27
+ "default": "./dist/types.js"
28
+ },
29
+ "default": "./dist/types.js"
30
+ },
31
+ "./dist/*": {
32
+ "types": "./dist/*.d.ts",
33
+ "default": "./dist/*.js"
34
+ },
35
+ "./dist/*.js": {
36
+ "types": "./dist/*.d.ts",
37
+ "default": "./dist/*.js"
38
+ },
39
+ "./esm/*": {
40
+ "types": "./esm/*.d.ts",
41
+ "default": "./esm/*.js"
42
+ },
43
+ "./esm/*.js": {
44
+ "types": "./esm/*.d.ts",
45
+ "default": "./esm/*.js"
46
+ },
47
+ "./package.json": "./package.json"
48
+ },
8
49
  "sideEffects": false,
9
50
  "files": [
10
51
  "/dist",
@@ -23,6 +64,6 @@
23
64
  },
24
65
  "dependencies": {
25
66
  "socket.io-client": "^4.8.3",
26
- "zod": "^4.3.6"
67
+ "zod": "^4.4.3"
27
68
  }
28
69
  }