@glimmer/wire-format
Advanced tools
Comparing version 0.93.1 to 0.94.0
@@ -1,83 +0,12 @@ | ||
import { Expression, Expressions, Statement, Statements, ResolveAsComponentHeadResolution, ResolveAsComponentOrHelperHeadResolution, ResolveAsHelperHeadResolution, ResolveAsModifierHeadResolution, StrictResolution } from '@glimmer/interfaces'; | ||
declare const opcodes: { | ||
readonly Append: 1; | ||
readonly TrustingAppend: 2; | ||
readonly Comment: 3; | ||
readonly Modifier: 4; | ||
readonly StrictModifier: 5; | ||
readonly Block: 6; | ||
readonly StrictBlock: 7; | ||
readonly Component: 8; | ||
readonly OpenElement: 10; | ||
readonly OpenElementWithSplat: 11; | ||
readonly FlushElement: 12; | ||
readonly CloseElement: 13; | ||
readonly StaticAttr: 14; | ||
readonly DynamicAttr: 15; | ||
readonly ComponentAttr: 16; | ||
readonly AttrSplat: 17; | ||
readonly Yield: 18; | ||
readonly DynamicArg: 20; | ||
readonly StaticArg: 21; | ||
readonly TrustingDynamicAttr: 22; | ||
readonly TrustingComponentAttr: 23; | ||
readonly StaticComponentAttr: 24; | ||
readonly Debugger: 26; | ||
readonly Undefined: 27; | ||
readonly Call: 28; | ||
readonly Concat: 29; | ||
readonly GetSymbol: 30; | ||
readonly GetLexicalSymbol: 32; | ||
readonly GetStrictKeyword: 31; | ||
readonly GetFreeAsComponentOrHelperHead: 35; | ||
readonly GetFreeAsHelperHead: 37; | ||
readonly GetFreeAsModifierHead: 38; | ||
readonly GetFreeAsComponentHead: 39; | ||
readonly InElement: 40; | ||
readonly If: 41; | ||
readonly Each: 42; | ||
readonly Let: 44; | ||
readonly WithDynamicVars: 45; | ||
readonly InvokeComponent: 46; | ||
readonly HasBlock: 48; | ||
readonly HasBlockParams: 49; | ||
readonly Curry: 50; | ||
readonly Not: 51; | ||
readonly IfInline: 52; | ||
readonly GetDynamicVar: 53; | ||
readonly Log: 54; | ||
}; | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
type resolution = ResolveAsComponentOrHelperHeadResolution | ResolveAsHelperHeadResolution | ResolveAsComponentHeadResolution | ResolveAsModifierHeadResolution | StrictResolution; | ||
declare const resolution: { | ||
readonly Strict: 0; | ||
readonly ResolveAsComponentOrHelperHead: 1; | ||
readonly ResolveAsHelperHead: 5; | ||
readonly ResolveAsModifierHead: 6; | ||
readonly ResolveAsComponentHead: 7; | ||
}; | ||
declare const WellKnownAttrNames: { | ||
readonly class: 0; | ||
readonly id: 1; | ||
readonly value: 2; | ||
readonly name: 3; | ||
readonly type: 4; | ||
readonly style: 5; | ||
readonly href: 6; | ||
}; | ||
declare const WellKnownTagNames: { | ||
readonly div: 0; | ||
readonly span: 1; | ||
readonly p: 2; | ||
readonly a: 3; | ||
}; | ||
declare function is<T>(variant: number): (value: any) => value is T; | ||
declare const isFlushElement: (value: any) => value is Statements.FlushElement; | ||
declare function isAttribute(val: Statement): val is Statements.Attribute; | ||
declare function isStringLiteral(expr: Expression): expr is Expressions.StringValue; | ||
declare function getStringFromValue(expr: Expressions.StringValue): string; | ||
declare function isArgument(val: Statement): val is Statements.Argument; | ||
declare function isHelper(expr: Expression): expr is Expressions.Helper; | ||
declare const isGet: (value: any) => value is Expressions.GetSymbol; | ||
export { opcodes as SexpOpcodes, resolution as VariableResolutionContext, WellKnownAttrNames, WellKnownTagNames, is, isFlushElement, isAttribute, isStringLiteral, getStringFromValue, isArgument, isHelper, isGet }; | ||
//# sourceMappingURL=index.d.ts.map | ||
import type { Expression, Expressions, Statement, Statements } from '@glimmer/interfaces'; | ||
export { opcodes as SexpOpcodes } from './lib/opcodes'; | ||
export { resolution as VariableResolutionContext } from './lib/resolution'; | ||
export { WellKnownAttrNames, WellKnownTagNames } from './lib/well-known'; | ||
export declare function is<T>(variant: number): (value: unknown) => value is T; | ||
export declare const isFlushElement: (value: unknown) => value is Statements.FlushElement; | ||
export declare function isAttribute(val: Statement): val is Statements.Attribute; | ||
export declare function isStringLiteral(expr: Expression): expr is Expressions.StringValue; | ||
export declare function getStringFromValue(expr: Expressions.StringValue): string; | ||
export declare function isArgument(val: Statement): val is Statements.Argument; | ||
export declare function isHelper(expr: Expression): expr is Expressions.Helper; | ||
export declare const isGet: (value: unknown) => value is Expressions.GetSymbol; |
@@ -69,4 +69,2 @@ const opcodes = { | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
function is(variant) { | ||
@@ -73,0 +71,0 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any |
@@ -1,83 +0,12 @@ | ||
import { Expression, Expressions, Statement, Statements, ResolveAsComponentHeadResolution, ResolveAsComponentOrHelperHeadResolution, ResolveAsHelperHeadResolution, ResolveAsModifierHeadResolution, StrictResolution } from '@glimmer/interfaces'; | ||
declare const opcodes: { | ||
readonly Append: 1; | ||
readonly TrustingAppend: 2; | ||
readonly Comment: 3; | ||
readonly Modifier: 4; | ||
readonly StrictModifier: 5; | ||
readonly Block: 6; | ||
readonly StrictBlock: 7; | ||
readonly Component: 8; | ||
readonly OpenElement: 10; | ||
readonly OpenElementWithSplat: 11; | ||
readonly FlushElement: 12; | ||
readonly CloseElement: 13; | ||
readonly StaticAttr: 14; | ||
readonly DynamicAttr: 15; | ||
readonly ComponentAttr: 16; | ||
readonly AttrSplat: 17; | ||
readonly Yield: 18; | ||
readonly DynamicArg: 20; | ||
readonly StaticArg: 21; | ||
readonly TrustingDynamicAttr: 22; | ||
readonly TrustingComponentAttr: 23; | ||
readonly StaticComponentAttr: 24; | ||
readonly Debugger: 26; | ||
readonly Undefined: 27; | ||
readonly Call: 28; | ||
readonly Concat: 29; | ||
readonly GetSymbol: 30; | ||
readonly GetLexicalSymbol: 32; | ||
readonly GetStrictKeyword: 31; | ||
readonly GetFreeAsComponentOrHelperHead: 35; | ||
readonly GetFreeAsHelperHead: 37; | ||
readonly GetFreeAsModifierHead: 38; | ||
readonly GetFreeAsComponentHead: 39; | ||
readonly InElement: 40; | ||
readonly If: 41; | ||
readonly Each: 42; | ||
readonly Let: 44; | ||
readonly WithDynamicVars: 45; | ||
readonly InvokeComponent: 46; | ||
readonly HasBlock: 48; | ||
readonly HasBlockParams: 49; | ||
readonly Curry: 50; | ||
readonly Not: 51; | ||
readonly IfInline: 52; | ||
readonly GetDynamicVar: 53; | ||
readonly Log: 54; | ||
}; | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
type resolution = ResolveAsComponentOrHelperHeadResolution | ResolveAsHelperHeadResolution | ResolveAsComponentHeadResolution | ResolveAsModifierHeadResolution | StrictResolution; | ||
declare const resolution: { | ||
readonly Strict: 0; | ||
readonly ResolveAsComponentOrHelperHead: 1; | ||
readonly ResolveAsHelperHead: 5; | ||
readonly ResolveAsModifierHead: 6; | ||
readonly ResolveAsComponentHead: 7; | ||
}; | ||
declare const WellKnownAttrNames: { | ||
readonly class: 0; | ||
readonly id: 1; | ||
readonly value: 2; | ||
readonly name: 3; | ||
readonly type: 4; | ||
readonly style: 5; | ||
readonly href: 6; | ||
}; | ||
declare const WellKnownTagNames: { | ||
readonly div: 0; | ||
readonly span: 1; | ||
readonly p: 2; | ||
readonly a: 3; | ||
}; | ||
declare function is<T>(variant: number): (value: any) => value is T; | ||
declare const isFlushElement: (value: any) => value is Statements.FlushElement; | ||
declare function isAttribute(val: Statement): val is Statements.Attribute; | ||
declare function isStringLiteral(expr: Expression): expr is Expressions.StringValue; | ||
declare function getStringFromValue(expr: Expressions.StringValue): string; | ||
declare function isArgument(val: Statement): val is Statements.Argument; | ||
declare function isHelper(expr: Expression): expr is Expressions.Helper; | ||
declare const isGet: (value: any) => value is Expressions.GetSymbol; | ||
export { opcodes as SexpOpcodes, resolution as VariableResolutionContext, WellKnownAttrNames, WellKnownTagNames, is, isFlushElement, isAttribute, isStringLiteral, getStringFromValue, isArgument, isHelper, isGet }; | ||
//# sourceMappingURL=index.d.ts.map | ||
import type { Expression, Expressions, Statement, Statements } from '@glimmer/interfaces'; | ||
export { opcodes as SexpOpcodes } from './lib/opcodes'; | ||
export { resolution as VariableResolutionContext } from './lib/resolution'; | ||
export { WellKnownAttrNames, WellKnownTagNames } from './lib/well-known'; | ||
export declare function is<T>(variant: number): (value: unknown) => value is T; | ||
export declare const isFlushElement: (value: unknown) => value is Statements.FlushElement; | ||
export declare function isAttribute(val: Statement): val is Statements.Attribute; | ||
export declare function isStringLiteral(expr: Expression): expr is Expressions.StringValue; | ||
export declare function getStringFromValue(expr: Expressions.StringValue): string; | ||
export declare function isArgument(val: Statement): val is Statements.Argument; | ||
export declare function isHelper(expr: Expression): expr is Expressions.Helper; | ||
export declare const isGet: (value: unknown) => value is Expressions.GetSymbol; |
{ | ||
"name": "@glimmer/wire-format", | ||
"version": "0.93.1", | ||
"version": "0.94.0", | ||
"license": "MIT", | ||
"description": "", | ||
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/main/packages/@glimmer/wire-format", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/glimmerjs/glimmer-vm.git", | ||
"directory": "packages/@glimmer/wire-format" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"require": { | ||
"types": "./dist/dev/index.d.cts", | ||
"default": "./dist/dev/index.cjs" | ||
}, | ||
"default": { | ||
"development": { | ||
"types": "./dist/dev/index.d.ts", | ||
"default": "./dist/dev/index.js" | ||
}, | ||
"default": { | ||
"types": "./dist/prod/index.d.ts", | ||
"default": "./dist/prod/index.js" | ||
} | ||
} | ||
"development": { | ||
"types": "./dist/dev/index.d.ts", | ||
"default": "./dist/dev/index.js" | ||
}, | ||
"default": { | ||
"types": "./dist/prod/index.d.ts", | ||
"default": "./dist/prod/index.js" | ||
} | ||
@@ -33,18 +29,16 @@ }, | ||
"dependencies": { | ||
"@glimmer/interfaces": "0.93.0", | ||
"@glimmer/util": "0.93.1" | ||
"@glimmer/interfaces": "0.94.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.52.0", | ||
"publint": "^0.2.5", | ||
"rollup": "^4.5.1", | ||
"eslint": "^9.18.0", | ||
"publint": "^0.3.2", | ||
"rollup": "^4.31.0-0", | ||
"typescript": "*", | ||
"@glimmer-workspace/build-support": "1.0.0" | ||
"@glimmer-workspace/build-support": "0.92.0", | ||
"@glimmer-workspace/env": "0.92.0" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c rollup.config.mjs", | ||
"test:lint": "eslint .", | ||
"test:publint": "publint", | ||
"test:types": "tsc --noEmit -p ../tsconfig.json" | ||
"test:lint": "eslint . --quiet", | ||
"test:publint": "publint" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1
0
22269
6
271
1
+ Added@glimmer/interfaces@0.94.0(transitive)
- Removed@glimmer/util@0.93.1
- Removed@glimmer/env@0.1.7(transitive)
- Removed@glimmer/interfaces@0.93.0(transitive)
- Removed@glimmer/util@0.93.1(transitive)
Updated@glimmer/interfaces@0.94.0