ember.js v4.0.1 -> v4.1.0 (#826)

This commit is contained in:
nobody 2021-12-29 06:38:58 +01:00
parent f48fdf9a51
commit c1939b0e40
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
5 changed files with 170 additions and 40 deletions

View File

@ -380,7 +380,7 @@ https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.15.7/theme-chalk/index.min.c
https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.13/ember.debug.js
https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.18.2/ember.debug.js
https://cdnjs.cloudflare.com/ajax/libs/ember.js/3.28.8/ember.debug.js
https://cdnjs.cloudflare.com/ajax/libs/ember.js/4.0.1/ember.debug.js
https://cdnjs.cloudflare.com/ajax/libs/ember.js/4.1.0/ember.debug.js
https://cdnjs.cloudflare.com/ajax/libs/exif-js/2.3.0/exif.min.js
https://cdnjs.cloudflare.com/ajax/libs/ext-core/3.1.0/ext-core.js
https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.7/css/jquery.fancybox.min.css

View File

@ -182,7 +182,7 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/ember.js/1.')) return '1.13.13';
if (type.startsWith('/ember.js/2.')) return '2.18.2';
if (type.startsWith('/ember.js/3.')) return '3.28.8';
if (type.startsWith('/ember.js/4.')) return '4.0.1';
if (type.startsWith('/ember.js/4.')) return '4.1.0';
if (type.startsWith('/ethjs')) return '0.4.0';
if (type.startsWith('/exif-js/2.')) return '2.3.0';
if (type.startsWith('/ext-core/3.')) return '3.1.0';

View File

@ -33,6 +33,7 @@
<li>Chart.js v3.6.2 -> v3.7.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/821">#821</a>)</li>
<li>Swiper v7.3.3 -> v7.4.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/822">#822</a>)</li>
<li>prop-types v15.7.2 -> v15.8.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/823">#823</a>)</li>
<li>ember.js v4.0.1 -> v4.1.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/826">#826</a>)</li>
</ul>
<p>Improved</p>
<ul>

View File

@ -6,11 +6,13 @@
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
* @version 4.0.1
* @version 4.1.0
*/
/* eslint-disable no-var */
/* globals global globalThis self */
/* eslint-disable-next-line no-unused-vars */
var define, require;
(function () {
@ -3326,7 +3328,7 @@ define("@ember/-internals/glimmer/index", ["exports", "@glimmer/opcode-compiler"
}
__decorate$2([(0, _service.inject)('-routing')], LinkTo.prototype, "routing", void 0);
__decorate$2([(0, _service.service)('-routing')], LinkTo.prototype, "routing", void 0);
__decorate$2([_object.action], LinkTo.prototype, "click", null);
@ -4027,7 +4029,7 @@ define("@ember/-internals/glimmer/index", ["exports", "@glimmer/opcode-compiler"
```app/controllers/application.js
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export default class extends Controller {
@service someService;
@ -5685,7 +5687,7 @@ define("@ember/-internals/glimmer/index", ["exports", "@glimmer/opcode-compiler"
session service changes:
```app/helpers/current-user-email.js
import Helper from '@ember/component/helper'
import { inject as service } from '@ember/service'
import { service } from '@ember/service'
import { observer } from '@ember/object'
export default Helper.extend({
session: service(),
@ -9471,7 +9473,7 @@ define("@ember/-internals/metal/index", ["exports", "@ember/-internals/meta", "@
return _validator.isConst;
}
});
_exports.NAMESPACES_BY_ID = _exports.NAMESPACES = _exports.TrackedDescriptor = _exports.DEBUG_INJECTION_FUNCTIONS = _exports.Mixin = _exports.SYNC_OBSERVERS = _exports.ASYNC_OBSERVERS = _exports.Libraries = _exports.libraries = _exports.PROPERTY_DID_CHANGE = _exports.PROXY_CONTENT = _exports.ComputedProperty = void 0;
_exports.NAMESPACES_BY_ID = _exports.NAMESPACES = _exports.cached = _exports.TrackedDescriptor = _exports.DEBUG_INJECTION_FUNCTIONS = _exports.Mixin = _exports.SYNC_OBSERVERS = _exports.ASYNC_OBSERVERS = _exports.Libraries = _exports.libraries = _exports.PROPERTY_DID_CHANGE = _exports.PROXY_CONTENT = _exports.ComputedProperty = void 0;
/**
@module @ember/object
@ -11762,7 +11764,7 @@ define("@ember/-internals/metal/index", ["exports", "@ember/-internals/meta", "@
return none;
}
if (typeof obj.size === 'number') {
if (typeof obj.unknownProperty !== 'function' && typeof obj.size === 'number') {
return !obj.size;
}
@ -13030,6 +13032,56 @@ define("@ember/-internals/metal/index", ["exports", "@ember/-internals/meta", "@
this._set.call(obj, value);
}
} // NOTE: copied from: https://github.com/glimmerjs/glimmer.js/pull/358
_exports.TrackedDescriptor = TrackedDescriptor;
var cached = (...args) => {
{
var [target, key, descriptor] = args; // Error on `@cached()`, `@cached(...args)`, and `@cached propName = value;`
if (true
/* DEBUG */
&& target === undefined) throwCachedExtraneousParens();
if (true
/* DEBUG */
&& (typeof target !== 'object' || typeof key !== 'string' || typeof descriptor !== 'object' || args.length !== 3)) {
throwCachedInvalidArgsError(args);
}
if (true
/* DEBUG */
&& (!('get' in descriptor) || typeof descriptor.get !== 'function')) {
throwCachedGetterOnlyError(key);
}
var caches = new WeakMap();
var getter = descriptor.get;
descriptor.get = function () {
if (!caches.has(this)) {
caches.set(this, (0, _validator.createCache)(getter.bind(this)));
}
return (0, _validator.getValue)(caches.get(this));
};
}
};
_exports.cached = cached;
function throwCachedExtraneousParens() {
throw new Error('You attempted to use @cached(), which is not necessary nor supported. Remove the parentheses and you will be good to go!');
}
function throwCachedGetterOnlyError(key) {
throw new Error(`The @cached decorator must be applied to getters. '${key}' is not a getter.`);
}
function throwCachedInvalidArgsError(args = []) {
throw new Error(`You attempted to use @cached on with ${args.length > 1 ? 'arguments' : 'an argument'} ( @cached(${args.map(d => `'${d}'`).join(', ')}), which is not supported. Dependencies are automatically tracked, so you can just use ${'`@cached`'}`);
}
/**
Ember uses caching based on trackable values to avoid updating large portions
@ -13153,8 +13205,6 @@ define("@ember/-internals/metal/index", ["exports", "@ember/-internals/meta", "@
@public
*/
_exports.TrackedDescriptor = TrackedDescriptor;
});
define("@ember/-internals/overrides/index", ["exports"], function (_exports) {
"use strict";
@ -13545,6 +13595,7 @@ define("@ember/-internals/routing/lib/ext/controller", ["exports", "@ember/-inte
@method replaceRoute
@return {Transition} the transition object associated with this
attempted transition
@deprecated Use replaceWith from the Router service instead.
@public
*/
replaceRoute(...args) {
@ -13655,6 +13706,15 @@ define("@ember/-internals/routing/lib/location/api", ["exports", "@ember/debug"]
(true && !(Boolean(implementation)) && (0, _debug.assert)("Location.create: you must specify a 'implementation' option", Boolean(implementation)));
var implementationClass = this.implementations[implementation];
(true && !(Boolean(implementationClass)) && (0, _debug.assert)(`Location.create: ${implementation} is not a valid implementation`, Boolean(implementationClass)));
(true && !(false) && (0, _debug.deprecate)("Calling `create` on Location class is deprecated. Instead, use `container.lookup('location:my-location')` to lookup the location you need.", false, {
id: 'deprecate-auto-location',
until: '5.0.0',
url: 'https://emberjs.com/deprecations/v4.x#toc_deprecate-auto-location',
for: 'ember-source',
since: {
enabled: '4.1.0'
}
}));
return implementationClass.create(...arguments);
},
@ -14418,10 +14478,15 @@ define("@ember/-internals/routing/lib/location/none_location", ["exports", "@emb
this.implementation = 'none';
}
detect() {
initState() {
this._super(...arguments);
var {
rootURL
} = this;
} = this; // This assert doesn't have anything to do with state initialization,
// but we're hijacking this method since it's called after the route has
// set the rootURL property on its Location instance.
(true && !(rootURL.charAt(rootURL.length - 1) === '/') && (0, _debug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/'));
}
/**
@ -14661,7 +14726,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
```app/components/example.js
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export default class ExampleComponent extends Component {
@service router;
@ -14711,7 +14776,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
```app/components/example.js
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export default class extends Component {
@service router;
@action
@ -14805,7 +14870,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
```
```app/components/copy-link.js
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
import { action } from '@ember/object';
export default class CopyLinkComponent extends Component {
@service router;
@ -14827,7 +14892,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
```
```app/components/copy-link.js
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
import { action } from '@ember/object';
export default class CopyLinkComponent extends Component {
@service router;
@ -14867,7 +14932,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
In the following example, `isActive` will return `true` if the current route is `/posts`.
```app/components/posts.js
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export default class extends Component {
@service router;
displayComments() {
@ -14879,7 +14944,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
assuming the post has an id of 1:
```app/components/posts.js
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export default class extends Component {
@service router;
displayComments(post) {
@ -14958,7 +15023,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
application before transitioning to it.
```
import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export default class extends Component {
@service router;
path = '/';
@ -15008,7 +15073,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
_exports.default = RouterService;
if (false
if (true
/* EMBER_ROUTING_ROUTER_SERVICE_REFRESH */
) {
RouterService.reopen({
@ -15155,7 +15220,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
Usage example:
```app/components/header.js
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
import { notEmpty } from '@ember/object/computed';
export default class extends Component {
@service router;
@ -15919,7 +15984,7 @@ define("@ember/-internals/routing/lib/system/route-info", [], function () {
@public
*/
});
define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-internals/container", "@ember/-internals/metal", "@ember/-internals/owner", "@ember/-internals/runtime", "@ember/-internals/utils", "@ember/debug", "@ember/object/compat", "@ember/runloop", "router_js", "@ember/-internals/routing/lib/utils", "@ember/-internals/routing/lib/system/generate_controller"], function (_exports, _container, _metal, _owner, _runtime, _utils, _debug, _compat, _runloop, _router_js, _utils2, _generate_controller) {
define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-internals/container", "@ember/-internals/metal", "@ember/-internals/owner", "@ember/-internals/runtime", "@ember/-internals/utils", "@ember/debug", "@ember/object/compat", "@ember/runloop", "@ember/string", "router_js", "@ember/-internals/routing/lib/utils", "@ember/-internals/routing/lib/system/generate_controller"], function (_exports, _container, _metal, _owner, _runtime, _utils, _debug, _compat, _runloop, _string, _router_js, _utils2, _generate_controller) {
"use strict";
Object.defineProperty(_exports, "__esModule", {
@ -16180,7 +16245,8 @@ define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-intern
_optionsForQueryParam(qp) {
return (0, _metal.get)(this, `queryParams.${qp.urlKey}`) || (0, _metal.get)(this, `queryParams.${qp.prop}`) || {};
var queryParams = (0, _metal.get)(this, 'queryParams');
return (0, _metal.get)(queryParams, qp.urlKey) || (0, _metal.get)(queryParams, qp.prop) || queryParams[qp.urlKey] || queryParams[qp.prop] || {};
}
/**
A hook you can use to reset controller values either when the model
@ -16674,6 +16740,7 @@ define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-intern
@return {Transition} the transition object associated with this
attempted transition
@since 1.0.0
@deprecated Use replaceWith from the Router service instead.
@public
*/
@ -17210,7 +17277,7 @@ define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-intern
```
```app/routes/application.js
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export default class ApplicationRoute extends Route {
@service router
constructor() {
@ -17255,17 +17322,18 @@ define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-intern
get store() {
var owner = (0, _owner.getOwner)(this);
var routeName = this.routeName;
var namespace = (0, _metal.get)(this, '_router.namespace');
return {
find(name, value) {
var modelClass = owner.factoryFor(`model:${name}`);
(true && !(Boolean(modelClass)) && (0, _debug.assert)(`You used the dynamic segment \`${name}_id\` in your route ` + `\`${routeName}\` for which Ember requires you provide a ` + `data-loading implementation. Commonly, that is done by ` + `adding a model hook implementation on the route ` + `(\`model({${name}_id}) {\`) or by injecting an implemention of ` + `a data store: \`@service store;\`.`, Boolean(modelClass)));
(true && !(Boolean(modelClass)) && (0, _debug.assert)(`You used the dynamic segment ${name}_id in your route ${routeName}, but ${namespace}.${(0, _string.classify)(name)} did not exist and you did not override your route's \`model\` hook.`, Boolean(modelClass)));
if (!modelClass) {
return;
}
modelClass = modelClass.class;
(true && !(typeof modelClass.find === 'function') && (0, _debug.assert)(`You used the dynamic segment \`${name}_id\` in your route ` + `\`${routeName}\` for which Ember requires you provide a ` + `data-loading implementation. Commonly, that is done by ` + `adding a model hook implementation on the route ` + `(\`model({${name}_id}) {\`) or by injecting an implemention of ` + `a data store: \`@service store;\`.\n\n` + `Rarely, applications may attempt to use a legacy behavior where ` + `the model class (in this case \`${name}\`) is resolved and the ` + `\`find\` method on that class is invoked to load data. In this ` + `application, a model of \`${name}\` was found but it did not ` + `provide a \`find\` method. You should not add a \`find\` ` + `method to your model. Instead, please implement an appropriate ` + `\`model\` hook on the \`${routeName}\` route.`, typeof modelClass.find === 'function'));
(true && !(typeof modelClass.find === 'function') && (0, _debug.assert)(`${(0, _string.classify)(name)} has no method \`find\`.`, typeof modelClass.find === 'function'));
return modelClass.find(value);
}
@ -18610,6 +18678,18 @@ define("@ember/-internals/routing/lib/system/router", ["exports", "@ember/-inter
if ('string' === typeof location) {
var resolvedLocation = owner.lookup(`location:${location}`);
if (location === 'auto') {
(true && !(false) && (0, _debug.deprecate)("Router location 'auto' is deprecated. Most users will want to set `locationType` to 'history' in config/environment.js for no change in behavior. See deprecation docs for details.", false, {
id: 'deprecate-auto-location',
until: '5.0.0',
url: 'https://emberjs.com/deprecations/v4.x#toc_deprecate-auto-location',
for: 'ember-source',
since: {
enabled: '4.1.0'
}
}));
}
if (resolvedLocation !== undefined) {
location = (0, _metal.set)(this, 'location', resolvedLocation);
} else {
@ -18630,6 +18710,18 @@ define("@ember/-internals/routing/lib/system/router", ["exports", "@ember/-inter
if (typeof location.detect === 'function') {
if (this.location !== 'auto') {
(true && !(false) && (0, _debug.deprecate)('The `detect` method on the Location object is deprecated. If you need detection you can run your detection code in app.js, before setting the location type.', false, {
id: 'deprecate-auto-location',
until: '5.0.0',
url: 'https://emberjs.com/deprecations/v4.x#toc_deprecate-auto-location',
for: 'ember-source',
since: {
enabled: '4.1.0'
}
}));
}
location.detect();
} // ensure that initState is called AFTER the rootURL is set on
// the location instance
@ -29299,7 +29391,7 @@ define("@ember/application/lib/application", ["exports", "@ember/-internals/util
```
```app/routes/post.js
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
// An example of how the (hypothetical) service is used in routes.
export default class IndexRoute extends Route {
@service network;
@ -29563,7 +29655,7 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
value: true
});
_exports.isEnabled = isEnabled;
_exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = _exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = _exports.EMBER_STRICT_MODE = _exports.EMBER_GLIMMER_INVOKE_HELPER = _exports.EMBER_GLIMMER_HELPER_MANAGER = _exports.EMBER_NAMED_BLOCKS = _exports.EMBER_IMPROVED_INSTRUMENTATION = _exports.EMBER_LIBRARIES_ISREGISTERED = _exports.FEATURES = _exports.DEFAULT_FEATURES = void 0;
_exports.EMBER_CACHED = _exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = _exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = _exports.EMBER_STRICT_MODE = _exports.EMBER_GLIMMER_INVOKE_HELPER = _exports.EMBER_GLIMMER_HELPER_MANAGER = _exports.EMBER_NAMED_BLOCKS = _exports.EMBER_IMPROVED_INSTRUMENTATION = _exports.EMBER_LIBRARIES_ISREGISTERED = _exports.FEATURES = _exports.DEFAULT_FEATURES = void 0;
/**
Set `EmberENV.FEATURES` in your application's `config/environment.js` file
@ -29583,7 +29675,8 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
EMBER_GLIMMER_INVOKE_HELPER: true,
EMBER_STRICT_MODE: true,
EMBER_DYNAMIC_HELPERS_AND_MODIFIERS: true,
EMBER_ROUTING_ROUTER_SERVICE_REFRESH: false
EMBER_ROUTING_ROUTER_SERVICE_REFRESH: true,
EMBER_CACHED: true
};
/**
The hash of enabled Canary features. Add to this, any canary features
@ -29651,6 +29744,8 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
_exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = EMBER_DYNAMIC_HELPERS_AND_MODIFIERS;
var EMBER_ROUTING_ROUTER_SERVICE_REFRESH = featureValue(FEATURES.EMBER_ROUTING_ROUTER_SERVICE_REFRESH);
_exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = EMBER_ROUTING_ROUTER_SERVICE_REFRESH;
var EMBER_CACHED = featureValue(FEATURES.EMBER_CACHED);
_exports.EMBER_CACHED = EMBER_CACHED;
});
define("@ember/component/helper", ["exports", "@ember/-internals/glimmer"], function (_exports, _glimmer) {
"use strict";
@ -30680,7 +30775,9 @@ define("@ember/destroyable/index", ["exports", "@glimmer/destroyable"], function
```js
class CustomSelect extends Component {
constructor() {
constructor(...args) {
super(...args);
// obj is now a child of the component. When the component is destroyed,
// obj will also be destroyed, and have all of its destructors triggered.
this.obj = associateDestroyableChild(this, {});
@ -30811,12 +30908,15 @@ define("@ember/destroyable/index", ["exports", "@glimmer/destroyable"], function
parent is destroyed, the destructor function will be called.
```js
import Component from '@glimmer/component';
import { registerDestructor } from '@ember/destroyable';
class Modal extends Component {
@service resize;
constructor() {
constructor(...args) {
super(...args);
this.resize.register(this, this.layout);
registerDestructor(this, () => this.resize.unregister(this));
@ -30833,6 +30933,7 @@ define("@ember/destroyable/index", ["exports", "@glimmer/destroyable"], function
than creating a closure function per destroyable.
```js
import Component from '@glimmer/component';
import { registerDestructor } from '@ember/destroyable';
function unregisterResize(instance) {
@ -30842,7 +30943,9 @@ define("@ember/destroyable/index", ["exports", "@glimmer/destroyable"], function
class Modal extends Component {
@service resize;
constructor() {
constructor(...args) {
super(...args);
this.resize.register(this, this.layout);
registerDestructor(this, unregisterResize);
@ -30865,12 +30968,15 @@ define("@ember/destroyable/index", ["exports", "@glimmer/destroyable"], function
from the destroyable.
```js
import Component from '@glimmer/component';
import { registerDestructor, unregisterDestructor } from '@ember/destroyable';
class Modal extends Component {
@service modals;
constructor() {
constructor(...args) {
super(...args);
this.modals.add(this);
this.modalDestructor = registerDestructor(this, () => this.modals.remove(this));
@ -35467,6 +35573,7 @@ define("@ember/service/index", ["exports", "@ember/-internals/runtime", "@ember/
value: true
});
_exports.inject = inject;
_exports.service = service;
_exports.default = void 0;
/**
@ -35474,6 +35581,19 @@ define("@ember/service/index", ["exports", "@ember/-internals/runtime", "@ember/
@public
*/
/**
@method inject
@static
@since 1.10.0
@for @ember/service
@param {String} name (optional) name of the service to inject, defaults to
the property's name
@return {ComputedDecorator} injection decorator instance
@public
*/
function inject() {
return (0, _metal.inject)('service', ...arguments);
}
/**
Creates a property that lazily looks up a service in the container. There are
no restrictions as to what objects a service can be injected into.
@ -35482,7 +35602,7 @@ define("@ember/service/index", ["exports", "@ember/-internals/runtime", "@ember/
```app/routes/application.js
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export default class ApplicationRoute extends Route {
@service('auth') authManager;
@ -35497,7 +35617,7 @@ define("@ember/service/index", ["exports", "@ember/-internals/runtime", "@ember/
```app/routes/application.js
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export default Route.extend({
authManager: service('auth'),
@ -35512,16 +35632,18 @@ define("@ember/service/index", ["exports", "@ember/-internals/runtime", "@ember/
that looks up the `auth` service in the container, making it easily accessible
in the `model` hook.
@method inject
@method service
@static
@since 1.10.0
@since 4.1.0
@for @ember/service
@param {String} name (optional) name of the service to inject, defaults to
the property's name
@return {ComputedDecorator} injection decorator instance
@public
*/
function inject() {
function service() {
return (0, _metal.inject)('service', ...arguments);
}
/**
@ -49370,6 +49492,12 @@ define("@glimmer/tracking/index", ["exports", "@ember/-internals/metal"], functi
return _metal.tracked;
}
});
Object.defineProperty(_exports, "cached", {
enumerable: true,
get: function () {
return _metal.cached;
}
});
});
define("@glimmer/tracking/primitives/cache", ["exports", "@ember/-internals/metal"], function (_exports, _metal) {
"use strict";
@ -53400,6 +53528,7 @@ define("ember-testing/lib/adapters/qunit", ["exports", "@ember/-internals/utils"
asyncStart() {
if (typeof QUnit.stop === 'function') {
// very old QUnit version
// eslint-disable-next-line qunit/no-qunit-stop
QUnit.stop();
} else {
this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);
@ -54798,7 +54927,7 @@ define("ember/index", ["exports", "require", "@ember/-internals/environment", "@
(true && !(false) && (0, EmberDebug.assert)(`Injected properties must be created through helpers, see '${Object.keys(inject).map(k => `'inject.${k}'`).join(' or ')}'`));
};
Ember.inject.service = _service.inject;
Ember.inject.service = _service.service;
Ember.inject.controller = _controller.inject;
Ember.Array = _runtime.Array;
Ember.Comparable = _runtime.Comparable;
@ -55086,7 +55215,7 @@ define("ember/version", ["exports"], function (_exports) {
value: true
});
_exports.default = void 0;
var _default = "4.0.1";
var _default = "4.1.0";
_exports.default = _default;
});
define("route-recognizer", ["exports"], function (_exports) {