-
Notifications
You must be signed in to change notification settings - Fork 0
Release/v3.0.x #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Release/v3.0.x #38
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a619c4e
chore(release): bump version to 3.0.1 and prime CHANGELOG
magmacomputing 03685f6
PR hotfix
magmacomputing 1ea0cb6
chore: require node >=22.0.0 in package.json files for json import su…
magmacomputing 92be1eb
PR review #1
magmacomputing c1dd695
test runs
magmacomputing ced799f
rollup #tempo/license
magmacomputing 7ffe220
PR 2nd review
magmacomputing 9bffb13
PR 4th review
magmacomputing 176cdfe
chore: update package-lock.json
magmacomputing c926f6a
align package.json
magmacomputing cbd2b66
chore: regenerate package-lock.json to resolve vite conflicts
magmacomputing c827aaf
add Typings to Standard Terms
magmacomputing 3c566e7
Term key naming convention
magmacomputing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ env: | |
| TZ: America/New_York | ||
| LANG: en_US.UTF-8 | ||
| LC_ALL: en_US.UTF-8 | ||
| TEMPO_LICENSE_KEY: "" | ||
|
|
||
| on: | ||
| push: | ||
|
|
||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| /** | ||
| * ## ScopedSet | ||
| * A lightweight `Set`-compatible container that delegates `has()` lookups to a | ||
| * parent Set/ScopedSet, but confines `add()` writes to its own-local storage. | ||
| * | ||
| * This mirrors JavaScript prototype-chain semantics: | ||
| * - A plugin registered globally is **visible** to all sandboxes via `has()`. | ||
| * - A plugin registered in a sandbox is **isolated** from the global scope; | ||
| * the global `rt.installed` is never written to by sandbox `extend()` calls. | ||
| * | ||
| * @example | ||
| * const global = new Set(['a']); | ||
| * const sandbox = new ScopedSet(global); | ||
| * sandbox.has('a'); // true (inherited from parent) | ||
| * sandbox.add('b'); | ||
| * sandbox.has('b'); // true (own-local) | ||
| * global.has('b'); // false (never written to parent) | ||
| */ | ||
| export class ScopedSet<T> { | ||
| readonly #own = new Set<T>(); | ||
| readonly #parent: Set<T> | ScopedSet<T> | undefined; | ||
|
|
||
| constructor(parent?: Set<T> | ScopedSet<T>) { | ||
| this.#parent = parent; | ||
| } | ||
|
|
||
| /** `true` if value is in own-local storage OR anywhere in the parent chain. */ | ||
| has(value: T): boolean { | ||
| return this.#own.has(value) || (this.#parent?.has(value) ?? false); | ||
| } | ||
|
|
||
| /** Adds to own-local storage only — never propagates to the parent. */ | ||
| add(value: T): this { | ||
| this.#own.add(value); | ||
| return this; | ||
| } | ||
|
|
||
| /** Removes from own-local storage only. */ | ||
| delete(value: T): boolean { | ||
| return this.#own.delete(value); | ||
| } | ||
|
|
||
| /** Clears own-local storage only. */ | ||
| clear(): void { | ||
| this.#own.clear(); | ||
| } | ||
|
|
||
| /** Number of own-local entries (does not include parent entries). */ | ||
| get size(): number { return this.#own.size; } | ||
|
|
||
| forEach(cb: (value: T, value2: T, set: Set<T>) => void): void { this.#own.forEach(cb as any); } | ||
| values(): IterableIterator<T> { return this.#own.values(); } | ||
| keys(): IterableIterator<T> { return this.#own.keys(); } | ||
| entries(): IterableIterator<[T, T]> { return this.#own.entries(); } | ||
|
|
||
| [Symbol.iterator](): IterableIterator<T> { return this.#own[Symbol.iterator](); } | ||
| get [Symbol.toStringTag](): string { return 'ScopedSet'; } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #!/usr/bin/env node | ||
| /** | ||
| * bin/update-version.mjs | ||
| * | ||
| * Reads the version from package.json and rewrites src/tempo.version.ts | ||
| * so that Tempo.version always reflects the current published version. | ||
| * | ||
| * Usage: node bin/update-version.mjs | ||
| * Called automatically by `npm run prebuild`. | ||
| */ | ||
| import pkg from '../package.json' with { type: 'json' }; | ||
| import { writeFileSync } from 'node:fs'; | ||
| import { resolve, dirname } from 'node:path'; | ||
| import { fileURLToPath } from 'node:url'; | ||
|
|
||
| const { version } = pkg; | ||
| const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
|
|
||
| const versionFile = resolve(__dirname, '../src/tempo.version.ts'); | ||
| const content = `/** | ||
| * @internal | ||
| * Canonical version of the Tempo library. | ||
| * | ||
| * ⚠️ This file is auto-updated by \`npm run build:version\` (see \`bin/update-version.mjs\`). | ||
| * Do NOT edit manually — your changes will be overwritten on the next build. | ||
| */ | ||
| export const TEMPO_VERSION = '${version}'; | ||
| `; | ||
|
|
||
| writeFileSync(versionFile, content, 'utf-8'); | ||
| console.log(`✅ Tempo version stamped: ${version}`); | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.