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

@glimmer/runtime

Package Overview
Dependencies
Maintainers
13
Versions
289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimmer/runtime - npm Package Compare versions

Comparing version 0.85.13 to 0.86.0

181

dist/dev/index.d.ts

@@ -1,5 +0,2 @@

/**
* @deprecated use RichIteratorResult<Tick, Return> or TemplateIterator instead
*/
import { RichIteratorResult, Bounds, Cursor, Nullable, SimpleElement, SimpleNode, InternalComponentCapabilities, InternalComponentManager, CapturedArguments, CurriedType, Owner, GlimmerTreeChanges, SimpleDocument, SimpleComment, SimpleText, AttrNamespace, ElementNamespace, GlimmerTreeConstruction, ComponentInstanceWithCreate, Environment, EnvironmentOptions, ModifierInstance, RuntimeArtifacts, RuntimeContext, RuntimeResolver, Transaction, TransactionSymbol, CapturedRenderNode, DebugRenderTree, RenderNode, Arguments, CompilableProgram, CompileTimeCompilationContext, ComponentDefinitionState, DynamicScope, ElementBuilder, RenderResult, TemplateIterator, Dict, PartialScope, Scope, ScopeBlock, ScopeSlot, CompilableTemplate, Destroyable, ResolutionTimeConstants, RuntimeConstants, RuntimeProgram, UpdatingOpcode, BlockArguments, BlockValue, CapturedBlockArguments, CapturedNamedArguments, CapturedPositionalArguments, NamedArguments, PositionalArguments, VMArguments, RuntimeHeap, RuntimeOp, ExceptionHandler, LiveBlock, UpdatableBlock, CursorStackSymbol, ElementOperations, Maybe, SimpleDocumentFragment, AttributeCursor, AttributeOperation } from '@glimmer/interfaces';
import { RichIteratorResult, Bounds, Cursor, Nullable, SimpleElement, SimpleNode, InternalComponentCapabilities, InternalComponentManager, CapturedArguments, CurriedType, Owner, GlimmerTreeChanges, SimpleDocument, SimpleComment, SimpleText, AttrNamespace, ElementNamespace, GlimmerTreeConstruction, ComponentInstanceWithCreate, Environment, EnvironmentOptions, ModifierInstance, RuntimeArtifacts, RuntimeContext, RuntimeResolver, Transaction, TransactionSymbol, CapturedRenderNode, DebugRenderTree, RenderNode, Arguments, CompilableProgram, CompileTimeCompilationContext, ComponentDefinitionState, DynamicScope, ElementBuilder, RenderResult, TemplateIterator, Dict, PartialScope, Scope, ScopeBlock, ScopeSlot, CompilableTemplate, Destroyable, ResolutionTimeConstants, RuntimeConstants, RuntimeProgram, UpdatingOpcode, RuntimeHeap, RuntimeOp, ExceptionHandler, LiveBlock, UpdatableBlock, CursorStackSymbol, ElementOperations, Maybe, SimpleDocumentFragment, AttributeCursor, AttributeOperation, BlockArguments, BlockValue, CapturedBlockArguments, CapturedNamedArguments, CapturedPositionalArguments, NamedArguments, PositionalArguments, VMArguments } from '@glimmer/interfaces';
import { VM as PublicVM } from "@glimmer/interfaces";

@@ -481,12 +478,2 @@ import { UpdatingVM as IUpdatingVM } from "@glimmer/interfaces";

}
// These symbols represent "friend" properties that are used inside of
// the VM in other classes, but are not intended to be a part of
// Glimmer's API.
declare const INNER_VM: unique symbol;
declare const DESTROYABLE_STACK: unique symbol;
declare const STACKS: unique symbol;
declare const REGISTERS: unique symbol;
declare const HEAP: unique symbol;
declare const CONSTANTS: unique symbol;
declare const ARGS$0: unique symbol;
interface LowLevelRegisters {

@@ -539,2 +526,12 @@ [MachineRegister.pc]: number;

}
// These symbols represent "friend" properties that are used inside of
// the VM in other classes, but are not intended to be a part of
// Glimmer's API.
declare const INNER_VM: unique symbol;
declare const DESTROYABLE_STACK: unique symbol;
declare const STACKS: unique symbol;
declare const REGISTERS: unique symbol;
declare const HEAP: unique symbol;
declare const CONSTANTS: unique symbol;
declare const ARGS$0: unique symbol;
interface EvaluationStack {

@@ -554,80 +551,2 @@ [REGISTERS]: LowLevelRegisters;

}
/*
The calling convention is:
* 0-N block arguments at the bottom
* 0-N positional arguments next (left-to-right)
* 0-N named arguments next
*/
declare class VMArgumentsImpl implements VMArguments {
private stack;
positional: PositionalArgumentsImpl;
named: NamedArgumentsImpl;
blocks: BlockArgumentsImpl;
empty(stack: EvaluationStack): this;
setup(stack: EvaluationStack, names: readonly string[], blockNames: readonly string[], positionalCount: number, atNames: boolean): void;
get base(): number;
get length(): number;
at(pos: number): Reference;
realloc(offset: number): void;
capture(): CapturedArguments;
clear(): void;
}
declare class PositionalArgumentsImpl implements PositionalArguments {
base: number;
length: number;
private stack;
private _references;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number): void;
at(position: number): Reference;
capture(): CapturedPositionalArguments;
prepend(other: Reference[]): void;
private get references();
}
declare class NamedArgumentsImpl implements NamedArguments {
base: number;
length: number;
private stack;
private _references;
private _names;
private _atNames;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number, names: readonly string[], atNames: boolean): void;
get names(): readonly string[];
get atNames(): readonly string[];
has(name: string): boolean;
get(name: string, atNames?: boolean): Reference;
capture(): CapturedNamedArguments;
merge(other: Record<string, Reference>): void;
private get references();
private toSyntheticName;
private toAtName;
}
declare class BlockArgumentsImpl implements BlockArguments {
private stack;
private internalValues;
private _symbolNames;
internalTag: Nullable<Tag>;
names: readonly string[];
length: number;
base: number;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number, names: readonly string[]): void;
get values(): readonly BlockValue[];
has(name: string): boolean;
get(name: string): Nullable<ScopeBlock>;
capture(): CapturedBlockArguments;
get symbolNames(): readonly string[];
}
declare function createCapturedArgs(named: Dict<Reference>, positional: Reference[]): CapturedArguments;
declare function reifyNamed(named: CapturedNamedArguments): Dict<unknown>;
declare function reifyPositional(positional: CapturedPositionalArguments): unknown[];
declare function reifyArgs(args: CapturedArguments): {
named: Dict<unknown>;
positional: unknown[];
};
declare const EMPTY_NAMED: CapturedNamedArguments;
declare const EMPTY_POSITIONAL: CapturedPositionalArguments;
declare const EMPTY_ARGS: CapturedArguments;
declare function dynamicAttribute(element: SimpleElement, attr: string, namespace: Nullable<AttrNamespace>, isTrusting?: boolean): DynamicAttribute;

@@ -816,2 +735,80 @@ declare abstract class DynamicAttribute implements AttributeOperation {

}
/*
The calling convention is:
* 0-N block arguments at the bottom
* 0-N positional arguments next (left-to-right)
* 0-N named arguments next
*/
declare class VMArgumentsImpl implements VMArguments {
private stack;
positional: PositionalArgumentsImpl;
named: NamedArgumentsImpl;
blocks: BlockArgumentsImpl;
empty(stack: EvaluationStack): this;
setup(stack: EvaluationStack, names: readonly string[], blockNames: readonly string[], positionalCount: number, atNames: boolean): void;
get base(): number;
get length(): number;
at(pos: number): Reference;
realloc(offset: number): void;
capture(): CapturedArguments;
clear(): void;
}
declare class PositionalArgumentsImpl implements PositionalArguments {
base: number;
length: number;
private stack;
private _references;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number): void;
at(position: number): Reference;
capture(): CapturedPositionalArguments;
prepend(other: Reference[]): void;
private get references();
}
declare class NamedArgumentsImpl implements NamedArguments {
base: number;
length: number;
private stack;
private _references;
private _names;
private _atNames;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number, names: readonly string[], atNames: boolean): void;
get names(): readonly string[];
get atNames(): readonly string[];
has(name: string): boolean;
get(name: string, atNames?: boolean): Reference;
capture(): CapturedNamedArguments;
merge(other: Record<string, Reference>): void;
private get references();
private toSyntheticName;
private toAtName;
}
declare class BlockArgumentsImpl implements BlockArguments {
private stack;
private internalValues;
private _symbolNames;
internalTag: Nullable<Tag>;
names: readonly string[];
length: number;
base: number;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number, names: readonly string[]): void;
get values(): readonly BlockValue[];
has(name: string): boolean;
get(name: string): Nullable<ScopeBlock>;
capture(): CapturedBlockArguments;
get symbolNames(): readonly string[];
}
declare function createCapturedArgs(named: Dict<Reference>, positional: Reference[]): CapturedArguments;
declare function reifyNamed(named: CapturedNamedArguments): Dict<unknown>;
declare function reifyPositional(positional: CapturedPositionalArguments): unknown[];
declare function reifyArgs(args: CapturedArguments): {
named: Dict<unknown>;
positional: unknown[];
};
declare const EMPTY_NAMED: CapturedNamedArguments;
declare const EMPTY_POSITIONAL: CapturedPositionalArguments;
declare const EMPTY_ARGS: CapturedArguments;
/**

@@ -818,0 +815,0 @@ * This interface is used by internal opcodes, and is more stable than

@@ -1,5 +0,2 @@

/**
* @deprecated use RichIteratorResult<Tick, Return> or TemplateIterator instead
*/
import { RichIteratorResult, Bounds, Cursor, Nullable, SimpleElement, SimpleNode, InternalComponentCapabilities, InternalComponentManager, CapturedArguments, CurriedType, Owner, GlimmerTreeChanges, SimpleDocument, SimpleComment, SimpleText, AttrNamespace, ElementNamespace, GlimmerTreeConstruction, ComponentInstanceWithCreate, Environment, EnvironmentOptions, ModifierInstance, RuntimeArtifacts, RuntimeContext, RuntimeResolver, Transaction, TransactionSymbol, CapturedRenderNode, DebugRenderTree, RenderNode, Arguments, CompilableProgram, CompileTimeCompilationContext, ComponentDefinitionState, DynamicScope, ElementBuilder, RenderResult, TemplateIterator, Dict, PartialScope, Scope, ScopeBlock, ScopeSlot, CompilableTemplate, Destroyable, ResolutionTimeConstants, RuntimeConstants, RuntimeProgram, UpdatingOpcode, BlockArguments, BlockValue, CapturedBlockArguments, CapturedNamedArguments, CapturedPositionalArguments, NamedArguments, PositionalArguments, VMArguments, RuntimeHeap, RuntimeOp, ExceptionHandler, LiveBlock, UpdatableBlock, CursorStackSymbol, ElementOperations, Maybe, SimpleDocumentFragment, AttributeCursor, AttributeOperation } from '@glimmer/interfaces';
import { RichIteratorResult, Bounds, Cursor, Nullable, SimpleElement, SimpleNode, InternalComponentCapabilities, InternalComponentManager, CapturedArguments, CurriedType, Owner, GlimmerTreeChanges, SimpleDocument, SimpleComment, SimpleText, AttrNamespace, ElementNamespace, GlimmerTreeConstruction, ComponentInstanceWithCreate, Environment, EnvironmentOptions, ModifierInstance, RuntimeArtifacts, RuntimeContext, RuntimeResolver, Transaction, TransactionSymbol, CapturedRenderNode, DebugRenderTree, RenderNode, Arguments, CompilableProgram, CompileTimeCompilationContext, ComponentDefinitionState, DynamicScope, ElementBuilder, RenderResult, TemplateIterator, Dict, PartialScope, Scope, ScopeBlock, ScopeSlot, CompilableTemplate, Destroyable, ResolutionTimeConstants, RuntimeConstants, RuntimeProgram, UpdatingOpcode, RuntimeHeap, RuntimeOp, ExceptionHandler, LiveBlock, UpdatableBlock, CursorStackSymbol, ElementOperations, Maybe, SimpleDocumentFragment, AttributeCursor, AttributeOperation, BlockArguments, BlockValue, CapturedBlockArguments, CapturedNamedArguments, CapturedPositionalArguments, NamedArguments, PositionalArguments, VMArguments } from '@glimmer/interfaces';
import { VM as PublicVM } from "@glimmer/interfaces";

@@ -481,12 +478,2 @@ import { UpdatingVM as IUpdatingVM } from "@glimmer/interfaces";

}
// These symbols represent "friend" properties that are used inside of
// the VM in other classes, but are not intended to be a part of
// Glimmer's API.
declare const INNER_VM: unique symbol;
declare const DESTROYABLE_STACK: unique symbol;
declare const STACKS: unique symbol;
declare const REGISTERS: unique symbol;
declare const HEAP: unique symbol;
declare const CONSTANTS: unique symbol;
declare const ARGS$0: unique symbol;
interface LowLevelRegisters {

@@ -539,2 +526,12 @@ [MachineRegister.pc]: number;

}
// These symbols represent "friend" properties that are used inside of
// the VM in other classes, but are not intended to be a part of
// Glimmer's API.
declare const INNER_VM: unique symbol;
declare const DESTROYABLE_STACK: unique symbol;
declare const STACKS: unique symbol;
declare const REGISTERS: unique symbol;
declare const HEAP: unique symbol;
declare const CONSTANTS: unique symbol;
declare const ARGS$0: unique symbol;
interface EvaluationStack {

@@ -554,80 +551,2 @@ [REGISTERS]: LowLevelRegisters;

}
/*
The calling convention is:
* 0-N block arguments at the bottom
* 0-N positional arguments next (left-to-right)
* 0-N named arguments next
*/
declare class VMArgumentsImpl implements VMArguments {
private stack;
positional: PositionalArgumentsImpl;
named: NamedArgumentsImpl;
blocks: BlockArgumentsImpl;
empty(stack: EvaluationStack): this;
setup(stack: EvaluationStack, names: readonly string[], blockNames: readonly string[], positionalCount: number, atNames: boolean): void;
get base(): number;
get length(): number;
at(pos: number): Reference;
realloc(offset: number): void;
capture(): CapturedArguments;
clear(): void;
}
declare class PositionalArgumentsImpl implements PositionalArguments {
base: number;
length: number;
private stack;
private _references;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number): void;
at(position: number): Reference;
capture(): CapturedPositionalArguments;
prepend(other: Reference[]): void;
private get references();
}
declare class NamedArgumentsImpl implements NamedArguments {
base: number;
length: number;
private stack;
private _references;
private _names;
private _atNames;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number, names: readonly string[], atNames: boolean): void;
get names(): readonly string[];
get atNames(): readonly string[];
has(name: string): boolean;
get(name: string, atNames?: boolean): Reference;
capture(): CapturedNamedArguments;
merge(other: Record<string, Reference>): void;
private get references();
private toSyntheticName;
private toAtName;
}
declare class BlockArgumentsImpl implements BlockArguments {
private stack;
private internalValues;
private _symbolNames;
internalTag: Nullable<Tag>;
names: readonly string[];
length: number;
base: number;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number, names: readonly string[]): void;
get values(): readonly BlockValue[];
has(name: string): boolean;
get(name: string): Nullable<ScopeBlock>;
capture(): CapturedBlockArguments;
get symbolNames(): readonly string[];
}
declare function createCapturedArgs(named: Dict<Reference>, positional: Reference[]): CapturedArguments;
declare function reifyNamed(named: CapturedNamedArguments): Dict<unknown>;
declare function reifyPositional(positional: CapturedPositionalArguments): unknown[];
declare function reifyArgs(args: CapturedArguments): {
named: Dict<unknown>;
positional: unknown[];
};
declare const EMPTY_NAMED: CapturedNamedArguments;
declare const EMPTY_POSITIONAL: CapturedPositionalArguments;
declare const EMPTY_ARGS: CapturedArguments;
declare function dynamicAttribute(element: SimpleElement, attr: string, namespace: Nullable<AttrNamespace>, isTrusting?: boolean): DynamicAttribute;

@@ -816,2 +735,80 @@ declare abstract class DynamicAttribute implements AttributeOperation {

}
/*
The calling convention is:
* 0-N block arguments at the bottom
* 0-N positional arguments next (left-to-right)
* 0-N named arguments next
*/
declare class VMArgumentsImpl implements VMArguments {
private stack;
positional: PositionalArgumentsImpl;
named: NamedArgumentsImpl;
blocks: BlockArgumentsImpl;
empty(stack: EvaluationStack): this;
setup(stack: EvaluationStack, names: readonly string[], blockNames: readonly string[], positionalCount: number, atNames: boolean): void;
get base(): number;
get length(): number;
at(pos: number): Reference;
realloc(offset: number): void;
capture(): CapturedArguments;
clear(): void;
}
declare class PositionalArgumentsImpl implements PositionalArguments {
base: number;
length: number;
private stack;
private _references;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number): void;
at(position: number): Reference;
capture(): CapturedPositionalArguments;
prepend(other: Reference[]): void;
private get references();
}
declare class NamedArgumentsImpl implements NamedArguments {
base: number;
length: number;
private stack;
private _references;
private _names;
private _atNames;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number, names: readonly string[], atNames: boolean): void;
get names(): readonly string[];
get atNames(): readonly string[];
has(name: string): boolean;
get(name: string, atNames?: boolean): Reference;
capture(): CapturedNamedArguments;
merge(other: Record<string, Reference>): void;
private get references();
private toSyntheticName;
private toAtName;
}
declare class BlockArgumentsImpl implements BlockArguments {
private stack;
private internalValues;
private _symbolNames;
internalTag: Nullable<Tag>;
names: readonly string[];
length: number;
base: number;
empty(stack: EvaluationStack, base: number): void;
setup(stack: EvaluationStack, base: number, length: number, names: readonly string[]): void;
get values(): readonly BlockValue[];
has(name: string): boolean;
get(name: string): Nullable<ScopeBlock>;
capture(): CapturedBlockArguments;
get symbolNames(): readonly string[];
}
declare function createCapturedArgs(named: Dict<Reference>, positional: Reference[]): CapturedArguments;
declare function reifyNamed(named: CapturedNamedArguments): Dict<unknown>;
declare function reifyPositional(positional: CapturedPositionalArguments): unknown[];
declare function reifyArgs(args: CapturedArguments): {
named: Dict<unknown>;
positional: unknown[];
};
declare const EMPTY_NAMED: CapturedNamedArguments;
declare const EMPTY_POSITIONAL: CapturedPositionalArguments;
declare const EMPTY_ARGS: CapturedArguments;
/**

@@ -818,0 +815,0 @@ * This interface is used by internal opcodes, and is more stable than

/**
* @deprecated use RichIteratorResult<Tick, Return> or TemplateIterator instead
*/
import type { RichIteratorResult } from '@glimmer/interfaces';
import './lib/bootstrap';
import type { RichIteratorResult } from '@glimmer/interfaces';
export { clear, ConcreteBounds, CursorImpl } from './lib/bounds';

@@ -8,0 +9,0 @@ export {

{
"name": "@glimmer/runtime",
"version": "0.86.0",
"license": "MIT",
"description": "Minimal runtime needed to render Glimmer templates",
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/main/packages/@glimmer/runtime",
"type": "module",
"version": "0.85.13",
"description": "Minimal runtime needed to render Glimmer templates",
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/runtime",
"license": "MIT",
"main": null,
"types": "dist/dev/index.d.ts",
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"dependencies": {
"@glimmer/env": "0.1.7",
"@glimmer/destroyable": "^0.85.13",
"@glimmer/global-context": "^0.85.13",
"@glimmer/interfaces": "^0.85.13",
"@glimmer/manager": "^0.85.13",
"@glimmer/owner": "^0.85.13",
"@glimmer/program": "^0.85.13",
"@glimmer/reference": "^0.85.13",
"@glimmer/util": "^0.85.13",
"@glimmer/validator": "^0.85.13",
"@glimmer/vm": "^0.85.13",
"@glimmer/wire-format": "^0.85.13"
"@glimmer/destroyable": "^0.86.0",
"@glimmer/global-context": "^0.86.0",
"@glimmer/interfaces": "^0.86.0",
"@glimmer/manager": "^0.86.0",
"@glimmer/owner": "^0.86.0",
"@glimmer/program": "^0.86.0",
"@glimmer/reference": "^0.86.0",
"@glimmer/util": "^0.86.0",
"@glimmer/validator": "^0.86.0",
"@glimmer/vm": "^0.86.0",
"@glimmer/wire-format": "^0.86.0"
},
"devDependencies": {
"@types/qunit": "^2.19.7",
"@types/qunit": "^2.19.9",
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^3.21.6",
"rollup": "^4.5.1",
"typescript": "*",
"@glimmer-workspace/build-support": "^1.0.0",
"@glimmer/debug": "^0.85.13",
"@glimmer/local-debug-flags": "^0.85.13",
"@glimmer/opcode-compiler": "^0.85.13"
"@glimmer/debug": "^0.86.0",
"@glimmer/local-debug-flags": "^0.86.0",
"@glimmer/opcode-compiler": "^0.86.0"
},
"types": "dist/dev/index.d.ts",
"scripts": {
"build": "rollup -c rollup.config.mjs",
"test:lint": "eslint .",
"test:types": "tsc --noEmit -p ../tsconfig.json",
"build": "rollup -c rollup.config.mjs",
"test:publint": "publint"
"test:publint": "publint",
"test:types": "tsc --noEmit -p ../tsconfig.json"
},

@@ -47,0 +47,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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