ember-source 5.0.0-beta.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/build-metadata.json +3 -3
  2. package/dist/dependencies/@glimmer/destroyable.js +2 -2
  3. package/dist/dependencies/@glimmer/env.js +1 -1
  4. package/dist/dependencies/@glimmer/global-context.js +1 -1
  5. package/dist/dependencies/@glimmer/low-level.js +1 -1
  6. package/dist/dependencies/@glimmer/manager.js +5 -13
  7. package/dist/dependencies/@glimmer/node.js +1 -1
  8. package/dist/dependencies/@glimmer/opcode-compiler.js +38 -38
  9. package/dist/dependencies/@glimmer/program.js +9 -9
  10. package/dist/dependencies/@glimmer/reference.js +4 -4
  11. package/dist/dependencies/@glimmer/runtime.js +41 -41
  12. package/dist/dependencies/@glimmer/util.js +3 -3
  13. package/dist/dependencies/@glimmer/validator.js +1 -1
  14. package/dist/dependencies/@glimmer/vm.js +1 -1
  15. package/dist/dependencies/@glimmer/wire-format.js +1 -1
  16. package/dist/dependencies/router_js.js +3 -4
  17. package/dist/dependencies/rsvp.js +23 -25
  18. package/dist/ember-template-compiler.js +343 -398
  19. package/dist/ember-template-compiler.map +1 -1
  20. package/dist/ember-testing.js +4 -4
  21. package/dist/ember-testing.map +1 -1
  22. package/dist/ember.debug.js +423 -649
  23. package/dist/ember.debug.map +1 -1
  24. package/dist/header/license.js +1 -1
  25. package/dist/packages/@ember/-internals/browser-environment/index.js +1 -1
  26. package/dist/packages/@ember/-internals/container/index.js +6 -12
  27. package/dist/packages/@ember/-internals/environment/index.js +1 -1
  28. package/dist/packages/@ember/-internals/glimmer/index.js +115 -208
  29. package/dist/packages/@ember/-internals/metal/index.js +106 -226
  30. package/dist/packages/@ember/-internals/utils/index.js +1 -12
  31. package/dist/packages/@ember/-internals/views/lib/system/event_dispatcher.js +10 -9
  32. package/dist/packages/@ember/-internals/views/lib/views/core_view.js +1 -2
  33. package/dist/packages/@ember/-internals/views/lib/views/states.js +12 -7
  34. package/dist/packages/@ember/application/index.js +11 -11
  35. package/dist/packages/@ember/application/instance.js +3 -2
  36. package/dist/packages/@ember/application/lib/lazy_load.js +2 -4
  37. package/dist/packages/@ember/array/index.js +3 -6
  38. package/dist/packages/@ember/debug/lib/deprecate.js +3 -3
  39. package/dist/packages/@ember/engine/index.js +3 -2
  40. package/dist/packages/@ember/engine/instance.js +1 -2
  41. package/dist/packages/@ember/object/index.js +1 -1
  42. package/dist/packages/@ember/routing/hash-location.js +1 -2
  43. package/dist/packages/@ember/routing/history-location.js +3 -5
  44. package/dist/packages/@ember/routing/lib/utils.js +4 -1
  45. package/dist/packages/@ember/routing/route.js +20 -6
  46. package/dist/packages/ember/index.js +4 -3
  47. package/dist/packages/ember/version.js +1 -1
  48. package/docs/data.json +4 -4
  49. package/lib/browsers.js +49 -24
  50. package/package.json +8 -13
  51. package/types/preview/@ember/routing/history-location.d.ts +2 -2
  52. package/CHANGELOG.md +0 -3843
  53. package/dist/packages/@ember/-internals/runtime/.gitignore +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "5.0.0-beta.1",
2
+ "version": "5.0.0",
3
3
  "buildType": "tag",
4
- "SHA": "a04ef94c9106b1aeaa267f146cc4463ee9ba3ebc",
5
- "assetPath": "/tag/shas/a04ef94c9106b1aeaa267f146cc4463ee9ba3ebc.tgz"
4
+ "SHA": "18af34b221d79b4d4536d59af4fa8d331f0cf315",
5
+ "assetPath": "/tag/shas/18af34b221d79b4d4536d59af4fa8d331f0cf315.tgz"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { DEBUG } from '@glimmer/env';
2
2
  import { debugToString } from '@glimmer/util';
3
- import { scheduleDestroy, scheduleDestroyed } from '@glimmer/global-context';
3
+ import { scheduleDestroyed, scheduleDestroy } from '@glimmer/global-context';
4
4
 
5
5
  let DESTROYABLE_META = new WeakMap();
6
6
 
@@ -200,4 +200,4 @@ if (DEBUG) {
200
200
  };
201
201
  }
202
202
 
203
- export { associateDestroyableChild, registerDestructor, unregisterDestructor, destroy, destroyChildren, _hasDestroyableChildren, isDestroying, isDestroyed, enableDestroyableTracking, assertDestroyablesDestroyed };
203
+ export { _hasDestroyableChildren, assertDestroyablesDestroyed, associateDestroyableChild, destroy, destroyChildren, enableDestroyableTracking, isDestroyed, isDestroying, registerDestructor, unregisterDestructor };
@@ -1,4 +1,4 @@
1
1
  const DEBUG = false;
2
2
  const CI = false;
3
3
 
4
- export { DEBUG, CI };
4
+ export { CI, DEBUG };
@@ -188,4 +188,4 @@ if (DEBUG) {
188
188
  }
189
189
 
190
190
  export default setGlobalContext;
191
- export { FEATURE_DEFAULT_HELPER_MANAGER, scheduleRevalidate, scheduleDestroy, scheduleDestroyed, toIterator, toBool, getProp, setProp, getPath, setPath, warnIfStyleNotTrusted, assert, deprecate, assertGlobalContextWasSet, testOverrideGlobalContext };
191
+ export { FEATURE_DEFAULT_HELPER_MANAGER, assert, assertGlobalContextWasSet, deprecate, getPath, getProp, scheduleDestroy, scheduleDestroyed, scheduleRevalidate, setPath, setProp, testOverrideGlobalContext, toBool, toIterator, warnIfStyleNotTrusted };
@@ -74,4 +74,4 @@ class Stack {
74
74
 
75
75
  }
76
76
 
77
- export { Storage, Stack };
77
+ export { Stack, Storage };
@@ -1,9 +1,9 @@
1
1
  import { DEBUG } from '@glimmer/env';
2
2
  import { _WeakSet, HAS_NATIVE_PROXY, debugToString } from '@glimmer/util';
3
+ import { FEATURE_DEFAULT_HELPER_MANAGER } from '@glimmer/global-context';
4
+ import { associateDestroyableChild, registerDestructor } from '@glimmer/destroyable';
3
5
  import { valueForRef, createComputeRef, createConstRef, UNDEFINED_REFERENCE } from '@glimmer/reference';
4
6
  import { track, createUpdatableTag, untrack } from '@glimmer/validator';
5
- import { associateDestroyableChild, registerDestructor } from '@glimmer/destroyable';
6
- import { FEATURE_DEFAULT_HELPER_MANAGER } from '@glimmer/global-context';
7
7
 
8
8
  const FROM_CAPABILITIES = DEBUG ? new _WeakSet() : undefined;
9
9
  function buildCapabilities(capabilities) {
@@ -505,17 +505,13 @@ function getInternalComponentManager(definition, isOptional) {
505
505
  } ///////////
506
506
 
507
507
  function hasInternalComponentManager(definition) {
508
- return hasDefaultComponentManager(definition) || getManager(COMPONENT_MANAGERS, definition) !== undefined;
508
+ return getManager(COMPONENT_MANAGERS, definition) !== undefined;
509
509
  }
510
510
  function hasInternalHelperManager(definition) {
511
511
  return hasDefaultHelperManager(definition) || getManager(HELPER_MANAGERS, definition) !== undefined;
512
512
  }
513
513
  function hasInternalModifierManager(definition) {
514
- return hasDefaultModifierManager(definition) || getManager(MODIFIER_MANAGERS, definition) !== undefined;
515
- }
516
-
517
- function hasDefaultComponentManager(_definition) {
518
- return false;
514
+ return getManager(MODIFIER_MANAGERS, definition) !== undefined;
519
515
  }
520
516
 
521
517
  function hasDefaultHelperManager(definition) {
@@ -526,10 +522,6 @@ function hasDefaultHelperManager(definition) {
526
522
  return false;
527
523
  }
528
524
 
529
- function hasDefaultModifierManager(_definition) {
530
- return false;
531
- }
532
-
533
525
  const CAPABILITIES = {
534
526
  dynamicLayout: false,
535
527
  dynamicTag: false,
@@ -888,4 +880,4 @@ function getComponentTemplate(obj) {
888
880
  return undefined;
889
881
  }
890
882
 
891
- export { setInternalHelperManager, setInternalModifierManager, setInternalComponentManager, getInternalHelperManager, getInternalModifierManager, getInternalComponentManager, hasInternalHelperManager, hasInternalModifierManager, hasInternalComponentManager, setHelperManager, setModifierManager, setComponentManager, componentCapabilities, CustomComponentManager, modifierCapabilities, CustomModifierManager, helperCapabilities, hasDestroyable, hasValue, CustomHelperManager, getComponentTemplate, setComponentTemplate, capabilityFlagsFrom, hasCapability, managerHasCapability, getCustomTagFor, setCustomTagFor };
883
+ export { CustomComponentManager, CustomHelperManager, CustomModifierManager, capabilityFlagsFrom, componentCapabilities, getComponentTemplate, getCustomTagFor, getInternalComponentManager, getInternalHelperManager, getInternalModifierManager, hasCapability, hasDestroyable, hasInternalComponentManager, hasInternalHelperManager, hasInternalModifierManager, hasValue, helperCapabilities, managerHasCapability, modifierCapabilities, setComponentManager, setComponentTemplate, setCustomTagFor, setHelperManager, setInternalComponentManager, setInternalHelperManager, setInternalModifierManager, setModifierManager };
@@ -1,4 +1,4 @@
1
- import { ConcreteBounds, DOMTreeConstruction, NewElementBuilder } from '@glimmer/runtime';
1
+ import { DOMTreeConstruction, ConcreteBounds, NewElementBuilder } from '@glimmer/runtime';
2
2
  import createHTMLDocument from '@simple-dom/document';
3
3
 
4
4
  class NodeDOMTreeConstruction extends DOMTreeConstruction {
@@ -1,8 +1,8 @@
1
- import { dict, assign, isSmallInt, debugToString, EMPTY_ARRAY, EMPTY_STRING_ARRAY, encodeImmediate, Stack, encodeHandle } from '@glimmer/util';
2
- import { DEBUG } from '@glimmer/env';
3
- import { $v0, $fp, $s0, $s1, $sp, isMachineOp } from '@glimmer/vm';
4
- import { assert, deprecate } from '@glimmer/global-context';
1
+ import { $v0, $fp, $sp, $s0, $s1, isMachineOp } from '@glimmer/vm';
5
2
  import { hasCapability } from '@glimmer/manager';
3
+ import { assign, dict, debugToString, EMPTY_STRING_ARRAY, EMPTY_ARRAY, isSmallInt, encodeImmediate, Stack, encodeHandle } from '@glimmer/util';
4
+ import { assert, deprecate } from '@glimmer/global-context';
5
+ import { DEBUG } from '@glimmer/env';
6
6
  import { InstructionEncoderImpl } from '@glimmer/encoder';
7
7
 
8
8
  class NamedBlocksImpl {
@@ -495,8 +495,8 @@ EXPRESSIONS.add(28
495
495
  });
496
496
  EXPRESSIONS.add(50
497
497
  /* Curry */
498
- , (op, [, expr$$1, type, positional, named]) => {
499
- Curry(op, type, expr$$1, positional, named);
498
+ , (op, [, expr, type, positional, named]) => {
499
+ Curry(op, type, expr, positional, named);
500
500
  });
501
501
  EXPRESSIONS.add(30
502
502
  /* GetSymbol */
@@ -537,14 +537,14 @@ EXPRESSIONS.add(34
537
537
  });
538
538
  EXPRESSIONS.add(36
539
539
  /* GetFreeAsHelperHeadOrThisFallback */
540
- , (op, expr$$1) => {
540
+ , (op, expr) => {
541
541
  // <div id={{baz}}>
542
542
  op(1010
543
543
  /* ResolveLocal */
544
- , expr$$1[1], _name => {
544
+ , expr[1], _name => {
545
545
  op(1006
546
546
  /* ResolveOptionalHelper */
547
- , expr$$1, {
547
+ , expr, {
548
548
  ifHelper: handle => {
549
549
  Call(op, handle, null, null);
550
550
  }
@@ -553,17 +553,17 @@ EXPRESSIONS.add(36
553
553
  });
554
554
  EXPRESSIONS.add(99
555
555
  /* GetFreeAsDeprecatedHelperHeadOrThisFallback */
556
- , (op, expr$$1) => {
556
+ , (op, expr) => {
557
557
  // <Foo @bar={{baz}}>
558
558
  op(1010
559
559
  /* ResolveLocal */
560
- , expr$$1[1], _name => {
560
+ , expr[1], _name => {
561
561
  op(1006
562
562
  /* ResolveOptionalHelper */
563
- , expr$$1, {
563
+ , expr, {
564
564
  ifHelper: (handle, name, moduleName) => {
565
- assert(expr$$1[2] && expr$$1[2].length === 1, '[BUG] Missing argument name');
566
- let arg = expr$$1[2][0];
565
+ assert(expr[2] && expr[2].length === 1, '[BUG] Missing argument name');
566
+ let arg = expr[2][0];
567
567
  deprecate(`The \`${name}\` helper was used in the \`${moduleName}\` template as \`${arg}={{${name}}}\`. ` + `This is ambigious between wanting the \`${arg}\` argument to be the \`${name}\` helper itself, ` + `or the result of invoking the \`${name}\` helper (current behavior). ` + `This implicit invocation behavior has been deprecated.\n\n` + `Instead, please explicitly invoke the helper with parenthesis, i.e. \`${arg}={{(${name})}}\`.\n\n` + `Note: the parenthesis are only required in this exact scenario where an ambiguity is present – where ` + `\`${name}\` referes to a global helper (as opposed to a local variable), AND ` + `the \`${name}\` helper invocation does not take any arguments, AND ` + `this occurs in a named argument position of a component invocation.\n\n` + `We expect this combination to be quite rare, as most helpers require at least one argument. ` + `There is no need to refactor helper invocations in cases where this deprecation was not triggered.`, false, {
568
568
  id: 'argument-less-helper-paren-less-invocation'
569
569
  });
@@ -1596,14 +1596,14 @@ function InvokeNonStaticComponent(op, {
1596
1596
  positional,
1597
1597
  named,
1598
1598
  atNames,
1599
- blocks: namedBlocks$$1,
1599
+ blocks: namedBlocks,
1600
1600
  layout
1601
1601
  }) {
1602
- let bindableBlocks = !!namedBlocks$$1;
1602
+ let bindableBlocks = !!namedBlocks;
1603
1603
  let bindableAtNames = capabilities === true || hasCapability(capabilities, 4
1604
1604
  /* PrepareArgs */
1605
1605
  ) || !!(named && named[0].length !== 0);
1606
- let blocks = namedBlocks$$1.with('attrs', elementBlock);
1606
+ let blocks = namedBlocks.with('attrs', elementBlock);
1607
1607
  op(36
1608
1608
  /* Fetch */
1609
1609
  , $s0);
@@ -1973,17 +1973,17 @@ STATEMENTS.add(11
1973
1973
  });
1974
1974
  STATEMENTS.add(8
1975
1975
  /* Component */
1976
- , (op, [, expr$$1, elementBlock, named, blocks]) => {
1977
- if (isGetFreeComponent(expr$$1)) {
1976
+ , (op, [, expr, elementBlock, named, blocks]) => {
1977
+ if (isGetFreeComponent(expr)) {
1978
1978
  op(1004
1979
1979
  /* ResolveComponent */
1980
- , expr$$1, component => {
1980
+ , expr, component => {
1981
1981
  InvokeComponent(op, component, elementBlock, null, named, blocks);
1982
1982
  });
1983
1983
  } else {
1984
1984
  // otherwise, the component name was an expression, so resolve the expression
1985
1985
  // and invoke it as a dynamic component
1986
- InvokeDynamicComponent(op, expr$$1, elementBlock, null, named, blocks, true, true);
1986
+ InvokeDynamicComponent(op, expr, elementBlock, null, named, blocks, true, true);
1987
1987
  }
1988
1988
  });
1989
1989
  STATEMENTS.add(18
@@ -2140,15 +2140,15 @@ STATEMENTS.add(2
2140
2140
  });
2141
2141
  STATEMENTS.add(6
2142
2142
  /* Block */
2143
- , (op, [, expr$$1, positional, named, blocks]) => {
2144
- if (isGetFreeComponent(expr$$1)) {
2143
+ , (op, [, expr, positional, named, blocks]) => {
2144
+ if (isGetFreeComponent(expr)) {
2145
2145
  op(1004
2146
2146
  /* ResolveComponent */
2147
- , expr$$1, component => {
2147
+ , expr, component => {
2148
2148
  InvokeComponent(op, component, null, positional, hashToArgs(named), blocks);
2149
2149
  });
2150
2150
  } else {
2151
- InvokeDynamicComponent(op, expr$$1, null, positional, named, blocks, false, false);
2151
+ InvokeDynamicComponent(op, expr, null, positional, named, blocks, false, false);
2152
2152
  }
2153
2153
  });
2154
2154
  STATEMENTS.add(40
@@ -2292,15 +2292,15 @@ STATEMENTS.add(45
2292
2292
  });
2293
2293
  STATEMENTS.add(46
2294
2294
  /* InvokeComponent */
2295
- , (op, [, expr$$1, positional, named, blocks]) => {
2296
- if (isGetFreeComponent(expr$$1)) {
2295
+ , (op, [, expr, positional, named, blocks]) => {
2296
+ if (isGetFreeComponent(expr)) {
2297
2297
  op(1004
2298
2298
  /* ResolveComponent */
2299
- , expr$$1, component => {
2299
+ , expr, component => {
2300
2300
  InvokeComponent(op, component, null, positional, hashToArgs(named), blocks);
2301
2301
  });
2302
2302
  } else {
2303
- InvokeDynamicComponent(op, expr$$1, null, positional, named, blocks, false, false);
2303
+ InvokeDynamicComponent(op, expr, null, positional, named, blocks, false, false);
2304
2304
  }
2305
2305
  });
2306
2306
 
@@ -2313,11 +2313,11 @@ function hashToArgs(hash) {
2313
2313
  const PLACEHOLDER_HANDLE = -1;
2314
2314
 
2315
2315
  class CompilableTemplateImpl {
2316
- constructor(statements, meta$$1, // Part of CompilableTemplate
2316
+ constructor(statements, meta, // Part of CompilableTemplate
2317
2317
  symbolTable, // Used for debugging
2318
2318
  moduleName = 'plain block') {
2319
2319
  this.statements = statements;
2320
- this.meta = meta$$1;
2320
+ this.meta = meta;
2321
2321
  this.symbolTable = symbolTable;
2322
2322
  this.moduleName = moduleName;
2323
2323
  this.compiled = null;
@@ -2343,16 +2343,16 @@ function maybeCompile(compilable, context) {
2343
2343
  compilable.compiled = PLACEHOLDER_HANDLE;
2344
2344
  let {
2345
2345
  statements,
2346
- meta: meta$$1
2346
+ meta
2347
2347
  } = compilable;
2348
- let result = compileStatements(statements, meta$$1, context);
2348
+ let result = compileStatements(statements, meta, context);
2349
2349
  compilable.compiled = result;
2350
2350
  return result;
2351
2351
  }
2352
2352
 
2353
- function compileStatements(statements, meta$$1, syntaxContext) {
2353
+ function compileStatements(statements, meta, syntaxContext) {
2354
2354
  let sCompiler = STATEMENTS;
2355
- let context = templateCompilationContext(syntaxContext, meta$$1);
2355
+ let context = templateCompilationContext(syntaxContext, meta);
2356
2356
  let {
2357
2357
  encoder,
2358
2358
  program: {
@@ -2362,14 +2362,14 @@ function compileStatements(statements, meta$$1, syntaxContext) {
2362
2362
  } = context;
2363
2363
 
2364
2364
  function pushOp(...op) {
2365
- encodeOp(encoder, constants, resolver, meta$$1, op);
2365
+ encodeOp(encoder, constants, resolver, meta, op);
2366
2366
  }
2367
2367
 
2368
2368
  for (let i = 0; i < statements.length; i++) {
2369
2369
  sCompiler.compile(pushOp, statements[i]);
2370
2370
  }
2371
2371
 
2372
- let handle = context.encoder.commit(meta$$1.size);
2372
+ let handle = context.encoder.commit(meta.size);
2373
2373
 
2374
2374
  return handle;
2375
2375
  }
@@ -3001,4 +3001,4 @@ class TemplateImpl {
3001
3001
 
3002
3002
  }
3003
3003
 
3004
- export { debugCompiler, compileStatements, compilable, InvokeStaticBlockWithStack as invokeStaticBlockWithStack, InvokeStaticBlock as invokeStaticBlock, compileStd, meta, StdLib, templateFactory, templateCacheCounters, WrappedBuilder, EMPTY_BLOCKS, CompileTimeCompilationContextImpl, programCompilationContext, templateCompilationContext, DEFAULT_CAPABILITIES, MINIMAL_CAPABILITIES };
3004
+ export { CompileTimeCompilationContextImpl, DEFAULT_CAPABILITIES, EMPTY_BLOCKS, MINIMAL_CAPABILITIES, StdLib, WrappedBuilder, compilable, compileStatements, compileStd, debugCompiler, InvokeStaticBlock as invokeStaticBlock, InvokeStaticBlockWithStack as invokeStaticBlockWithStack, meta, programCompilationContext, templateCacheCounters, templateCompilationContext, templateFactory };
@@ -1,5 +1,5 @@
1
1
  import { constants, unwrapTemplate } from '@glimmer/util';
2
- import { capabilityFlagsFrom, getComponentTemplate, getInternalComponentManager, getInternalHelperManager, getInternalModifierManager, managerHasCapability } from '@glimmer/manager';
2
+ import { getInternalHelperManager, getInternalModifierManager, getInternalComponentManager, capabilityFlagsFrom, getComponentTemplate, managerHasCapability } from '@glimmer/manager';
3
3
  import { templateFactory } from '@glimmer/opcode-compiler';
4
4
 
5
5
  /**
@@ -154,16 +154,16 @@ class ConstantsImpl extends CompileTimeConstantImpl {
154
154
  return null;
155
155
  }
156
156
  let capabilities = capabilityFlagsFrom(manager.getCapabilities(definitionState));
157
- let templateFactory$$1 = getComponentTemplate(definitionState);
157
+ let templateFactory = getComponentTemplate(definitionState);
158
158
  let compilable = null;
159
159
  let template;
160
160
 
161
161
  if (!managerHasCapability(manager, capabilities, 1
162
162
  /* DynamicLayout */
163
163
  )) {
164
- template = (_a = templateFactory$$1 === null || templateFactory$$1 === void 0 ? void 0 : templateFactory$$1(owner)) !== null && _a !== void 0 ? _a : this.defaultTemplate;
164
+ template = (_a = templateFactory === null || templateFactory === void 0 ? void 0 : templateFactory(owner)) !== null && _a !== void 0 ? _a : this.defaultTemplate;
165
165
  } else {
166
- template = templateFactory$$1 === null || templateFactory$$1 === void 0 ? void 0 : templateFactory$$1(owner);
166
+ template = templateFactory === null || templateFactory === void 0 ? void 0 : templateFactory(owner);
167
167
  }
168
168
 
169
169
  if (template !== undefined) {
@@ -319,7 +319,7 @@ class RuntimeHeapImpl {
319
319
  }
320
320
 
321
321
  sizeof(handle) {
322
- return sizeof(this.table, handle);
322
+ return sizeof(this.table);
323
323
  }
324
324
 
325
325
  }
@@ -402,7 +402,7 @@ class HeapImpl {
402
402
  }
403
403
 
404
404
  sizeof(handle) {
405
- return sizeof(this.handleTable, handle);
405
+ return sizeof(this.handleTable);
406
406
  }
407
407
 
408
408
  free(handle) {
@@ -476,8 +476,8 @@ class HeapImpl {
476
476
 
477
477
  }
478
478
  class RuntimeProgramImpl {
479
- constructor(constants$$1, heap) {
480
- this.constants = constants$$1;
479
+ constructor(constants, heap) {
480
+ this.constants = constants;
481
481
  this.heap = heap;
482
482
  this._opcode = new RuntimeOpImpl(this.heap);
483
483
  }
@@ -516,4 +516,4 @@ function artifacts() {
516
516
  };
517
517
  }
518
518
 
519
- export { CompileTimeConstantImpl, RuntimeConstantsImpl, ConstantsImpl, RuntimeHeapImpl, hydrateHeap, HeapImpl, RuntimeProgramImpl, RuntimeOpImpl, artifacts };
519
+ export { CompileTimeConstantImpl, ConstantsImpl, HeapImpl, RuntimeConstantsImpl, RuntimeHeapImpl, RuntimeOpImpl, RuntimeProgramImpl, artifacts, hydrateHeap };
@@ -1,7 +1,7 @@
1
1
  import { DEBUG } from '@glimmer/env';
2
- import { getProp, setProp, getPath, toIterator } from '@glimmer/global-context';
3
- import { isDict, symbol, EMPTY_ARRAY, isObject } from '@glimmer/util';
4
- import { CONSTANT_TAG, consumeTag, INITIAL, track, validateTag, valueForTag, createTag, dirtyTag } from '@glimmer/validator';
2
+ import { setProp, getProp, toIterator, getPath } from '@glimmer/global-context';
3
+ import { symbol, isDict, EMPTY_ARRAY, isObject } from '@glimmer/util';
4
+ import { CONSTANT_TAG, validateTag, track, valueForTag, consumeTag, INITIAL, createTag, dirtyTag } from '@glimmer/validator';
5
5
 
6
6
  const REFERENCE = symbol('REFERENCE');
7
7
 
@@ -437,4 +437,4 @@ class ArrayIterator {
437
437
 
438
438
  }
439
439
 
440
- export { REFERENCE, createPrimitiveRef, createConstRef, createUnboundRef, createComputeRef, createDebugAliasRef, createReadOnlyRef, createInvokableRef, isInvokableRef, isConstRef, isUpdatableRef, valueForRef, updateRef, childRefFor, childRefFromParts, UNDEFINED_REFERENCE, NULL_REFERENCE, TRUE_REFERENCE, FALSE_REFERENCE, createIteratorRef, createIteratorItemRef };
440
+ export { FALSE_REFERENCE, NULL_REFERENCE, REFERENCE, TRUE_REFERENCE, UNDEFINED_REFERENCE, childRefFor, childRefFromParts, createComputeRef, createConstRef, createDebugAliasRef, createInvokableRef, createIteratorItemRef, createIteratorRef, createPrimitiveRef, createReadOnlyRef, createUnboundRef, isConstRef, isInvokableRef, isUpdatableRef, updateRef, valueForRef };
@@ -1,15 +1,15 @@
1
- import { assign, symbol, Stack, fillNulls, _WeakSet, isObject, dict, emptyArray, EMPTY_STRING_ARRAY, debugToString, decodeHandle, decodeImmediate, isHandle, unwrapTemplate, clearElement, unwrapHandle, buildUntouchableThis, HAS_NATIVE_PROXY, isDict } from '@glimmer/util';
2
- import { UNDEFINED_REFERENCE, valueForRef, createComputeRef, createDebugAliasRef, childRefFor, TRUE_REFERENCE, FALSE_REFERENCE, isConstRef, createPrimitiveRef, NULL_REFERENCE, createConstRef, createIteratorRef, updateRef, createIteratorItemRef, isInvokableRef } from '@glimmer/reference';
1
+ import { UNDEFINED_REFERENCE, createComputeRef, valueForRef, createDebugAliasRef, childRefFor, TRUE_REFERENCE, FALSE_REFERENCE, createConstRef, createPrimitiveRef, isConstRef, NULL_REFERENCE, createIteratorRef, updateRef, createIteratorItemRef, isInvokableRef } from '@glimmer/reference';
2
+ import { assign, symbol, Stack, fillNulls, _WeakSet, isObject, emptyArray, EMPTY_STRING_ARRAY, dict, decodeHandle, debugToString, isHandle, decodeImmediate, unwrapTemplate, clearElement, unwrapHandle, buildUntouchableThis, HAS_NATIVE_PROXY, isDict } from '@glimmer/util';
3
+ import { $pc, $sp, $v0, $t0, $t1, $ra, $fp, isLowLevelRegister, $s1, $s0 } from '@glimmer/vm';
4
+ import { registerDestructor, destroy, associateDestroyableChild, _hasDestroyableChildren, destroyChildren, isDestroying, isDestroyed } from '@glimmer/destroyable';
5
+ export { destroy, isDestroyed, isDestroying, registerDestructor } from '@glimmer/destroyable';
3
6
  import { warnIfStyleNotTrusted, toBool, assertGlobalContextWasSet, deprecate, getPath, setPath } from '@glimmer/global-context';
4
7
  import { DEBUG } from '@glimmer/env';
5
- import { destroy, registerDestructor, associateDestroyableChild, _hasDestroyableChildren, destroyChildren, isDestroyed, isDestroying } from '@glimmer/destroyable';
6
- export { destroy, registerDestructor, isDestroying, isDestroyed } from '@glimmer/destroyable';
7
- import { $fp, $pc, $ra, $sp, $v0, $t0, $t1, $s0, $s1, isLowLevelRegister } from '@glimmer/vm';
8
- import { CONSTANT_TAG, valueForTag, validateTag, INITIAL, beginTrackFrame, endTrackFrame, consumeTag, CURRENT_TAG, track, updateTag, resetTracking, runInTrackingTransaction, createCache, getValue, createUpdatableTag } from '@glimmer/validator';
9
- import { managerHasCapability, hasInternalComponentManager, hasInternalHelperManager, setInternalComponentManager, getInternalHelperManager, hasDestroyable, hasValue, setInternalHelperManager, setInternalModifierManager } from '@glimmer/manager';
8
+ import { CONSTANT_TAG, beginTrackFrame, endTrackFrame, INITIAL, validateTag, consumeTag, valueForTag, CURRENT_TAG, track, updateTag, runInTrackingTransaction, resetTracking, createCache, getValue, createUpdatableTag } from '@glimmer/validator';
9
+ import { managerHasCapability, hasInternalComponentManager, hasInternalHelperManager, setInternalComponentManager, getInternalHelperManager, hasValue, hasDestroyable, setInternalHelperManager, setInternalModifierManager } from '@glimmer/manager';
10
10
  import { RuntimeProgramImpl } from '@glimmer/program';
11
11
  import { getOwner } from '@glimmer/owner';
12
- import { reifyPositional, reifyNamed } from '@glimmer/runtime';
12
+ import { reifyPositional as reifyPositional$1, reifyNamed as reifyNamed$1 } from '@glimmer/runtime';
13
13
 
14
14
  class DynamicScopeImpl {
15
15
  constructor(bucket) {
@@ -78,12 +78,12 @@ class PartialScopeImpl {
78
78
  return this.get(0);
79
79
  }
80
80
 
81
- getSymbol(symbol$$1) {
82
- return this.get(symbol$$1);
81
+ getSymbol(symbol) {
82
+ return this.get(symbol);
83
83
  }
84
84
 
85
- getBlock(symbol$$1) {
86
- let block = this.get(symbol$$1);
85
+ getBlock(symbol) {
86
+ let block = this.get(symbol);
87
87
  return block === UNDEFINED_REFERENCE ? null : block;
88
88
  }
89
89
 
@@ -95,20 +95,20 @@ class PartialScopeImpl {
95
95
  return this.partialMap;
96
96
  }
97
97
 
98
- bind(symbol$$1, value) {
99
- this.set(symbol$$1, value);
98
+ bind(symbol, value) {
99
+ this.set(symbol, value);
100
100
  }
101
101
 
102
102
  bindSelf(self) {
103
103
  this.set(0, self);
104
104
  }
105
105
 
106
- bindSymbol(symbol$$1, value) {
107
- this.set(symbol$$1, value);
106
+ bindSymbol(symbol, value) {
107
+ this.set(symbol, value);
108
108
  }
109
109
 
110
- bindBlock(symbol$$1, value) {
111
- this.set(symbol$$1, value);
110
+ bindBlock(symbol, value) {
111
+ this.set(symbol, value);
112
112
  }
113
113
 
114
114
  bindEvalScope(map) {
@@ -1815,7 +1815,7 @@ function createCapturedArgs(named, positional) {
1815
1815
  positional
1816
1816
  };
1817
1817
  }
1818
- function reifyNamed$1(named) {
1818
+ function reifyNamed(named) {
1819
1819
  let reified = dict();
1820
1820
 
1821
1821
  for (let key in named) {
@@ -1824,13 +1824,13 @@ function reifyNamed$1(named) {
1824
1824
 
1825
1825
  return reified;
1826
1826
  }
1827
- function reifyPositional$1(positional) {
1827
+ function reifyPositional(positional) {
1828
1828
  return positional.map(valueForRef);
1829
1829
  }
1830
1830
  function reifyArgs(args) {
1831
1831
  return {
1832
- named: reifyNamed$1(args.named),
1833
- positional: reifyPositional$1(args.positional)
1832
+ named: reifyNamed(args.named),
1833
+ positional: reifyPositional(args.positional)
1834
1834
  };
1835
1835
  }
1836
1836
  const EMPTY_NAMED = Object.freeze(Object.create(null));
@@ -1941,28 +1941,28 @@ APPEND_OPCODES.add(16
1941
1941
  APPEND_OPCODES.add(21
1942
1942
  /* GetVariable */
1943
1943
  , (vm, {
1944
- op1: symbol$$1
1944
+ op1: symbol
1945
1945
  }) => {
1946
- let expr = vm.referenceForSymbol(symbol$$1);
1946
+ let expr = vm.referenceForSymbol(symbol);
1947
1947
  vm.stack.push(expr);
1948
1948
  });
1949
1949
  APPEND_OPCODES.add(19
1950
1950
  /* SetVariable */
1951
1951
  , (vm, {
1952
- op1: symbol$$1
1952
+ op1: symbol
1953
1953
  }) => {
1954
1954
  let expr = vm.stack.pop();
1955
- vm.scope().bindSymbol(symbol$$1, expr);
1955
+ vm.scope().bindSymbol(symbol, expr);
1956
1956
  });
1957
1957
  APPEND_OPCODES.add(20
1958
1958
  /* SetBlock */
1959
1959
  , (vm, {
1960
- op1: symbol$$1
1960
+ op1: symbol
1961
1961
  }) => {
1962
1962
  let handle = vm.stack.pop();
1963
1963
  let scope = vm.stack.pop();
1964
1964
  let table = vm.stack.pop();
1965
- vm.scope().bindBlock(symbol$$1, [handle, scope, table]);
1965
+ vm.scope().bindBlock(symbol, [handle, scope, table]);
1966
1966
  });
1967
1967
  APPEND_OPCODES.add(102
1968
1968
  /* ResolveMaybeLocal */
@@ -2109,7 +2109,7 @@ APPEND_OPCODES.add(112
2109
2109
  } = vm.stack.pop().capture();
2110
2110
  vm.loadValue($v0, createComputeRef(() => {
2111
2111
  // eslint-disable-next-line no-console
2112
- console.log(...reifyPositional$1(positional));
2112
+ console.log(...reifyPositional(positional));
2113
2113
  }));
2114
2114
  });
2115
2115
 
@@ -3532,17 +3532,17 @@ APPEND_OPCODES.add(17
3532
3532
 
3533
3533
  for (let i = callerNames.length - 1; i >= 0; i--) {
3534
3534
  let atName = callerNames[i];
3535
- let symbol$$1 = state.table.symbols.indexOf(callerNames[i]);
3535
+ let symbol = state.table.symbols.indexOf(callerNames[i]);
3536
3536
  let value = args.named.get(atName, true);
3537
- if (symbol$$1 !== -1) scope.bindSymbol(symbol$$1 + 1, value);
3537
+ if (symbol !== -1) scope.bindSymbol(symbol + 1, value);
3538
3538
  if (state.lookup) state.lookup[atName] = value;
3539
3539
  }
3540
3540
  });
3541
3541
 
3542
3542
  function bindBlock(symbolName, blockName, state, blocks, vm) {
3543
- let symbol$$1 = state.table.symbols.indexOf(symbolName);
3543
+ let symbol = state.table.symbols.indexOf(symbolName);
3544
3544
  let block = blocks.get(blockName);
3545
- if (symbol$$1 !== -1) vm.scope().bindBlock(symbol$$1 + 1, block);
3545
+ if (symbol !== -1) vm.scope().bindBlock(symbol + 1, block);
3546
3546
  if (state.lookup) state.lookup[symbolName] = block;
3547
3547
  }
3548
3548
 
@@ -5730,8 +5730,8 @@ class VM {
5730
5730
  return this.scope().getSelf();
5731
5731
  }
5732
5732
 
5733
- referenceForSymbol(symbol$$1) {
5734
- return this.scope().getSymbol(symbol$$1);
5733
+ referenceForSymbol(symbol) {
5734
+ return this.scope().getSymbol(symbol);
5735
5735
  } /// EXECUTION
5736
5736
 
5737
5737
 
@@ -6594,7 +6594,7 @@ var fn = internalHelper(({
6594
6594
  if (DEBUG) assertCallbackIsFn(callbackRef);
6595
6595
  return createComputeRef(() => {
6596
6596
  return (...invocationArgs) => {
6597
- let [fn, ...args] = reifyPositional(positional);
6597
+ let [fn, ...args] = reifyPositional$1(positional);
6598
6598
  if (DEBUG) assertCallbackIsFn(callbackRef);
6599
6599
 
6600
6600
  if (isInvokableRef(callbackRef)) {
@@ -6671,7 +6671,7 @@ var hash = internalHelper(({
6671
6671
  named
6672
6672
  }) => {
6673
6673
  let ref = createComputeRef(() => {
6674
- let hash = reifyNamed(named);
6674
+ let hash = reifyNamed$1(named);
6675
6675
 
6676
6676
  if (DEBUG && HAS_NATIVE_PROXY) {
6677
6677
  hash = wrapHashProxy(hash);
@@ -6728,7 +6728,7 @@ var hash = internalHelper(({
6728
6728
  var array = internalHelper(({
6729
6729
  positional
6730
6730
  }) => {
6731
- return createComputeRef(() => reifyPositional(positional), null, 'array');
6731
+ return createComputeRef(() => reifyPositional$1(positional), null, 'array');
6732
6732
  });
6733
6733
 
6734
6734
  /**
@@ -6867,7 +6867,7 @@ const normalizeTextValue = value => {
6867
6867
  var concat = internalHelper(({
6868
6868
  positional
6869
6869
  }) => {
6870
- return createComputeRef(() => reifyPositional(positional).map(normalizeTextValue).join(''), null, 'concat');
6870
+ return createComputeRef(() => reifyPositional$1(positional).map(normalizeTextValue).join(''), null, 'concat');
6871
6871
  });
6872
6872
 
6873
6873
  const untouchableContext = buildUntouchableThis('`on` modifier');
@@ -6924,7 +6924,7 @@ class OnModifierState {
6924
6924
  once,
6925
6925
  passive,
6926
6926
  capture
6927
- } = reifyNamed(args.named);
6927
+ } = reifyNamed$1(args.named);
6928
6928
 
6929
6929
  if (once !== this.once) {
6930
6930
  this.once = once;
@@ -7233,4 +7233,4 @@ class OnModifierManager {
7233
7233
 
7234
7234
  var on = setInternalModifierManager(new OnModifierManager(), {});
7235
7235
 
7236
- export { clear, ConcreteBounds, CursorImpl, resetDebuggerCallback, setDebuggerCallback, curry, CurriedValue, TemplateOnlyComponentManager, TEMPLATE_ONLY_COMPONENT_MANAGER, TemplateOnlyComponentDefinition as TemplateOnlyComponent, templateOnlyComponent, helper$1 as DOMChanges, DOMChangesImpl as IDOMChanges, DOMTreeConstruction, isWhitespace, normalizeProperty, DynamicScopeImpl, PartialScopeImpl, runtimeContext, EnvironmentImpl, inTransaction, renderComponent, renderMain, renderSync, UpdatingVMImpl as UpdatingVM, VM as LowLevelVM, EMPTY_ARGS, EMPTY_NAMED, EMPTY_POSITIONAL, createCapturedArgs, reifyArgs, reifyNamed$1 as reifyNamed, reifyPositional$1 as reifyPositional, DynamicAttribute, dynamicAttribute, SimpleDynamicAttribute, clientBuilder, NewElementBuilder, UpdatableBlockImpl, RemoteLiveBlock, isSerializationFirstNode, RehydrateBuilder, rehydrationBuilder, SERIALIZATION_FIRST_NODE_STRING, invokeHelper, fn, hash, array, get, concat, on };
7236
+ export { ConcreteBounds, CurriedValue, CursorImpl, helper$1 as DOMChanges, DOMTreeConstruction, DynamicAttribute, DynamicScopeImpl, EMPTY_ARGS, EMPTY_NAMED, EMPTY_POSITIONAL, EnvironmentImpl, DOMChangesImpl as IDOMChanges, VM as LowLevelVM, NewElementBuilder, PartialScopeImpl, RehydrateBuilder, RemoteLiveBlock, SERIALIZATION_FIRST_NODE_STRING, SimpleDynamicAttribute, TEMPLATE_ONLY_COMPONENT_MANAGER, TemplateOnlyComponentDefinition as TemplateOnlyComponent, TemplateOnlyComponentManager, UpdatableBlockImpl, UpdatingVMImpl as UpdatingVM, array, clear, clientBuilder, concat, createCapturedArgs, curry, dynamicAttribute, fn, get, hash, inTransaction, invokeHelper, isSerializationFirstNode, isWhitespace, normalizeProperty, on, rehydrationBuilder, reifyArgs, reifyNamed, reifyPositional, renderComponent, renderMain, renderSync, resetDebuggerCallback, runtimeContext, setDebuggerCallback, templateOnlyComponent };
@@ -17,7 +17,7 @@ function isEmptyArray(input) {
17
17
 
18
18
  // import Logger from './logger';
19
19
 
20
- function debugAssert$$1(test, msg) {
20
+ function debugAssert(test, msg) {
21
21
  // if (!alreadyWarned) {
22
22
  // alreadyWarned = true;
23
23
  // Logger.warn("Don't leave debug assertions on in public builds");
@@ -26,7 +26,7 @@ function debugAssert$$1(test, msg) {
26
26
  throw new Error(msg || 'assertion failure');
27
27
  }
28
28
  }
29
- function deprecate$$1(desc) {
29
+ function deprecate(desc) {
30
30
  LOCAL_LOGGER.warn(`DEPRECATION: ${desc}`);
31
31
  }
32
32
 
@@ -574,4 +574,4 @@ function assertNever(value, desc = 'unexpected unreachable branch') {
574
574
  throw new Error(`code reached unreachable`);
575
575
  }
576
576
 
577
- export { LOCAL_LOGGER, LOGGER, assertNever, debugAssert$$1 as assert, deprecate$$1 as deprecate, dict, isDict, isObject, StackImpl as Stack, isSerializationFirstNode, SERIALIZATION_FIRST_NODE_STRING, assign, fillNulls, values, weakSet as _WeakSet, castToSimple, castToBrowser, checkNode, intern, buildUntouchableThis, debugToString$1 as debugToString, beginTestSteps, endTestSteps, logStep, verifySteps, EMPTY_ARRAY, emptyArray, EMPTY_STRING_ARRAY, EMPTY_NUMBER_ARRAY, isEmptyArray, clearElement, HAS_NATIVE_PROXY, HAS_NATIVE_SYMBOL, keys, unwrap, expect, unreachable, exhausted, tuple, enumerableSymbol, symbol, strip, isHandle, isNonPrimitiveHandle, constants, isSmallInt, encodeNegative, decodeNegative, encodePositive, decodePositive, encodeHandle, decodeHandle, encodeImmediate, decodeImmediate, unwrapHandle, unwrapTemplate, extractHandle, isOkHandle, isErrHandle, isPresent, ifPresent, toPresentOption, assertPresent, mapPresent };
577
+ export { EMPTY_ARRAY, EMPTY_NUMBER_ARRAY, EMPTY_STRING_ARRAY, HAS_NATIVE_PROXY, HAS_NATIVE_SYMBOL, LOCAL_LOGGER, LOGGER, SERIALIZATION_FIRST_NODE_STRING, StackImpl as Stack, weakSet as _WeakSet, debugAssert as assert, assertNever, assertPresent, assign, beginTestSteps, buildUntouchableThis, castToBrowser, castToSimple, checkNode, clearElement, constants, debugToString$1 as debugToString, decodeHandle, decodeImmediate, decodeNegative, decodePositive, deprecate, dict, emptyArray, encodeHandle, encodeImmediate, encodeNegative, encodePositive, endTestSteps, enumerableSymbol, exhausted, expect, extractHandle, fillNulls, ifPresent, intern, isDict, isEmptyArray, isErrHandle, isHandle, isNonPrimitiveHandle, isObject, isOkHandle, isPresent, isSerializationFirstNode, isSmallInt, keys, logStep, mapPresent, strip, symbol, toPresentOption, tuple, unreachable, unwrap, unwrapHandle, unwrapTemplate, values, verifySteps };
@@ -733,4 +733,4 @@ if (globalObj[GLIMMER_VALIDATOR_REGISTRATION] === true) {
733
733
 
734
734
  globalObj[GLIMMER_VALIDATOR_REGISTRATION] = true;
735
735
 
736
- export { ALLOW_CYCLES, bump, combine, COMPUTE, CONSTANT_TAG, CONSTANT, createTag, createUpdatableTag, CurrentTag, CURRENT_TAG, DIRTY_TAG as dirtyTag, INITIAL, isConstTag, UPDATE_TAG as updateTag, validateTag, valueForTag, VolatileTag, VOLATILE_TAG, VOLATILE, dirtyTagFor, tagFor, tagMetaFor, beginTrackFrame, endTrackFrame, beginUntrackFrame, endUntrackFrame, resetTracking, consumeTag, isTracking, track, untrack, createCache, isConst, getValue, trackedData, logTrackingStack, setTrackingTransactionEnv, runInTrackingTransaction, beginTrackingTransaction, endTrackingTransaction };
736
+ export { ALLOW_CYCLES, COMPUTE, CONSTANT, CONSTANT_TAG, CURRENT_TAG, CurrentTag, INITIAL, VOLATILE, VOLATILE_TAG, VolatileTag, beginTrackFrame, beginTrackingTransaction, beginUntrackFrame, bump, combine, consumeTag, createCache, createTag, createUpdatableTag, DIRTY_TAG as dirtyTag, dirtyTagFor, endTrackFrame, endTrackingTransaction, endUntrackFrame, getValue, isConst, isConstTag, isTracking, logTrackingStack, resetTracking, runInTrackingTransaction, setTrackingTransactionEnv, tagFor, tagMetaFor, track, trackedData, untrack, UPDATE_TAG as updateTag, validateTag, valueForTag };