@starbeam/interfaces
Advanced tools
Comparing version 0.8.10-unstable.9203102 to 0.8.10-unstable.2e56437
{ | ||
"root": false, | ||
"root": true, | ||
"ignorePatterns": ["node_modules", "dist", "html", "tests"], | ||
"plugins": ["@starbeam"], | ||
"overrides": [ | ||
@@ -10,4 +12,8 @@ { | ||
} | ||
}, | ||
{ | ||
"extends": ["plugin:@starbeam/json:recommended"], | ||
"files": ["*.json"] | ||
} | ||
] | ||
} |
{ | ||
"name": "@starbeam/interfaces", | ||
"version": "0.8.10-unstable.9203102", | ||
"version": "0.8.10-unstable.2e56437", | ||
"type": "module", | ||
"main": "index.ts", | ||
"types": "index.ts", | ||
"main": "dist/index.cjs", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
"default": "./index.ts" | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.cjs" | ||
} | ||
}, | ||
"publishConfig": { | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.cjs" | ||
} | ||
}, | ||
"main": "dist/index.cjs", | ||
"types": "dist/index.d.ts" | ||
}, | ||
"starbeam": { | ||
@@ -26,13 +19,14 @@ "source": "ts", | ||
}, | ||
"scripts": { | ||
"test:lint": "eslint \"index.ts\" \"src/**/*.ts\"", | ||
"test:types": "tsc -b" | ||
}, | ||
"dependencies": { | ||
"@domtree/any": "workspace:^", | ||
"@starbeam/shared": "1.3.8-unstable.9203102" | ||
"@starbeam/shared": "1.3.8-unstable.2e56437", | ||
"@domtree/any": "^0.9.3" | ||
}, | ||
"devDependencies": { | ||
"@starbeam-dev/build-support": "workspace:*" | ||
"@starbeam/eslint-plugin": "^1.0.0", | ||
"@starbeam-dev/build-support": "^1.0.0" | ||
}, | ||
"scripts": { | ||
"test:lint": "eslint . --max-warnings 0", | ||
"test:types": "tsc -b" | ||
} | ||
} | ||
} |
@@ -39,6 +39,3 @@ import type { CallStack } from "./debug/call-stack.js"; | ||
*/ | ||
readonly mark: ( | ||
cell: CellTag, | ||
mark: (revision: Timestamp) => void | ||
) => void; | ||
readonly mark: (cell: CellTag, mark: (revision: Timestamp) => void) => void; | ||
/** | ||
@@ -78,36 +75,2 @@ * Indicate that the value associated with the given tag has been consumed. | ||
readonly start: () => () => TagSnapshot; | ||
/** | ||
* Register a finalization handler for the given object. The finalization | ||
* handler will be called when the object is explicitly finalized, or when | ||
* a linked parent object is finalized. | ||
* | ||
* The return value of `onFinalize` is a function that can be called to | ||
* remove the finalization handler. | ||
* | ||
* A finalization handler will only ever be called at most once. If the | ||
* finalization handler is removed before the object is finalized, it will | ||
* not be called. | ||
*/ | ||
readonly onFinalize: (object: object, callback: Unsubscribe) => Unsubscribe; | ||
/** | ||
* Link two objects together. When the parent object is finalized, the child | ||
* object will also be finalized. | ||
* | ||
* The return value of `link` is a function that can be called to remove the | ||
* link. This is useful for objects that can move between parents, but should | ||
* still be automatically finalized when the final parent is finalized. | ||
*/ | ||
readonly link: (parent: object, child: object) => Unsubscribe; | ||
/** | ||
* Explicitly finalize the given object. This will call any finalization | ||
* handlers that have been registered for the object, and will also finalize | ||
* any linked children (recursively). | ||
* | ||
* Finalization handlers run synchronously, so you can rely on them to run | ||
* before replacing a finalized object with a new object. | ||
*/ | ||
readonly finalize: (object: object) => void; | ||
} | ||
@@ -114,0 +77,0 @@ |
@@ -30,3 +30,3 @@ import type { TAG } from "@starbeam/shared"; | ||
*/ | ||
export interface TaggedReactive<T = unknown, I extends Tag = Tag> | ||
export interface TaggedReactive<out T = unknown, I extends Tag = Tag> | ||
extends Tagged<I> { | ||
@@ -33,0 +33,0 @@ readonly read: () => T; |
@@ -11,7 +11,1 @@ export interface Timestamp { | ||
} | ||
export interface TimestampStatics { | ||
now: () => Timestamp; | ||
max: (...timestamps: Timestamp[]) => Timestamp; | ||
debug: (timestamp: Timestamp) => { at: number }; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
26527
16
0
0
2
577
+ Added@domtree/any@0.9.3(transitive)
+ Added@domtree/browser@0.9.3(transitive)
+ Added@domtree/interface@0.9.3(transitive)
+ Added@domtree/minimal@0.9.3(transitive)
+ Added@starbeam/shared@1.3.8-unstable.2e56437(transitive)
- Removed@starbeam/shared@1.3.8-unstable.9203102(transitive)
Updated@domtree/any@^0.9.3