@niscorp/charter 0.1.1 → 0.1.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 +15 -0
  2. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @niscorp/charter
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fe30458: Every package exports its `package.json`, so an app can say which version of a package it runs by reading it from the package:
8
+
9
+ ```ts
10
+ import prism from '@niscorp/prism/package.json' with { type: 'json' };
11
+ prism.version; // the version that is installed, not the range that asked for it
12
+ ```
13
+
14
+ Until now the `exports` map hid it, and the only way to the version was a path into `node_modules`. `check:packages` installs the tarballs and reads every package's version this way.
15
+
16
+ **What to change:** nothing. An app that read a version by path can read it by name.
17
+
3
18
  ## 0.1.1
4
19
 
5
20
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niscorp/charter",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "A universe-blind policy engine — roles resolve glob selections over opaque string universes; the verifier refuses incoherence. Zero dependencies.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,7 +20,8 @@
20
20
  "types": "./dist/index.d.cts",
21
21
  "default": "./dist/index.cjs"
22
22
  }
23
- }
23
+ },
24
+ "./package.json": "./package.json"
24
25
  },
25
26
  "files": [
26
27
  "dist",