Skip to content

Commit

Permalink
Handle CurriedType.Component removal
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Nov 24, 2024
1 parent 7035a4f commit d816a0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/@ember/-internals/glimmer/lib/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { assert } from '@ember/debug';
import { _backburner, _getCurrentRunLoop } from '@ember/runloop';
import { destroy } from '@glimmer/destroyable';
import { DEBUG } from '@glimmer/env';
import type { CurriedComponent } from '@glimmer/interfaces';
import type {
Bounds,
Cursor,
Expand All @@ -21,7 +22,6 @@ import type {
EvaluationContext,
} from '@glimmer/interfaces';

import { CurriedType } from '@glimmer/vm';
import type { Nullable } from '@ember/-internals/utility-types';
import { programCompilationContext } from '@glimmer/opcode-compiler';

Check failure on line 26 in packages/@ember/-internals/glimmer/lib/renderer.ts

View workflow job for this annotation

GitHub Actions / Type Checking (current version)

Module '"@glimmer/opcode-compiler"' has no exported member 'programCompilationContext'.
import { artifacts, RuntimeOpImpl } from '@glimmer/program';
Expand Down Expand Up @@ -372,7 +372,7 @@ export class Renderer {
let definition = createRootOutlet(view);
this._appendDefinition(
view,
curry(CurriedType.Component, definition, view.owner, null, true),
curry(0 as CurriedComponent, definition, view.owner, null, true),
target
);
}
Expand All @@ -381,7 +381,7 @@ export class Renderer {
let definition = new RootComponentDefinition(view);
this._appendDefinition(
view,
curry(CurriedType.Component, definition, this._owner, null, true),
curry(0 as CurriedComponent, definition, this._owner, null, true),
target
);
}
Expand Down
5 changes: 2 additions & 3 deletions packages/@ember/-internals/glimmer/lib/syntax/outlet.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { InternalOwner } from '@ember/-internals/owner';
import { assert } from '@ember/debug';
import { DEBUG } from '@glimmer/env';
import type { CapturedArguments, DynamicScope } from '@glimmer/interfaces';
import { CurriedType } from '@glimmer/vm';
import type { CapturedArguments, DynamicScope, CurriedComponent } from '@glimmer/interfaces';
import type { Reference } from '@glimmer/reference';
import {
childRefFromParts,
Expand Down Expand Up @@ -94,7 +93,7 @@ export const outletHelper = internalHelper(

let args = createCapturedArgs(named, EMPTY_POSITIONAL);
definition = curry(
CurriedType.Component,
0 as CurriedComponent,
new OutletComponentDefinition(state),
outletState?.render?.owner ?? owner,
args,
Expand Down

0 comments on commit d816a0a

Please sign in to comment.