@couch-kit/display 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @couch-kit/display
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#136](https://github.com/faluciano/react-native-couch-kit/pull/136) [`973805a`](https://github.com/faluciano/react-native-couch-kit/commit/973805af754a8e22c1c6c81de4c858ffa353556c) Thanks [@faluciano](https://github.com/faluciano)! - **Bundle & tree-shaking**
8
+
9
+ - Fix `RelayDisplayHost` resolving as "not exported" for consumers on
10
+ `moduleResolution: NodeNext`/`Node16`. The package is `type: module`, so the
11
+ emitted `.d.ts` is read in strict-ESM mode where an extensionless relative
12
+ re-export (`export * from "./relay-display-host"`) is not resolved. Add the
13
+ `.js` extension to the barrel specifier, matching the other ESM packages.
14
+
3
15
  ## 0.1.1
4
16
 
5
17
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./relay-display-host";
1
+ export * from "./relay-display-host.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,cAAc,yBAAyB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@couch-kit/display",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/index.ts CHANGED
@@ -1,4 +1,6 @@
1
- // A single `export *` barrel: a named re-export (`export { X } from`) combined
2
- // with `sideEffects: false` lets bun's bundler tree-shake the sole class out of
3
- // the built entry, publishing an empty `dist/index.js`. `export *` keeps it.
4
- export * from "./relay-display-host";
1
+ // Use an `export *` barrel (a named `export { X } from` lets bun tree-shake the
2
+ // sole class out under `sideEffects: false`, publishing an empty bundle) AND a
3
+ // `.js` extension on the specifier: the package is `type: module`, so consumers
4
+ // on `moduleResolution: NodeNext` resolve the emitted `.d.ts` in strict-ESM mode
5
+ // and an extensionless re-export fails to find `relay-display-host.d.ts`.
6
+ export * from "./relay-display-host.js";