ember-source 3.28.10 → 3.28.12

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.
@@ -5,5 +5,5 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 3.28.10
8
+ * @version 3.28.12
9
9
  */
@@ -5044,7 +5044,7 @@ class ClassicHelperManager {
5044
5044
  }
5045
5045
 
5046
5046
  getDebugName(definition) {
5047
- return getDebugName(definition.class['prototype']);
5047
+ return getDebugName((definition.class || definition)['prototype']);
5048
5048
  }
5049
5049
 
5050
5050
  }
@@ -3099,12 +3099,17 @@ function mergeProps(meta$$1, props, descs, values, base, keys, keysWithSuper) {
3099
3099
  let desc = meta$$1.peekDescriptors(key);
3100
3100
 
3101
3101
  if (desc === undefined) {
3102
- // The superclass did not have a CP, which means it may have
3103
- // observers or listeners on that property.
3104
- let prev = values[key] = base[key];
3105
-
3106
- if (typeof prev === 'function') {
3107
- updateObserversAndListeners(base, key, prev, false);
3102
+ // If the value is a classic decorator, we don't want to actually
3103
+ // access it, because that will execute the decorator while we're
3104
+ // building the class.
3105
+ if (!isClassicDecorator(value)) {
3106
+ // The superclass did not have a CP, which means it may have
3107
+ // observers or listeners on that property.
3108
+ let prev = values[key] = base[key];
3109
+
3110
+ if (typeof prev === 'function') {
3111
+ updateObserversAndListeners(base, key, prev, false);
3112
+ }
3108
3113
  }
3109
3114
  } else {
3110
3115
  descs[key] = desc; // The super desc will be overwritten on descs, so save off the fact that
@@ -1 +1 @@
1
- export default "3.28.10";
1
+ export default "3.28.12";
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": "3.28.10"
6
+ "version": "3.28.12"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
@@ -581,6 +581,13 @@
581
581
  },
582
582
  "namespaces": {}
583
583
  },
584
+ "packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js": {
585
+ "name": "packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js",
586
+ "modules": {},
587
+ "classes": {},
588
+ "fors": {},
589
+ "namespaces": {}
590
+ },
584
591
  "packages/@ember/-internals/glimmer/index.ts": {
585
592
  "name": "packages/@ember/-internals/glimmer/index.ts",
586
593
  "modules": {
@@ -2905,7 +2912,7 @@
2905
2912
  "module": "@ember/object",
2906
2913
  "namespace": "",
2907
2914
  "file": "packages/@ember/-internals/metal/lib/mixin.ts",
2908
- "line": 482,
2915
+ "line": 488,
2909
2916
  "description": "The `Mixin` class allows you to create mixins, whose properties can be\nadded to other classes. For instance,\n\n```javascript\nimport Mixin from '@ember/object/mixin';\n\nconst EditableMixin = Mixin.create({\n edit() {\n console.log('starting to edit');\n this.set('isEditing', true);\n },\n isEditing: false\n});\n```\n\n```javascript\nimport EmberObject from '@ember/object';\nimport EditableMixin from '../mixins/editable';\n\n// Mix mixins into classes by passing them as the first arguments to\n// `.extend.`\nconst Comment = EmberObject.extend(EditableMixin, {\n post: null\n});\n\nlet comment = Comment.create({\n post: somePost\n});\n\ncomment.edit(); // outputs 'starting to edit'\n```\n\nNote that Mixins are created with `Mixin.create`, not\n`Mixin.extend`.\n\nNote that mixins extend a constructor's prototype so arrays and object literals\ndefined as properties will be shared amongst objects that implement the mixin.\nIf you want to define a property in a mixin that is not shared, you can define\nit either as a computed property or have it be created on initialization of the object.\n\n```javascript\n// filters array will be shared amongst any object implementing mixin\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\n\nconst FilterableMixin = Mixin.create({\n filters: A()\n});\n```\n\n```javascript\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\nimport { computed } from '@ember/object';\n\n// filters will be a separate array for every object implementing the mixin\nconst FilterableMixin = Mixin.create({\n filters: computed(function() {\n return A();\n })\n});\n```\n\n```javascript\nimport Mixin from '@ember/object/mixin';\nimport { A } from '@ember/array';\n\n// filters will be created as a separate array during the object's initialization\nconst Filterable = Mixin.create({\n filters: null,\n\n init() {\n this._super(...arguments);\n this.set(\"filters\", A());\n }\n});\n```",
2910
2917
  "access": "public",
2911
2918
  "tagname": ""
@@ -7475,6 +7482,13 @@
7475
7482
  "class": "@ember/component/helper",
7476
7483
  "module": "@ember/component"
7477
7484
  },
7485
+ {
7486
+ "file": "packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js",
7487
+ "line": 12,
7488
+ "description": "The template-compiler does not support strict mode at this time.\nprecompile from ember-template-compiler returns a string and\nnot a template-factory, so it doesn't help with strict-mode testing.\n\nWe also can't import from `@ember/template-compiler` because it\ndoesn't exist to this kind of test, otherwise we'd be able to use\nprecompileTemplate, which would be perfect :D\n\nCopied(ish) from https://github.com/NullVoxPopuli/ember-repl/blob/main/addon/hbs.ts#L51",
7489
+ "class": "Ember.Templates.helpers",
7490
+ "module": "@ember/component"
7491
+ },
7478
7492
  {
7479
7493
  "file": "packages/@ember/-internals/glimmer/index.ts",
7480
7494
  "line": 91,
@@ -8188,7 +8202,7 @@
8188
8202
  },
8189
8203
  {
8190
8204
  "file": "packages/@ember/-internals/metal/lib/mixin.ts",
8191
- "line": 468,
8205
+ "line": 474,
8192
8206
  "itemtype": "method",
8193
8207
  "name": "mixin",
8194
8208
  "params": [
@@ -8212,7 +8226,7 @@
8212
8226
  },
8213
8227
  {
8214
8228
  "file": "packages/@ember/-internals/metal/lib/mixin.ts",
8215
- "line": 597,
8229
+ "line": 603,
8216
8230
  "itemtype": "method",
8217
8231
  "name": "create",
8218
8232
  "static": 1,
@@ -8230,7 +8244,7 @@
8230
8244
  },
8231
8245
  {
8232
8246
  "file": "packages/@ember/-internals/metal/lib/mixin.ts",
8233
- "line": 629,
8247
+ "line": 635,
8234
8248
  "itemtype": "method",
8235
8249
  "name": "reopen",
8236
8250
  "params": [
@@ -8247,7 +8261,7 @@
8247
8261
  },
8248
8262
  {
8249
8263
  "file": "packages/@ember/-internals/metal/lib/mixin.ts",
8250
- "line": 651,
8264
+ "line": 657,
8251
8265
  "itemtype": "method",
8252
8266
  "name": "apply",
8253
8267
  "params": [
@@ -8266,7 +8280,7 @@
8266
8280
  },
8267
8281
  {
8268
8282
  "file": "packages/@ember/-internals/metal/lib/mixin.ts",
8269
- "line": 670,
8283
+ "line": 676,
8270
8284
  "itemtype": "method",
8271
8285
  "name": "detect",
8272
8286
  "params": [
@@ -8286,7 +8300,7 @@
8286
8300
  },
8287
8301
  {
8288
8302
  "file": "packages/@ember/-internals/metal/lib/mixin.ts",
8289
- "line": 804,
8303
+ "line": 810,
8290
8304
  "description": "Makes a method available via an additional name.\n\n```app/utils/person.js\nimport EmberObject, {\n aliasMethod\n} from '@ember/object';\n\nexport default EmberObject.extend({\n name() {\n return 'Tomhuda Katzdale';\n },\n moniker: aliasMethod('name')\n});\n```\n\n```javascript\nlet goodGuy = Person.create();\n\ngoodGuy.name(); // 'Tomhuda Katzdale'\ngoodGuy.moniker(); // 'Tomhuda Katzdale'\n```",
8291
8305
  "itemtype": "method",
8292
8306
  "name": "aliasMethod",
@@ -8307,7 +8321,7 @@
8307
8321
  },
8308
8322
  {
8309
8323
  "file": "packages/@ember/-internals/metal/lib/mixin.ts",
8310
- "line": 861,
8324
+ "line": 867,
8311
8325
  "description": "Specify a method that observes property changes.\n\n```javascript\nimport EmberObject from '@ember/object';\nimport { observer } from '@ember/object';\n\nexport default EmberObject.extend({\n valueObserver: observer('value', function() {\n // Executes whenever the \"value\" property changes\n })\n});\n```\n\nAlso available as `Function.prototype.observes` if prototype extensions are\nenabled.",
8312
8326
  "itemtype": "method",
8313
8327
  "name": "observer",
@@ -20229,6 +20243,10 @@
20229
20243
  "message": "Missing item type",
20230
20244
  "line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:110"
20231
20245
  },
20246
+ {
20247
+ "message": "Missing item type\nThe template-compiler does not support strict mode at this time.\nprecompile from ember-template-compiler returns a string and\nnot a template-factory, so it doesn't help with strict-mode testing.\n\nWe also can't import from `@ember/template-compiler` because it\ndoesn't exist to this kind of test, otherwise we'd be able to use\nprecompileTemplate, which would be perfect :D\n\nCopied(ish) from https://github.com/NullVoxPopuli/ember-repl/blob/main/addon/hbs.ts#L51",
20248
+ "line": " packages/@ember/-internals/glimmer/tests/integration/custom-helper-test.js:12"
20249
+ },
20232
20250
  {
20233
20251
  "message": "Missing item type\nFlattening is based on a global revision counter. If the revision has\nbumped it means that somewhere in a class inheritance chain something has\nchanged, so we need to reflatten everything. This can only happen if:\n\n1. A meta has been flattened (listener has been called)\n2. The meta is a prototype meta with children who have inherited its\n listeners\n3. A new listener is subsequently added to the meta (e.g. via `.reopen()`)\n\nThis is a very rare occurrence, so while the counter is global it shouldn't\nbe updated very often in practice.",
20234
20252
  "line": " packages/@ember/-internals/meta/lib/meta.ts:501"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "3.28.10",
3
+ "version": "3.28.12",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -136,7 +136,7 @@
136
136
  "mkdirp": "^1.0.4",
137
137
  "mocha": "^7.1.2",
138
138
  "prettier": "^2.1.2",
139
- "puppeteer": "^3.0.4",
139
+ "puppeteer": "^13.5.1",
140
140
  "qunit": "^2.14.0",
141
141
  "rollup-plugin-commonjs": "^9.3.4",
142
142
  "rollup-plugin-node-resolve": "^4.2.4",
@@ -155,7 +155,7 @@
155
155
  "ember-addon": {
156
156
  "after": "ember-cli-legacy-blueprints"
157
157
  },
158
- "_originalVersion": "3.28.10",
158
+ "_originalVersion": "3.28.12",
159
159
  "_versionPreviouslyCalculated": true,
160
160
  "publishConfig": {
161
161
  "tag": "old"