@isograph/disposable-types 0.4.3 → 0.5.1

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.
@@ -1,5 +1,12 @@
1
- ../.. |  WARN  Unsupported engine: wanted: {"node":"22.9.0"} (current: {"node":"v22.20.0","pnpm":"10.15.0"})
1
+ ../.. |  WARN  Unsupported engine: wanted: {"node":"22.9.0"} (current: {"node":"v22.21.1","pnpm":"10.15.0"})
2
2
 
3
- > @isograph/disposable-types@0.4.3 compile-libs /home/runner/work/isograph/isograph/libs/isograph-disposable-types
4
- > rimraf dist && tsc -p tsconfig.pkg.json
3
+ > @isograph/disposable-types@0.5.1 compile-libs /home/runner/work/isograph/isograph/libs/isograph-disposable-types
4
+ > tsdown
5
5
 
6
+ ℹ tsdown v0.15.10 powered by rolldown v1.0.0-beta.44
7
+ ℹ Using tsdown config: /home/runner/work/isograph/isograph/tsdown.config.ts
8
+ (node:2919) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/isograph/isograph/tsdown.config.ts is not specified and it doesn't parse as CommonJS.
9
+ Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
10
+ To eliminate this warning, add "type": "module" to /home/runner/work/isograph/isograph/package.json.
11
+ (Use `node --trace-warnings ...` to show where the warning was created)
12
+ ℹ Build start
@@ -0,0 +1,7 @@
1
+ //#region src/index.d.ts
2
+ type CleanupFn = () => void;
3
+ type ItemCleanupPair<T> = [T, CleanupFn];
4
+ type Factory<T> = () => ItemCleanupPair<T>;
5
+ //#endregion
6
+ export { CleanupFn, Factory, ItemCleanupPair };
7
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";KAAY,SAAA;AAAA,KACA,eADS,CAAA,CAAA,CAAA,GAAA,CACa,CADb,EACgB,SADhB,CAAA;AACT,KACA,OADA,CAAA,CAAA,CAAe,GAAA,GAAA,GACI,eADM,CACU,CADD,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- export type CleanupFn = () => void;
2
- export type ItemCleanupPair<T> = [T, CleanupFn];
3
- export type Factory<T> = () => ItemCleanupPair<T>;
1
+ //#region src/index.d.ts
2
+ type CleanupFn = () => void;
3
+ type ItemCleanupPair<T> = [T, CleanupFn];
4
+ type Factory<T> = () => ItemCleanupPair<T>;
5
+ //#endregion
6
+ export { CleanupFn, Factory, ItemCleanupPair };
4
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC;AACnC,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAChD,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,MAAM,eAAe,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";KAAY,SAAA;AAAA,KACA,eADS,CAAA,CAAA,CAAA,GAAA,CACa,CADb,EACgB,SADhB,CAAA;AACT,KACA,OADA,CAAA,CAAA,CAAe,GAAA,GAAA,GACI,eADM,CACU,CADD,CAAA"}
package/dist/index.js CHANGED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export { };
package/package.json CHANGED
@@ -1,22 +1,12 @@
1
1
  {
2
2
  "name": "@isograph/disposable-types",
3
- "version": "0.4.3",
3
+ "version": "0.5.1",
4
4
  "description": "Common types for disposable items",
5
5
  "homepage": "https://isograph.dev",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
8
  "author": "Isograph Labs",
9
9
  "license": "MIT",
10
- "scripts": {
11
- "compile-libs": "rimraf dist && tsc -p tsconfig.pkg.json",
12
- "compile-watch": "tsc -p tsconfig.pkg.json --watch",
13
- "test": "echo this package has no tests",
14
- "test-watch": "echo this package has no tests",
15
- "coverage": "echo this package has no coverage",
16
- "prepack": "pnpm run compile-libs",
17
- "tsc": "tsc",
18
- "tsc-force": "tsc --build --clean && tsc --build --force"
19
- },
20
10
  "dependencies": {},
21
11
  "devDependencies": {
22
12
  "typescript": "5.6.3"
@@ -26,5 +16,22 @@
26
16
  "url": "git+https://github.com/isographlabs/isograph.git",
27
17
  "directory": "libs/isograph-disposable-types"
28
18
  },
29
- "sideEffects": false
30
- }
19
+ "sideEffects": false,
20
+ "module": "./dist/index.mjs",
21
+ "exports": {
22
+ ".": {
23
+ "import": "./dist/index.mjs",
24
+ "require": "./dist/index.js"
25
+ },
26
+ "./package.json": "./package.json"
27
+ },
28
+ "scripts": {
29
+ "compile-libs": "tsdown",
30
+ "watch-libs": "tsdown --watch",
31
+ "test": "echo this package has no tests",
32
+ "test-watch": "echo this package has no tests",
33
+ "coverage": "echo this package has no coverage",
34
+ "tsc": "tsc",
35
+ "tsc-force": "tsc --build --clean && tsc --build --force"
36
+ }
37
+ }