ember-source 5.12.0-beta.2 → 5.12.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.
@@ -1,148 +1,148 @@
1
1
  const ContentType = {
2
- Component: 0,
3
- Helper: 1,
4
- String: 2,
5
- Empty: 3,
6
- SafeString: 4,
7
- Fragment: 5,
8
- Node: 6,
9
- Other: 8
10
- };
11
- const CurriedTypes = {
12
- Component: 0,
13
- Helper: 1,
14
- Modifier: 2
15
- };
16
- const InternalComponentCapabilities = {
17
- Empty: 0,
18
- dynamicLayout: 0b0000000000001,
19
- dynamicTag: 0b0000000000010,
20
- prepareArgs: 0b0000000000100,
21
- createArgs: 0b0000000001000,
22
- attributeHook: 0b0000000010000,
23
- elementHook: 0b0000000100000,
24
- dynamicScope: 0b0000001000000,
25
- createCaller: 0b0000010000000,
26
- updateHook: 0b0000100000000,
27
- createInstance: 0b0001000000000,
28
- wrapped: 0b0010000000000,
29
- willDestroy: 0b0100000000000,
30
- hasSubOwner: 0b1000000000000
31
- };
32
- const ARG_SHIFT = 8;
33
- const MAX_SIZE = 0x7fffffff;
34
- const TYPE_SIZE = 0b11111111;
35
- const TYPE_MASK = 0b00000000000000000000000011111111;
36
- const OPERAND_LEN_MASK = 0b00000000000000000000001100000000;
37
- const MACHINE_MASK = 0b00000000000000000000010000000000;
38
- const MachineOp = {
39
- PushFrame: 0,
40
- PopFrame: 1,
41
- InvokeVirtual: 2,
42
- InvokeStatic: 3,
43
- Jump: 4,
44
- Return: 5,
45
- ReturnTo: 6,
46
- Size: 7
47
- };
48
- const Op = {
49
- Helper: 16,
50
- SetNamedVariables: 17,
51
- SetBlocks: 18,
52
- SetVariable: 19,
53
- SetBlock: 20,
54
- GetVariable: 21,
55
- GetProperty: 22,
56
- GetBlock: 23,
57
- SpreadBlock: 24,
58
- HasBlock: 25,
59
- HasBlockParams: 26,
60
- Concat: 27,
61
- Constant: 28,
62
- ConstantReference: 29,
63
- Primitive: 30,
64
- PrimitiveReference: 31,
65
- ReifyU32: 32,
66
- Dup: 33,
67
- Pop: 34,
68
- Load: 35,
69
- Fetch: 36,
70
- RootScope: 37,
71
- VirtualRootScope: 38,
72
- ChildScope: 39,
73
- PopScope: 40,
74
- Text: 41,
75
- Comment: 42,
76
- AppendHTML: 43,
77
- AppendSafeHTML: 44,
78
- AppendDocumentFragment: 45,
79
- AppendNode: 46,
80
- AppendText: 47,
81
- OpenElement: 48,
82
- OpenDynamicElement: 49,
83
- PushRemoteElement: 50,
84
- StaticAttr: 51,
85
- DynamicAttr: 52,
86
- ComponentAttr: 53,
87
- FlushElement: 54,
88
- CloseElement: 55,
89
- PopRemoteElement: 56,
90
- Modifier: 57,
91
- BindDynamicScope: 58,
92
- PushDynamicScope: 59,
93
- PopDynamicScope: 60,
94
- CompileBlock: 61,
95
- PushBlockScope: 62,
96
- PushSymbolTable: 63,
97
- InvokeYield: 64,
98
- JumpIf: 65,
99
- JumpUnless: 66,
100
- JumpEq: 67,
101
- AssertSame: 68,
102
- Enter: 69,
103
- Exit: 70,
104
- ToBoolean: 71,
105
- EnterList: 72,
106
- ExitList: 73,
107
- Iterate: 74,
108
- Main: 75,
109
- ContentType: 76,
110
- Curry: 77,
111
- PushComponentDefinition: 78,
112
- PushDynamicComponentInstance: 79,
113
- ResolveDynamicComponent: 80,
114
- ResolveCurriedComponent: 81,
115
- PushArgs: 82,
116
- PushEmptyArgs: 83,
117
- PopArgs: 84,
118
- PrepareArgs: 85,
119
- CaptureArgs: 86,
120
- CreateComponent: 87,
121
- RegisterComponentDestructor: 88,
122
- PutComponentOperations: 89,
123
- GetComponentSelf: 90,
124
- GetComponentTagName: 91,
125
- GetComponentLayout: 92,
126
- BindEvalScope: 93,
127
- SetupForEval: 94,
128
- PopulateLayout: 95,
129
- InvokeComponentLayout: 96,
130
- BeginComponentTransaction: 97,
131
- CommitComponentTransaction: 98,
132
- DidCreateElement: 99,
133
- DidRenderLayout: 100,
134
- ResolveMaybeLocal: 102,
135
- Debugger: 103,
136
- Size: 104,
137
- StaticComponentAttr: 105,
138
- DynamicContentType: 106,
139
- DynamicHelper: 107,
140
- DynamicModifier: 108,
141
- IfInline: 109,
142
- Not: 110,
143
- GetDynamicVar: 111,
144
- Log: 112
145
- };
2
+ Component: 0,
3
+ Helper: 1,
4
+ String: 2,
5
+ Empty: 3,
6
+ SafeString: 4,
7
+ Fragment: 5,
8
+ Node: 6,
9
+ Other: 8
10
+ },
11
+ CurriedTypes = {
12
+ Component: 0,
13
+ Helper: 1,
14
+ Modifier: 2
15
+ },
16
+ InternalComponentCapabilities = {
17
+ Empty: 0,
18
+ dynamicLayout: 1,
19
+ dynamicTag: 2,
20
+ prepareArgs: 4,
21
+ createArgs: 8,
22
+ attributeHook: 16,
23
+ elementHook: 32,
24
+ dynamicScope: 64,
25
+ createCaller: 128,
26
+ updateHook: 256,
27
+ createInstance: 512,
28
+ wrapped: 1024,
29
+ willDestroy: 2048,
30
+ hasSubOwner: 4096
31
+ },
32
+ ARG_SHIFT = 8,
33
+ MAX_SIZE = 2147483647,
34
+ TYPE_SIZE = 255,
35
+ TYPE_MASK = 255,
36
+ OPERAND_LEN_MASK = 768,
37
+ MACHINE_MASK = 1024,
38
+ MachineOp = {
39
+ PushFrame: 0,
40
+ PopFrame: 1,
41
+ InvokeVirtual: 2,
42
+ InvokeStatic: 3,
43
+ Jump: 4,
44
+ Return: 5,
45
+ ReturnTo: 6,
46
+ Size: 7
47
+ },
48
+ Op = {
49
+ Helper: 16,
50
+ SetNamedVariables: 17,
51
+ SetBlocks: 18,
52
+ SetVariable: 19,
53
+ SetBlock: 20,
54
+ GetVariable: 21,
55
+ GetProperty: 22,
56
+ GetBlock: 23,
57
+ SpreadBlock: 24,
58
+ HasBlock: 25,
59
+ HasBlockParams: 26,
60
+ Concat: 27,
61
+ Constant: 28,
62
+ ConstantReference: 29,
63
+ Primitive: 30,
64
+ PrimitiveReference: 31,
65
+ ReifyU32: 32,
66
+ Dup: 33,
67
+ Pop: 34,
68
+ Load: 35,
69
+ Fetch: 36,
70
+ RootScope: 37,
71
+ VirtualRootScope: 38,
72
+ ChildScope: 39,
73
+ PopScope: 40,
74
+ Text: 41,
75
+ Comment: 42,
76
+ AppendHTML: 43,
77
+ AppendSafeHTML: 44,
78
+ AppendDocumentFragment: 45,
79
+ AppendNode: 46,
80
+ AppendText: 47,
81
+ OpenElement: 48,
82
+ OpenDynamicElement: 49,
83
+ PushRemoteElement: 50,
84
+ StaticAttr: 51,
85
+ DynamicAttr: 52,
86
+ ComponentAttr: 53,
87
+ FlushElement: 54,
88
+ CloseElement: 55,
89
+ PopRemoteElement: 56,
90
+ Modifier: 57,
91
+ BindDynamicScope: 58,
92
+ PushDynamicScope: 59,
93
+ PopDynamicScope: 60,
94
+ CompileBlock: 61,
95
+ PushBlockScope: 62,
96
+ PushSymbolTable: 63,
97
+ InvokeYield: 64,
98
+ JumpIf: 65,
99
+ JumpUnless: 66,
100
+ JumpEq: 67,
101
+ AssertSame: 68,
102
+ Enter: 69,
103
+ Exit: 70,
104
+ ToBoolean: 71,
105
+ EnterList: 72,
106
+ ExitList: 73,
107
+ Iterate: 74,
108
+ Main: 75,
109
+ ContentType: 76,
110
+ Curry: 77,
111
+ PushComponentDefinition: 78,
112
+ PushDynamicComponentInstance: 79,
113
+ ResolveDynamicComponent: 80,
114
+ ResolveCurriedComponent: 81,
115
+ PushArgs: 82,
116
+ PushEmptyArgs: 83,
117
+ PopArgs: 84,
118
+ PrepareArgs: 85,
119
+ CaptureArgs: 86,
120
+ CreateComponent: 87,
121
+ RegisterComponentDestructor: 88,
122
+ PutComponentOperations: 89,
123
+ GetComponentSelf: 90,
124
+ GetComponentTagName: 91,
125
+ GetComponentLayout: 92,
126
+ BindEvalScope: 93,
127
+ SetupForEval: 94,
128
+ PopulateLayout: 95,
129
+ InvokeComponentLayout: 96,
130
+ BeginComponentTransaction: 97,
131
+ CommitComponentTransaction: 98,
132
+ DidCreateElement: 99,
133
+ DidRenderLayout: 100,
134
+ ResolveMaybeLocal: 102,
135
+ Debugger: 103,
136
+ Size: 104,
137
+ StaticComponentAttr: 105,
138
+ DynamicContentType: 106,
139
+ DynamicHelper: 107,
140
+ DynamicModifier: 108,
141
+ IfInline: 109,
142
+ Not: 110,
143
+ GetDynamicVar: 111,
144
+ Log: 112
145
+ };
146
146
  function isMachineOp(value) {
147
147
  return value >= 0 && value <= 15;
148
148
  }
@@ -156,42 +156,29 @@ function isOp(value) {
156
156
  * For the most part, these follows MIPS naming conventions, however the
157
157
  * register numbers are different.
158
158
  */
159
-
160
159
  // $0 or $pc (program counter): pointer into `program` for the next insturction; -1 means exit
161
- const $pc = 0;
160
+ const $pc = 0,
161
+ $ra = 1,
162
+ $fp = 2,
163
+ $sp = 3,
164
+ $s0 = 4,
165
+ $s1 = 5,
166
+ $t0 = 6,
167
+ $t1 = 7,
168
+ $v0 = 8;
169
+
162
170
  // $1 or $ra (return address): pointer into `program` for the return
163
- const $ra = 1;
164
- // $2 or $fp (frame pointer): pointer into the `evalStack` for the base of the stack
165
- const $fp = 2;
166
- // $3 or $sp (stack pointer): pointer into the `evalStack` for the top of the stack
167
- const $sp = 3;
168
- // $4-$5 or $s0-$s1 (saved): callee saved general-purpose registers
169
- const $s0 = 4;
170
- const $s1 = 5;
171
- // $6-$7 or $t0-$t1 (temporaries): caller saved general-purpose registers
172
- const $t0 = 6;
173
- const $t1 = 7;
174
- // $8 or $v0 (return value)
175
- const $v0 = 8;
176
- let MachineRegister = /*#__PURE__*/function (MachineRegister) {
177
- MachineRegister[MachineRegister["pc"] = 0] = "pc";
178
- MachineRegister[MachineRegister["ra"] = 1] = "ra";
179
- MachineRegister[MachineRegister["fp"] = 2] = "fp";
180
- MachineRegister[MachineRegister["sp"] = 3] = "sp";
181
- return MachineRegister;
171
+ let MachineRegister = function (MachineRegister) {
172
+ return MachineRegister[MachineRegister.pc = 0] = "pc", MachineRegister[MachineRegister.ra = 1] = "ra", MachineRegister[MachineRegister.fp = 2] = "fp", MachineRegister[MachineRegister.sp = 3] = "sp", MachineRegister;
182
173
  }({});
183
174
  function isLowLevelRegister(register) {
184
- return register <= $sp;
175
+ return register <= 3;
185
176
  }
186
- let SavedRegister = /*#__PURE__*/function (SavedRegister) {
187
- SavedRegister[SavedRegister["s0"] = 4] = "s0";
188
- SavedRegister[SavedRegister["s1"] = 5] = "s1";
189
- return SavedRegister;
190
- }({});
191
- let TemporaryRegister = /*#__PURE__*/function (TemporaryRegister) {
192
- TemporaryRegister[TemporaryRegister["t0"] = 6] = "t0";
193
- TemporaryRegister[TemporaryRegister["t1"] = 7] = "t1";
194
- return TemporaryRegister;
195
- }({});
177
+ let SavedRegister = function (SavedRegister) {
178
+ return SavedRegister[SavedRegister.s0 = 4] = "s0", SavedRegister[SavedRegister.s1 = 5] = "s1", SavedRegister;
179
+ }({}),
180
+ TemporaryRegister = function (TemporaryRegister) {
181
+ return TemporaryRegister[TemporaryRegister.t0 = 6] = "t0", TemporaryRegister[TemporaryRegister.t1 = 7] = "t1", TemporaryRegister;
182
+ }({});
196
183
 
197
184
  export { $fp, $pc, $ra, $s0, $s1, $sp, $t0, $t1, $v0, ARG_SHIFT, ContentType, CurriedTypes as CurriedType, CurriedTypes, InternalComponentCapabilities, InternalComponentCapabilities as InternalComponentCapability, MACHINE_MASK, MAX_SIZE, MachineOp, MachineRegister, OPERAND_LEN_MASK, Op, SavedRegister, TYPE_MASK, TYPE_SIZE, TemporaryRegister, isLowLevelRegister, isMachineOp, isOp };
@@ -1,76 +1,75 @@
1
1
  const opcodes = {
2
- Append: 1,
3
- TrustingAppend: 2,
4
- Comment: 3,
5
- Modifier: 4,
6
- StrictModifier: 5,
7
- Block: 6,
8
- StrictBlock: 7,
9
- Component: 8,
10
- OpenElement: 10,
11
- OpenElementWithSplat: 11,
12
- FlushElement: 12,
13
- CloseElement: 13,
14
- StaticAttr: 14,
15
- DynamicAttr: 15,
16
- ComponentAttr: 16,
17
- AttrSplat: 17,
18
- Yield: 18,
19
- DynamicArg: 20,
20
- StaticArg: 21,
21
- TrustingDynamicAttr: 22,
22
- TrustingComponentAttr: 23,
23
- StaticComponentAttr: 24,
24
- Debugger: 26,
25
- Undefined: 27,
26
- Call: 28,
27
- Concat: 29,
28
- GetSymbol: 30,
29
- GetLexicalSymbol: 32,
30
- GetStrictKeyword: 31,
31
- GetFreeAsComponentOrHelperHead: 35,
32
- GetFreeAsHelperHead: 37,
33
- GetFreeAsModifierHead: 38,
34
- GetFreeAsComponentHead: 39,
35
- InElement: 40,
36
- If: 41,
37
- Each: 42,
38
- Let: 44,
39
- WithDynamicVars: 45,
40
- InvokeComponent: 46,
41
- HasBlock: 48,
42
- HasBlockParams: 49,
43
- Curry: 50,
44
- Not: 51,
45
- IfInline: 52,
46
- GetDynamicVar: 53,
47
- Log: 54
48
- };
2
+ Append: 1,
3
+ TrustingAppend: 2,
4
+ Comment: 3,
5
+ Modifier: 4,
6
+ StrictModifier: 5,
7
+ Block: 6,
8
+ StrictBlock: 7,
9
+ Component: 8,
10
+ OpenElement: 10,
11
+ OpenElementWithSplat: 11,
12
+ FlushElement: 12,
13
+ CloseElement: 13,
14
+ StaticAttr: 14,
15
+ DynamicAttr: 15,
16
+ ComponentAttr: 16,
17
+ AttrSplat: 17,
18
+ Yield: 18,
19
+ DynamicArg: 20,
20
+ StaticArg: 21,
21
+ TrustingDynamicAttr: 22,
22
+ TrustingComponentAttr: 23,
23
+ StaticComponentAttr: 24,
24
+ Debugger: 26,
25
+ Undefined: 27,
26
+ Call: 28,
27
+ Concat: 29,
28
+ GetSymbol: 30,
29
+ GetLexicalSymbol: 32,
30
+ GetStrictKeyword: 31,
31
+ GetFreeAsComponentOrHelperHead: 35,
32
+ GetFreeAsHelperHead: 37,
33
+ GetFreeAsModifierHead: 38,
34
+ GetFreeAsComponentHead: 39,
35
+ InElement: 40,
36
+ If: 41,
37
+ Each: 42,
38
+ Let: 44,
39
+ WithDynamicVars: 45,
40
+ InvokeComponent: 46,
41
+ HasBlock: 48,
42
+ HasBlockParams: 49,
43
+ Curry: 50,
44
+ Not: 51,
45
+ IfInline: 52,
46
+ GetDynamicVar: 53,
47
+ Log: 54
48
+ },
49
+ resolution = {
50
+ Strict: 0,
51
+ ResolveAsComponentOrHelperHead: 1,
52
+ ResolveAsHelperHead: 5,
53
+ ResolveAsModifierHead: 6,
54
+ ResolveAsComponentHead: 7
55
+ },
56
+ WellKnownAttrNames = {
57
+ class: 0,
58
+ id: 1,
59
+ value: 2,
60
+ name: 3,
61
+ type: 4,
62
+ style: 5,
63
+ href: 6
64
+ },
65
+ WellKnownTagNames = {
66
+ div: 0,
67
+ span: 1,
68
+ p: 2,
69
+ a: 3
70
+ };
49
71
 
50
72
  // eslint-disable-next-line @typescript-eslint/naming-convention
51
-
52
- const resolution = {
53
- Strict: 0,
54
- ResolveAsComponentOrHelperHead: 1,
55
- ResolveAsHelperHead: 5,
56
- ResolveAsModifierHead: 6,
57
- ResolveAsComponentHead: 7
58
- };
59
- const WellKnownAttrNames = {
60
- class: 0,
61
- id: 1,
62
- value: 2,
63
- name: 3,
64
- type: 4,
65
- style: 5,
66
- href: 6
67
- };
68
- const WellKnownTagNames = {
69
- div: 0,
70
- span: 1,
71
- p: 2,
72
- a: 3
73
- };
74
73
  function is(variant) {
75
74
  return function (value) {
76
75
  return Array.isArray(value) && value[0] === variant;
@@ -83,7 +82,7 @@ function isAttribute(val) {
83
82
  return val[0] === opcodes.StaticAttr || val[0] === opcodes.DynamicAttr || val[0] === opcodes.TrustingDynamicAttr || val[0] === opcodes.ComponentAttr || val[0] === opcodes.StaticComponentAttr || val[0] === opcodes.TrustingComponentAttr || val[0] === opcodes.AttrSplat || val[0] === opcodes.Modifier;
84
83
  }
85
84
  function isStringLiteral(expr) {
86
- return typeof expr === 'string';
85
+ return "string" == typeof expr;
87
86
  }
88
87
  function getStringFromValue(expr) {
89
88
  return expr;
@@ -1,4 +1,4 @@
1
1
  // this file gets replaced with the real value during the build
2
- const Version = '5.12.0-beta.2';
2
+ const Version = '5.12.0';
3
3
 
4
4
  export { Version as default };
package/docs/data.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "The Ember API",
4
4
  "description": "The Ember API: a framework for building ambitious web applications",
5
5
  "url": "https://emberjs.com/",
6
- "version": "5.12.0-beta.2"
6
+ "version": "5.12.0"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "5.12.0-beta.2",
3
+ "version": "5.12.0",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -60,23 +60,23 @@
60
60
  "dependencies": {
61
61
  "@babel/core": "^7.24.4",
62
62
  "@ember/edition-utils": "^1.2.0",
63
- "@glimmer/compiler": "0.92.0",
64
- "@glimmer/destroyable": "0.92.0",
63
+ "@glimmer/compiler": "0.92.4",
64
+ "@glimmer/destroyable": "0.92.3",
65
65
  "@glimmer/env": "^0.1.7",
66
- "@glimmer/global-context": "0.92.0",
67
- "@glimmer/interfaces": "0.92.0",
68
- "@glimmer/manager": "0.92.0",
69
- "@glimmer/node": "0.92.0",
70
- "@glimmer/opcode-compiler": "0.92.0",
71
- "@glimmer/owner": "0.92.0",
72
- "@glimmer/program": "0.92.0",
73
- "@glimmer/reference": "0.92.0",
74
- "@glimmer/runtime": "0.92.0",
75
- "@glimmer/syntax": "0.92.0",
76
- "@glimmer/util": "0.92.0",
77
- "@glimmer/validator": "0.92.0",
78
- "@glimmer/vm": "0.92.0",
79
- "@glimmer/vm-babel-plugins": "0.92.0",
66
+ "@glimmer/global-context": "0.92.3",
67
+ "@glimmer/interfaces": "0.92.3",
68
+ "@glimmer/manager": "0.92.4",
69
+ "@glimmer/node": "0.92.4",
70
+ "@glimmer/opcode-compiler": "0.92.4",
71
+ "@glimmer/owner": "0.92.3",
72
+ "@glimmer/program": "0.92.4",
73
+ "@glimmer/reference": "0.92.3",
74
+ "@glimmer/runtime": "0.92.4",
75
+ "@glimmer/syntax": "0.92.3",
76
+ "@glimmer/util": "0.92.3",
77
+ "@glimmer/validator": "0.92.3",
78
+ "@glimmer/vm": "0.92.3",
79
+ "@glimmer/vm-babel-plugins": "0.92.3",
80
80
  "@simple-dom/interface": "^1.4.0",
81
81
  "backburner.js": "^2.8.0",
82
82
  "broccoli-file-creator": "^2.1.1",
@@ -102,8 +102,6 @@
102
102
  },
103
103
  "devDependencies": {
104
104
  "@aws-sdk/client-s3": "^3.321.1",
105
- "babel-plugin-debug-macros": "1.0.0",
106
- "babel-plugin-ember-template-compilation": "^2.1.1",
107
105
  "@babel/plugin-transform-typescript": "^7.22.9",
108
106
  "@babel/preset-env": "^7.16.11",
109
107
  "@babel/types": "^7.22.5",
@@ -120,6 +118,8 @@
120
118
  "@typescript-eslint/parser": "^5.62.0",
121
119
  "ast-types": "^0.14.2",
122
120
  "auto-dist-tag": "^2.1.1",
121
+ "babel-plugin-debug-macros": "1.0.0",
122
+ "babel-plugin-ember-template-compilation": "^2.1.1",
123
123
  "dag-map": "^2.0.2",
124
124
  "decorator-transforms": "2.0.0",
125
125
  "ember-cli": "^4.10.0",
@@ -190,9 +190,6 @@
190
190
  "node": "16.20.0",
191
191
  "pnpm": "8.10.0"
192
192
  },
193
- "_originalVersion": "5.12.0-beta.2",
194
- "_versionPreviouslyCalculated": true,
195
- "publishConfig": {
196
- "tag": "beta"
197
- }
198
- }
193
+ "_originalVersion": "5.12.0",
194
+ "_versionPreviouslyCalculated": true
195
+ }