@aurabx/jmix-js 0.2.0 → 0.2.2

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 +6 -0
  2. package/package.json +4 -2
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.2] - 2026-09-17
9
+
10
+ ### Fixed
11
+ - Add a `default` condition to the package `exports` map so CommonJS consumers can `require('@aurabx/jmix-js')`. Only an `import` condition was declared before, so any `require()` of the package (including a TypeScript `import()` compiled under `module: commonjs`) failed with `ERR_PACKAGE_PATH_NOT_EXPORTED`. CommonJS loading relies on Node's `require(esm)` support, so CJS consumers need Node 20.19+ or 22.12+. ESM consumers are unaffected.
12
+ - Add a `prepublishOnly` build step so a publish cannot ship a stale `dist/`.
13
+
8
14
  ## [0.2.0] - 2025-10-24
9
15
 
10
16
  ### Added
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "@aurabx/jmix-js",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript implementation of JMIX (JSON Medical Interchange) format for secure medical data exchange",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
+ "types": "./dist/index.d.ts",
10
11
  "import": "./dist/index.js",
11
- "types": "./dist/index.d.ts"
12
+ "default": "./dist/index.js"
12
13
  }
13
14
  },
14
15
  "scripts": {
16
+ "prepublishOnly": "npm run build",
15
17
  "build": "tsc",
16
18
  "typecheck": "tsc --noEmit",
17
19
  "test": "jest",