@chipi-stack/core 0.5.0 → 0.6.0

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/README.md CHANGED
@@ -8,6 +8,20 @@ Core primitives for Chipi Pay SDK: transaction building, token math, signer adap
8
8
  npm install @chipi-stack/core
9
9
  ```
10
10
 
11
+ ### Module formats
12
+
13
+ Ships both ESM and CommonJS, so `import` and `require()` both resolve:
14
+
15
+ ```javascript
16
+ import { TxBuilder } from "@chipi-stack/core"; // ESM
17
+ const { TxBuilder } = require("@chipi-stack/core"); // CommonJS
18
+ ```
19
+
20
+ Versions before 0.6.0 were ESM-only and failed under any CommonJS resolver
21
+ (plain Node, `tsx`, `ts-node`, Jest) with `ERR_PACKAGE_PATH_NOT_EXPORTED`.
22
+ Bundlers were never affected. Import the package root; paths inside `dist/`
23
+ are not part of the public API.
24
+
11
25
  ## Modules
12
26
 
13
27
  ### TxBuilder