@starbeam/shared
Advanced tools
Comparing version 1.3.7 to 1.3.8-unstable.9203102
@@ -8,3 +8,3 @@ { | ||
"parserOptions": { | ||
"project": "packages/universal/shared/tsconfig.json" | ||
"project": "tsconfig.json" | ||
} | ||
@@ -11,0 +11,0 @@ } |
@@ -1,3 +0,4 @@ | ||
export { COORDINATION, REACTIVE, UNINITIALIZED } from "./src/constants.js"; | ||
export { COORDINATION, TAG, UNINITIALIZED } from "./src/constants.js"; | ||
export { getID } from "./src/id.js"; | ||
export { bump, now } from "./src/now.js"; | ||
export { consume, start } from "./src/stack.js"; |
{ | ||
"name": "@starbeam/shared", | ||
"version": "1.3.7", | ||
"version": "1.3.8-unstable.9203102", | ||
"description": "A package that facilitates having multiple copies of Starbeam in a single process that interoperate with each other", | ||
"type": "module", | ||
"main": "dist/index.cjs", | ||
"types": "dist/index.d.ts", | ||
"main": "index.ts", | ||
"types": "index.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.cjs" | ||
} | ||
"default": "./index.ts" | ||
}, | ||
"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:type": "library:public", | ||
"devDependencies": { | ||
"@starbeam-dev/build-support": "1.0.0" | ||
}, | ||
"scripts": { | ||
"test:lint": "eslint", | ||
"test:lint": "eslint \"index.ts\" \"src/**/*.ts\"", | ||
"test:specs": "vitest --run", | ||
"test:types": "tsc -b" | ||
}, | ||
"devDependencies": { | ||
"@starbeam-dev/build-support": "workspace:*", | ||
"rollup": "^3.20.6" | ||
} | ||
} | ||
} |
@@ -12,7 +12,7 @@ /** | ||
/** | ||
* The `REACTIVE` symbol is the protocol entry point for reactive values. Implementations of | ||
* the `ReactiveProtocol` interface specify their reactive behavior under this symbol. | ||
* The `TAG` symbol is the protocol entry point for reactive values. Implementations of the `Tagged` | ||
* interface specify their reactive behavior under this symbol. | ||
*/ | ||
const REACTIVE: unique symbol = Symbol.for("starbeam.REACTIVE"); | ||
type REACTIVE = typeof REACTIVE; | ||
const TAG: unique symbol = Symbol.for("starbeam.TAG"); | ||
type TAG = typeof TAG; | ||
@@ -25,2 +25,2 @@ /** | ||
export { COORDINATION, REACTIVE, UNINITIALIZED }; | ||
export { COORDINATION, TAG, UNINITIALIZED }; |
@@ -14,2 +14,6 @@ import { COORDINATION } from "./constants.js"; | ||
}; | ||
stack: { | ||
start: () => () => unknown[]; | ||
consume: (tag: unknown) => void; | ||
}; | ||
} | ||
@@ -16,0 +20,0 @@ |
@@ -17,3 +17,3 @@ import { getCoordination } from "./env.js"; | ||
clock = coordination.now = { | ||
timestamp: 0, | ||
timestamp: 1, | ||
}; | ||
@@ -20,0 +20,0 @@ } |
@@ -8,3 +8,3 @@ { | ||
"parserOptions": { | ||
"project": "packages/universal/shared/tests/tsconfig.json" | ||
"project": "tsconfig.json" | ||
} | ||
@@ -11,0 +11,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { COORDINATION, REACTIVE, UNINITIALIZED } from "@starbeam/shared"; | ||
import { COORDINATION, TAG, UNINITIALIZED } from "@starbeam/shared"; | ||
import { describe, expect, test } from "vitest"; | ||
@@ -6,3 +6,3 @@ | ||
testSymbol(UNINITIALIZED, "UNINITIALIZED"); | ||
testSymbol(REACTIVE, "REACTIVE"); | ||
testSymbol(TAG, "TAG"); | ||
testSymbol(COORDINATION, "COORDINATION"); | ||
@@ -9,0 +9,0 @@ }); |
@@ -8,3 +8,3 @@ { | ||
"scripts": { | ||
"test:lint": "eslint", | ||
"test:lint": "eslint ", | ||
"test:types": "tsc -b" | ||
@@ -11,0 +11,0 @@ }, |
@@ -12,3 +12,3 @@ { | ||
"exclude": ["dist/**/*"], | ||
"include": ["index.ts", "src/**/*.ts"] | ||
"include": ["index.ts", "src/**/*.ts", "rollup.config.mjs"] | ||
} |
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
11073
2
18
1
241
2