@isograph/reference-counted-pointer 0.1.1 → 0.2.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.
@@ -6,7 +6,7 @@ import type { ItemCleanupPair } from '@isograph/disposable-types';
6
6
  * disposed, the underlying item will be disposed.
7
7
  *
8
8
  * Additional reference-counted pointers guarding the same item can be
9
- * created by calling retainIfNotDisposed().
9
+ * created by calling cloneIfNotDisposed().
10
10
  *
11
11
  * ## Structural sharing
12
12
  *
@@ -9,7 +9,7 @@ exports.createReferenceCountedPointer = void 0;
9
9
  * disposed, the underlying item will be disposed.
10
10
  *
11
11
  * Additional reference-counted pointers guarding the same item can be
12
- * created by calling retainIfNotDisposed().
12
+ * created by calling cloneIfNotDisposed().
13
13
  *
14
14
  * ## Structural sharing
15
15
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isograph/reference-counted-pointer",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Reference counted pointers enable sharing of disposable items.",
5
5
  "homepage": "https://isograph.dev",
6
6
  "main": "dist/index.js",
@@ -12,15 +12,13 @@
12
12
  "compile-watch": "tsc -p tsconfig.pkg.json --watch",
13
13
  "test": "vitest run",
14
14
  "test-watch": "vitest watch",
15
- "coverage": "vitest run --coverage"
15
+ "coverage": "vitest run --coverage",
16
+ "tsc": "tsc"
16
17
  },
17
18
  "dependencies": {
18
- "@isograph/disposable-types": "0.1.1",
19
- "react": "^18.2.0"
19
+ "@isograph/disposable-types": "0.2.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@types/react": "^18.0.31",
23
- "react-test-renderer": "^18.2.0",
24
22
  "typescript": "^5.0.3",
25
23
  "vitest": "^0.29.8"
26
24
  },
@@ -28,5 +26,6 @@
28
26
  "type": "git",
29
27
  "url": "git+https://github.com/isographlabs/isograph.git",
30
28
  "directory": "libs/isograph-reference-counted-pointer"
31
- }
29
+ },
30
+ "sideEffects": false
32
31
  }
@@ -9,7 +9,7 @@ import type { CleanupFn, ItemCleanupPair } from '@isograph/disposable-types';
9
9
  * disposed, the underlying item will be disposed.
10
10
  *
11
11
  * Additional reference-counted pointers guarding the same item can be
12
- * created by calling retainIfNotDisposed().
12
+ * created by calling cloneIfNotDisposed().
13
13
  *
14
14
  * ## Structural sharing
15
15
  *
package/tsconfig.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "./tsconfig.pkg.json",
3
+ "compilerOptions": {
4
+ "noEmit": true,
5
+ },
6
+ }