Skip to content

Commit ccb6165

Browse files
committed
alint:fix
1 parent 8f162b1 commit ccb6165

File tree

11 files changed

+718
-152
lines changed

11 files changed

+718
-152
lines changed

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"private": true,
55
"license": "MIT",
66
"description": "Glimmer compiles Handlebars templates into document fragments rather than string buffers",
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/glimmerjs/glimmer-vm.git"
10+
},
711
"author": "Tilde, Inc.",
812
"type": "module",
913
"exports": null,
@@ -21,7 +25,6 @@
2125
"lint:fix": "turbo test:lint -- --fix && prettier -w .",
2226
"lint:format": "prettier -c .",
2327
"repo:lint:all": "turbo run lint:all",
24-
"repo:prepare": "node --disable-warning=ExperimentalWarning --experimental-strip-types ./bin/bench-packages.mts",
2528
"repo:lint:files": "turbo run //#test:lint",
2629
"repo:lint:fix": "turbo run test:lint -- --fix && prettier -w .",
2730
"repo:lint:pub": "turbo run test:publint",
@@ -129,7 +132,7 @@
129132
"vitest": "^3.0.6",
130133
"zx": "^8.3.2"
131134
},
132-
"packageManager": "[email protected].5",
135+
"packageManager": "[email protected].0",
133136
"changelog": {
134137
"repo": "glimmerjs/glimmer-vm",
135138
"labels": {
@@ -143,7 +146,6 @@
143146
"engines": {
144147
"node": ">=22.12.0"
145148
},
146-
"packageManager": "[email protected]",
147149
"pnpm": {
148150
"notes": {
149151
"override:@glimmer/syntax": "when we run prettier, we want to use our local copy of prettier, not the one it declared in its package.json. This ensures that we don't accidentally break prettier as we make changes to @glimmer/syntax"

packages/@glimmer-workspace/integration-tests/lib/test-decorator.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { AnyFn } from '@glimmer/interfaces';
2-
import { keys } from '@glimmer/util';
3-
import { Count, IBasicTest } from './render-test';
1+
import type { AnyFn } from '@glimmer/interfaces';
42
import { localAssert } from '@glimmer/debug-util';
3+
import { keys } from '@glimmer/util';
4+
5+
import type { Count, IBasicTest } from './render-test';
56

67
export type DeclaredComponentKind = 'glimmer' | 'curly' | 'dynamic' | 'templateOnly';
78

packages/@glimmer-workspace/integration-tests/lib/test-helpers/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { keys } from '@glimmer/util';
22

33
import type { ComponentTestMeta } from '../test-decorator';
4+
45
import { jitSuite } from './module';
5-
import { Count } from '../render-test';
66

77
export function test(meta: ComponentTestMeta): MethodDecorator;
88
export function test<T>(

packages/@glimmer-workspace/integration-tests/test/modifiers/dynamic-modifiers-test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
highlightError,
77
jitSuite,
88
RenderTest,
9-
syntaxErrorFor,
109
test,
1110
} from '@glimmer-workspace/integration-tests';
1211

packages/@glimmer/runtime/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export {
1717
templateOnlyComponent,
1818
TemplateOnlyComponentManager,
1919
} from './lib/component/template-only';
20-
export { CurriedValue, curry } from '../program/lib/util/curried-value';
2120
export {
2221
DOMChanges,
2322
DOMTreeConstruction,
@@ -69,6 +68,7 @@ export {
6968
rehydrationBuilder,
7069
SERIALIZATION_FIRST_NODE_STRING,
7170
} from './lib/vm/rehydrate-builder';
71+
export { CurriedValue, curry } from "@glimmer/program/lib/util/curried-value";
7272

7373
// Currently we need to re-export these values for @glimmer/component
7474
// https://github.com/glimmerjs/glimmer.js/issues/319

packages/@glimmer/runtime/lib/compiled/opcodes/dom.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type {
99
UpdatingOpcode,
1010
UpdatingVM,
1111
} from '@glimmer/interfaces';
12+
import type { CurriedValue } from "@glimmer/program/lib/util/curried-value";
1213
import type { Reference } from '@glimmer/reference';
1314
import type { Revision, Tag } from '@glimmer/validator';
1415
import {
@@ -37,15 +38,14 @@ import {
3738
import { debugToString, expect } from '@glimmer/debug-util';
3839
import { associateDestroyableChild, destroy, registerDestructor } from '@glimmer/destroyable';
3940
import { getInternalModifierManager } from '@glimmer/manager';
41+
import { isCurriedType, resolveCurriedValue } from "@glimmer/program/lib/util/curried-value";
4042
import { createComputeRef, isConstRef, valueForRef } from '@glimmer/reference';
4143
import { isIndexable } from '@glimmer/util';
4244
import { consumeTag, CURRENT_TAG, validateTag, valueForTag } from '@glimmer/validator';
4345
import { $t0 } from '@glimmer/vm';
4446

45-
import type { CurriedValue } from '../../../../program/lib/util/curried-value';
4647
import type { DynamicAttribute } from '../../vm/attributes/dynamic';
4748

48-
import { isCurriedType, resolveCurriedValue } from '../../../../program/lib/util/curried-value';
4949
import { APPEND_OPCODES } from '../../opcodes';
5050
import { createCapturedArgs } from '../../vm/arguments';
5151
import { CheckArguments, CheckOperations, CheckReference } from './-debug-strip';

packages/@glimmer/runtime/lib/compiled/opcodes/expressions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import { debugToString, localAssert } from '@glimmer/debug-util';
4040
import { _hasDestroyableChildren, associateDestroyableChild, destroy } from '@glimmer/destroyable';
4141
import { debugAssert, toBool } from '@glimmer/global-context';
4242
import { getInternalHelperManager } from '@glimmer/manager';
43+
import { isCurriedType, resolveCurriedValue } from "@glimmer/program/lib/util/curried-value";
4344
import {
4445
childRefFor,
4546
createComputeRef,
@@ -51,7 +52,6 @@ import {
5152
import { assign, isIndexable } from '@glimmer/util';
5253
import { $v0 } from '@glimmer/vm';
5354

54-
import { isCurriedType, resolveCurriedValue } from '../../../../program/lib/util/curried-value';
5555
import { APPEND_OPCODES } from '../../opcodes';
5656
import createCurryRef from '../../references/curry-value';
5757
import { reifyPositional } from '../../vm/arguments';

packages/@glimmer/runtime/lib/debug-render-tree.ts

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import type {
77
RenderNode,
88
} from '@glimmer/interfaces';
99
import { expect } from '@glimmer/debug-util';
10-
import { isCurriedValue } from '@glimmer/program';
1110
import { assign, Stack } from '@glimmer/util';
1211

1312
import { reifyArgsDebug } from './vm/arguments';

packages/@glimmer/runtime/lib/references/curry-value.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ import type {
1010
import type { Reference } from '@glimmer/reference';
1111
import { CURRIED_COMPONENT } from '@glimmer/constants';
1212
import { expect } from '@glimmer/debug-util';
13+
import { curry, isCurriedType } from "@glimmer/program/lib/util/curried-value";
1314
import { createComputeRef, valueForRef } from '@glimmer/reference';
1415
import { isIndexable } from '@glimmer/util';
1516

16-
import { curry, isCurriedType } from '../../../program/lib/util/curried-value';
17-
1817
export default function createCurryRef(
1918
type: CurriedType,
2019
inner: Reference,

packages/@glimmer/wire-format/lib/opcodes.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type {
2-
AppendDynamicInvokableOpcode,
32
AppendHtmlTextOpcode,
43
AppendInvokableCautiouslyOpcode,
54
AppendResolvedInvokableCautiouslyOpcode,

0 commit comments

Comments
 (0)