Skip to content

Commit

Permalink
Update Glimmer VM
Browse files Browse the repository at this point in the history
Updates the VM to the latest version, which includes a number of major
changes:

- Refactors the resolver to not cache values, as this is unnecessary
- Refactors the resolver to return helper/modifier definitions directly
- Refactors the resolver to return ResolvedComponentDefinitions
- Updates various component definitions
- Removes custom helper, modifier, and component managers
- Updates built-in helpers to be based on objects with associated
  helpers/helper managers.
  • Loading branch information
Chris Garrett committed Dec 4, 2020
1 parent d89b80e commit 763cd45
Show file tree
Hide file tree
Showing 92 changed files with 772 additions and 1,872 deletions.
3 changes: 3 additions & 0 deletions broccoli/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ module.exports.glimmerES = function glimmerES(environment) {
let glimmerEntries = [
'@glimmer/node',
'@simple-dom/document',
'@glimmer/manager',
'@glimmer/destroyable',
'@glimmer/owner',
'@glimmer/opcode-compiler',
'@glimmer/runtime',
];
Expand Down
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,19 @@
},
"devDependencies": {
"@babel/preset-env": "^7.9.5",
"@glimmer/compiler": "0.67.0",
"@glimmer/compiler": "0.68.0",
"@glimmer/env": "^0.1.7",
"@glimmer/global-context": "0.67.0",
"@glimmer/interfaces": "0.67.0",
"@glimmer/node": "0.67.0",
"@glimmer/opcode-compiler": "0.67.0",
"@glimmer/program": "0.67.0",
"@glimmer/reference": "0.67.0",
"@glimmer/runtime": "0.67.0",
"@glimmer/validator": "0.67.0",
"@glimmer/global-context": "0.68.0",
"@glimmer/interfaces": "0.68.0",
"@glimmer/manager": "0.68.0",
"@glimmer/destroyable": "0.68.0",
"@glimmer/owner": "0.68.0",
"@glimmer/node": "0.68.0",
"@glimmer/opcode-compiler": "0.68.0",
"@glimmer/program": "0.68.0",
"@glimmer/reference": "0.68.0",
"@glimmer/runtime": "0.68.0",
"@glimmer/validator": "0.68.0",
"@simple-dom/document": "^1.4.0",
"@types/qunit": "^2.9.1",
"@types/rsvp": "^4.0.3",
Expand Down
5 changes: 1 addition & 4 deletions packages/@ember/-internals/glimmer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@
*/

export { templateFactory as template, templateCacheCounters } from '@glimmer/opcode-compiler';
export { setComponentTemplate, getComponentTemplate } from '@glimmer/runtime';

export { default as RootTemplate } from './lib/templates/root';
export { default as Checkbox } from './lib/components/checkbox';
Expand Down Expand Up @@ -393,10 +392,8 @@ export { DOMChanges, NodeDOMTreeConstruction, DOMTreeConstruction } from './lib/
// a lot of these are testing how a problem was solved
// rather than the problem was solved
export { INVOKE } from './lib/helpers/action';
export { default as on } from './lib/modifiers/on';
export { default as OutletView } from './lib/views/outlet';
export { OutletState } from './lib/utils/outlet';
export { setComponentManager } from './lib/utils/managers';
export { capabilities } from './lib/component-managers/custom';
export { capabilities as modifierCapabilities } from './lib/modifiers/custom';
export { helperCapabilities, invokeHelper } from './lib/helpers/custom';
export { isSerializationFirstNode } from './lib/utils/serialization-first-node-helpers';
73 changes: 0 additions & 73 deletions packages/@ember/-internals/glimmer/lib/compile-time-lookup.ts

This file was deleted.

Loading

0 comments on commit 763cd45

Please sign in to comment.