-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Upgrade VM @glimmer/*
packages from 0.84.3 to 0.85.13
#20561
Upgrade VM @glimmer/*
packages from 0.84.3 to 0.85.13
#20561
Conversation
02b2912
to
69abefe
Compare
@glimmer/*
packages, and update usage based on their API changes
packages/@ember/-internals/glimmer/tests/integration/application/debug-render-tree-test.ts
Outdated
Show resolved
Hide resolved
packages/@ember/-internals/glimmer/lib/component-managers/curly.ts
Outdated
Show resolved
Hide resolved
10db7f6
to
4492d05
Compare
Upgrade VM @glimmer/* packages Also, @glimmer/vm needed to be added to the root package.json so non-declared dependencies (such as @ember/-internals) may be provided access to @glimmer/vm Upgrade glimmer-vm again
… the type to @ember/-internals/utility-types
ships them untranspiled
…uires an 'errors' object so that errors can be reported back to the user if something goes wrong
…t it was likely pre-existing Add disable_local_debug to bin/run-tests
Changing AnyFn to Function in places up until the runloop public API
44dfc4a
to
09a7648
Compare
… now requires an 'errors' object so that errors can be reported back to the user if something goes wrong" This reverts commit 0092ad7.
@@ -417,7 +417,7 @@ function makeClosureAction( | |||
return (...args: any[]) => { | |||
let payload = { target: self, args, label: '@glimmer/closure-action' }; | |||
return flaggedInstrument('interaction.ember-action', payload, () => { | |||
return join(self, fn, ...processArgs(args)); | |||
return join(self, fn as AnyFn, ...processArgs(args)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think it's valid to push the cast down to here 👍🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3
1e1c608
to
04ca7fe
Compare
… fix, but it was likely pre-existing" This reverts commit 1856b8c.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than fixing that final unchecked type cast I think we are good, can you apply those suggestions (verbatim or spirit of it) and squash when merging?
Co-authored-by: Godfrey Chan <[email protected]>
@glimmer/*
packages, and update usage based on their API changes@glimmer/*
packages from 0.84.3 to 0.85.13
This is post-the-major-refactor-that-yehuda-did.
Huge thanks to @wycats and @chancancode for helping me through this upgrade process 🎉
GlimmerVM changes
Changes
@glimmer/interfaces
no longer provides theOption
type. This has been internalized to@ember/-internals/utility-types
(renamed to Nullable to match, tho)@glimmer/util
no longer provides aWeakSet
polyfill, so ember now uses nativeWeakSet
-- which has been supported by everyone for nearly all of time: https://caniuse.com/?search=WeakSetprogramCompilationContext
now takes a third argument@babel/preset-env
(so its used if needed, as determined by targets, which our targets don't determine that we need it)blockers that are no longer
bring back
@glimmer/env
's DEBUG: Fix the build. Split dev from prod. In dev, convert import.meta.env.DEV to DEBUG from@glimmer/env
glimmerjs/glimmer-vm#1472@glimmer/*
needs to move to conditional exports (instead of pushing import.meta.env on consumers)not good ideas (or not good right now), now abandoned
@glimmer/compiler
depends on@glimmer/local-debug-flags
, PR: Declare @glimmer/local-debug-flags glimmerjs/glimmer-vm#1461this is a devDependency that should be compiled away during publish.
ember-source needs to support import.meta.env, PR: Add import.meta.env support ember-cli-babel#506
consuming projects need to support import.meta.env (we want to pass this through), PR: Add import.meta.env support ember-cli-babel#506