Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@starbeam/interfaces

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@starbeam/interfaces - npm Package Compare versions

Comparing version 0.8.10-unstable.9203102 to 0.8.10-unstable.2e56437

LICENSE.md

8

.eslintrc.json
{
"root": false,
"root": true,
"ignorePatterns": ["node_modules", "dist", "html", "tests"],
"plugins": ["@starbeam"],
"overrides": [

@@ -10,4 +12,8 @@ {

}
},
{
"extends": ["plugin:@starbeam/json:recommended"],
"files": ["*.json"]
}
]
}

40

package.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 };
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc