Socket
Socket
Sign inDemoInstall

@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.398c1bd to 0.8.10-unstable.d5a7b81

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"]
}
]
}

11

package.json
{
"name": "@starbeam/interfaces",
"version": "0.8.10-unstable.398c1bd",
"version": "0.8.10-unstable.d5a7b81",
"type": "module",

@@ -27,12 +27,13 @@ "main": "index.ts",

"scripts": {
"test:lint": "eslint \"index.ts\" \"src/**/*.ts\"",
"test:lint": "eslint . --max-warnings 0",
"test:types": "tsc -b"
},
"dependencies": {
"@domtree/any": "workspace:^",
"@starbeam/shared": "1.3.8-unstable.398c1bd"
"@domtree/any": "0.9.4-unstable.d5a7b81",
"@starbeam/shared": "1.3.8-unstable.d5a7b81"
},
"devDependencies": {
"@starbeam-dev/build-support": "workspace:*"
"@starbeam/eslint-plugin": "workspace:^",
"@starbeam-dev/build-support": "workspace:^"
}
}

@@ -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;

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc