ember-source 7.3.0-alpha.3 → 7.3.0-alpha.5
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.
- package/build-metadata.json +3 -3
- package/dist/dev/packages/@ember/-internals/glimmer/index.js +2 -2
- package/dist/dev/packages/@ember/-internals/metal/index.js +8 -8
- package/dist/dev/packages/@ember/-internals/routing/index.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +2 -2
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +1 -1
- package/dist/dev/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
- package/dist/dev/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
- package/dist/dev/packages/@ember/application/index.js +3 -3
- package/dist/dev/packages/@ember/application/instance.js +5 -5
- package/dist/dev/packages/@ember/application/namespace.js +1 -1
- package/dist/dev/packages/@ember/array/index.js +2 -2
- package/dist/dev/packages/@ember/array/lib/is-array.js +1 -1
- package/dist/dev/packages/@ember/array/proxy.js +2 -2
- package/dist/dev/packages/@ember/component/index.js +2 -2
- package/dist/dev/packages/@ember/controller/index.js +1 -1
- package/dist/dev/packages/@ember/debug/data-adapter.js +1 -1
- package/dist/dev/packages/@ember/engine/index.js +3 -3
- package/dist/dev/packages/@ember/object/computed.js +1 -1
- package/dist/dev/packages/@ember/object/core.js +1 -1
- package/dist/dev/packages/@ember/object/index.js +4 -4
- package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +3 -3
- package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +1 -1
- package/dist/dev/packages/@ember/object/observable.js +4 -4
- package/dist/dev/packages/@ember/object/promise-proxy-mixin.js +2 -2
- package/dist/dev/packages/@ember/renderer/index.js +1 -1
- package/dist/dev/packages/@ember/routing/-internals.js +1 -1
- package/dist/dev/packages/@ember/routing/history-location.js +2 -2
- package/dist/dev/packages/@ember/routing/lib/generate_controller.js +1 -1
- package/dist/dev/packages/@ember/routing/lib/location-utils.js +14 -11
- package/dist/dev/packages/@ember/routing/lib/routing-service.js +1 -1
- package/dist/dev/packages/@ember/routing/lib/utils.js +1 -1
- package/dist/dev/packages/@ember/routing/none-location.js +2 -1
- package/dist/dev/packages/@ember/routing/route.js +15 -4
- package/dist/dev/packages/@ember/routing/router-service.js +1 -1
- package/dist/dev/packages/@ember/routing/router.js +2 -2
- package/dist/dev/packages/@ember/utils/lib/is_empty.js +1 -1
- package/dist/dev/packages/ember/version.js +1 -1
- package/dist/dev/packages/router_js/index.js +15 -7
- package/dist/dev/packages/shared-chunks/{alias-CT_thCad.js → alias-3DBxvoim.js} +2 -2
- package/dist/dev/packages/shared-chunks/{curly-DGUCLOud.js → curly-BbL6STF2.js} +1 -1
- package/dist/dev/packages/shared-chunks/{get_properties-Cm2sWt5f.js → get_properties-BlyZny5J.js} +1 -1
- package/dist/dev/packages/shared-chunks/{index-D1AjYv31.js → index-Czn34wUZ.js} +2 -2
- package/dist/dev/packages/shared-chunks/{libraries-DwffpMGE.js → libraries-BrYKoqoK.js} +1 -1
- package/dist/dev/packages/shared-chunks/{outlet-CHFL7tun.js → outlet-B4qORyui.js} +1 -1
- package/dist/dev/packages/shared-chunks/{property_get-CRP7MFz_.js → property_get-DXwpgTe7.js} +1 -1
- package/dist/dev/packages/shared-chunks/{property_set-CVlVgdor.js → property_set-DezUwDX4.js} +1 -1
- package/dist/dev/packages/shared-chunks/{set_properties-CEUT_EJn.js → set_properties-BzM_irwA.js} +1 -1
- package/dist/dev/packages/shared-chunks/{setup-registry-DQ3c4Juo.js → setup-registry-h519ZsHS.js} +3 -3
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +2 -2
- package/dist/prod/packages/@ember/-internals/metal/index.js +8 -8
- package/dist/prod/packages/@ember/-internals/routing/index.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +2 -2
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +1 -1
- package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
- package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
- package/dist/prod/packages/@ember/application/index.js +3 -3
- package/dist/prod/packages/@ember/application/instance.js +5 -5
- package/dist/prod/packages/@ember/application/namespace.js +1 -1
- package/dist/prod/packages/@ember/array/index.js +2 -2
- package/dist/prod/packages/@ember/array/lib/is-array.js +1 -1
- package/dist/prod/packages/@ember/array/proxy.js +2 -2
- package/dist/prod/packages/@ember/component/index.js +2 -2
- package/dist/prod/packages/@ember/controller/index.js +1 -1
- package/dist/prod/packages/@ember/debug/data-adapter.js +1 -1
- package/dist/prod/packages/@ember/engine/index.js +3 -3
- package/dist/prod/packages/@ember/object/computed.js +1 -1
- package/dist/prod/packages/@ember/object/core.js +1 -1
- package/dist/prod/packages/@ember/object/index.js +4 -4
- package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +3 -3
- package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +1 -1
- package/dist/prod/packages/@ember/object/observable.js +4 -4
- package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +2 -2
- package/dist/prod/packages/@ember/renderer/index.js +1 -1
- package/dist/prod/packages/@ember/routing/history-location.js +2 -2
- package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -1
- package/dist/prod/packages/@ember/routing/lib/location-utils.js +14 -11
- package/dist/prod/packages/@ember/routing/lib/routing-service.js +1 -1
- package/dist/prod/packages/@ember/routing/lib/utils.js +1 -1
- package/dist/prod/packages/@ember/routing/none-location.js +2 -1
- package/dist/prod/packages/@ember/routing/route.js +15 -4
- package/dist/prod/packages/@ember/routing/router-service.js +1 -1
- package/dist/prod/packages/@ember/routing/router.js +2 -2
- package/dist/prod/packages/@ember/utils/lib/is_empty.js +1 -1
- package/dist/prod/packages/ember/version.js +1 -1
- package/dist/prod/packages/router_js/index.js +15 -7
- package/dist/prod/packages/shared-chunks/{alias-CHHuE0LE.js → alias-IFzw6sv_.js} +2 -2
- package/dist/prod/packages/shared-chunks/{curly-a6DP7r87.js → curly-CU2jYOtm.js} +1 -1
- package/dist/prod/packages/shared-chunks/{get_properties-Dg3xFpiS.js → get_properties-CkJ_mhLz.js} +1 -1
- package/dist/prod/packages/shared-chunks/{index-CvQQ6l11.js → index-XmtQRWbX.js} +2 -2
- package/dist/prod/packages/shared-chunks/{libraries-DBql0hdn.js → libraries-Dx5DiBJv.js} +1 -1
- package/dist/prod/packages/shared-chunks/{outlet--lIm3q7t.js → outlet-CsNMfeOj.js} +1 -1
- package/dist/prod/packages/shared-chunks/{property_get-DAKgbeJX.js → property_get-DuDs6rLg.js} +1 -1
- package/dist/prod/packages/shared-chunks/{property_set-CkLe4ht8.js → property_set-BmAQ0MGK.js} +1 -1
- package/dist/prod/packages/shared-chunks/{set_properties-Cs3rVemD.js → set_properties-DYiBfzdk.js} +1 -1
- package/dist/prod/packages/shared-chunks/{setup-registry-kOGgOucf.js → setup-registry-DFSQHIUs.js} +3 -3
- package/docs/data.json +20 -21
- package/package.json +4 -1
- package/types/stable/@ember/routing/lib/location-utils.d.ts +10 -7
|
@@ -851,14 +851,22 @@ class Router {
|
|
|
851
851
|
if (routeInfosEqual(newState.routeInfos, oldState.routeInfos)) {
|
|
852
852
|
// This is a no-op transition. See if query params changed.
|
|
853
853
|
if (queryParamChangelist) {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
854
|
+
if (!wasTransitioning) {
|
|
855
|
+
// Not in an active transition — use the QP-only fast path
|
|
856
|
+
// which updates the URL without re-resolving route hooks.
|
|
857
|
+
let newTransition = this.queryParamsTransition(queryParamChangelist, wasTransitioning, oldState, newState);
|
|
858
|
+
newTransition.queryParamsOnly = true;
|
|
859
|
+
// SAFETY: The returned OpaqueTransition should actually be this.
|
|
860
|
+
return newTransition;
|
|
861
|
+
}
|
|
862
|
+
// When a query-param-only transition is started during an active
|
|
863
|
+
// transition (for example, from beforeModel/afterModel), avoid the
|
|
864
|
+
// QP-only fast path and intentionally fall through to the normal
|
|
865
|
+
// transition path so it can abort and replace the active transition.
|
|
866
|
+
} else {
|
|
867
|
+
// No-op. No need to create a new transition.
|
|
868
|
+
return this.activeTransition || new Transition(this, undefined, undefined);
|
|
858
869
|
}
|
|
859
|
-
|
|
860
|
-
// No-op. No need to create a new transition.
|
|
861
|
-
return this.activeTransition || new Transition(this, undefined, undefined);
|
|
862
870
|
}
|
|
863
871
|
if (isIntermediate) {
|
|
864
872
|
let transition = new Transition(this, undefined, newState);
|
|
@@ -5,8 +5,8 @@ import { a as tagMetaFor, t as tagFor } from './meta-BJtIZDir.js';
|
|
|
5
5
|
import { C as CHAIN_PASS_THROUGH, g as getChainTagsForKey, f as finishLazyChains } from './chain-tags-B2J7DsxO.js';
|
|
6
6
|
import { m as makeComputedDecorator, b as descriptorForDecorator, c as ComputedDescriptor } from './decorator-9ikVwsjY.js';
|
|
7
7
|
import { d as defineProperty } from './computed-BNdMwGhH.js';
|
|
8
|
-
import { g as get } from './property_get-
|
|
9
|
-
import { s as set } from './property_set-
|
|
8
|
+
import { g as get } from './property_get-DuDs6rLg.js';
|
|
9
|
+
import { s as set } from './property_set-BmAQ0MGK.js';
|
|
10
10
|
|
|
11
11
|
function alias(altKey) {
|
|
12
12
|
return makeComputedDecorator(new AliasedProperty(altKey), AliasDecoratorImpl);
|
|
@@ -6,7 +6,7 @@ import { c as createComputeRef, v as valueForRef, e as createPrimitiveRef, f as
|
|
|
6
6
|
import { f as reifyPositional } from './arguments-BzAkZVBa.js';
|
|
7
7
|
import { E as EMPTY_ARRAY } from './array-utils-CZQxrdD3.js';
|
|
8
8
|
import { a as valueForTag, p as beginUntrackFrame, w as endUntrackFrame, o as beginTrackFrame, s as endTrackFrame, c as consumeTag, v as validateTag } from './cache-CofLhaS4.js';
|
|
9
|
-
import { g as get } from './property_get-
|
|
9
|
+
import { g as get } from './property_get-DuDs6rLg.js';
|
|
10
10
|
import { dasherize } from '../@ember/-internals/string/index.js';
|
|
11
11
|
import { registerDestructor } from '../@glimmer/destroyable/index.js';
|
|
12
12
|
import { MUTABLE_CELL } from '../@ember/-internals/views/lib/compat/attrs.js';
|
|
@@ -8,8 +8,8 @@ import { R as RuntimeOpImpl } from './program-BAh__OXZ.js';
|
|
|
8
8
|
import { c as clientBuilder } from './api-DzOa0Acr.js';
|
|
9
9
|
import { g as runtimeOptions, i as inTransaction, r as renderComponent$1 } from './render-Bf7GviCY.js';
|
|
10
10
|
import { c as consumeTag, f as isTracking, a as valueForTag, k as CURRENT_TAG, v as validateTag } from './cache-CofLhaS4.js';
|
|
11
|
-
import { g as get$1, a as _getProp } from './property_get-
|
|
12
|
-
import { _ as _setProp, s as set } from './property_set-
|
|
11
|
+
import { g as get$1, a as _getProp } from './property_get-DuDs6rLg.js';
|
|
12
|
+
import { _ as _setProp, s as set } from './property_set-BmAQ0MGK.js';
|
|
13
13
|
import './guid-Cbq2sNV_.js';
|
|
14
14
|
import setGlobalContext from '../@glimmer/global-context/index.js';
|
|
15
15
|
import { a as tagForProperty, t as tagForObject, o as objectAt } from './chain-tags-B2J7DsxO.js';
|
|
@@ -2,7 +2,7 @@ import { _instrumentStart } from '../@ember/instrumentation/index.js';
|
|
|
2
2
|
import { c as capabilityFlagsFrom } from './capabilities-BuVYh-vx.js';
|
|
3
3
|
import { v as valueForRef, U as UNDEFINED_REFERENCE } from './reference-CG0yPgLy.js';
|
|
4
4
|
import { E as EMPTY_ARGS } from './arguments-BzAkZVBa.js';
|
|
5
|
-
import { u as unwrapTemplate } from './curly-
|
|
5
|
+
import { u as unwrapTemplate } from './curly-CU2jYOtm.js';
|
|
6
6
|
import { t as templateFactory } from './index-Bf53M8eS.js';
|
|
7
7
|
|
|
8
8
|
function instrumentationPayload(def) {
|
package/dist/prod/packages/shared-chunks/{property_get-DAKgbeJX.js → property_get-DuDs6rLg.js}
RENAMED
|
@@ -86,7 +86,7 @@ function _getPath(obj, path, forSet) {
|
|
|
86
86
|
if (obj === undefined || obj === null || obj.isDestroyed) {
|
|
87
87
|
return undefined;
|
|
88
88
|
}
|
|
89
|
-
if (forSet && (part === '__proto__' || part === 'constructor')) {
|
|
89
|
+
if (forSet && (part === '__proto__' || part === 'constructor' || part === 'prototype')) {
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
obj = _getProp(obj, part);
|
package/dist/prod/packages/shared-chunks/{property_set-CkLe4ht8.js → property_set-BmAQ0MGK.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as lookupDescriptor } from './lookup-descriptor-CwcVgaLv.js';
|
|
2
2
|
import { C as COMPUTED_SETTERS } from './decorator-9ikVwsjY.js';
|
|
3
|
-
import { i as isPath, _ as _getPath } from './property_get-
|
|
3
|
+
import { i as isPath, _ as _getPath } from './property_get-DuDs6rLg.js';
|
|
4
4
|
import { n as notifyPropertyChange } from './computed-BNdMwGhH.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/prod/packages/shared-chunks/{setup-registry-kOGgOucf.js → setup-registry-DFSQHIUs.js}
RENAMED
|
@@ -12,13 +12,13 @@ import { associateDestroyableChild, isDestroyed, destroy, isDestroying } from '.
|
|
|
12
12
|
import { a as createConstRef, v as valueForRef, c as createComputeRef, g as childRefFromParts, u as updateRef, U as UNDEFINED_REFERENCE } from './reference-CG0yPgLy.js';
|
|
13
13
|
import { c as createCapturedArgs, b as EMPTY_POSITIONAL, d as curry } from './arguments-BzAkZVBa.js';
|
|
14
14
|
import { d as dict } from './collections-GpG8lT2g.js';
|
|
15
|
-
import { C as CurlyComponentManager, i as initialRenderInstrumentDetails, a as ComponentStateBucket, D as DIRTY_TAG, u as unwrapTemplate, B as BOUNDS } from './curly-
|
|
16
|
-
import { O as OutletComponent, c as createRootOutlet } from './outlet
|
|
15
|
+
import { C as CurlyComponentManager, i as initialRenderInstrumentDetails, a as ComponentStateBucket, D as DIRTY_TAG, u as unwrapTemplate, B as BOUNDS } from './curly-CU2jYOtm.js';
|
|
16
|
+
import { O as OutletComponent, c as createRootOutlet } from './outlet-CsNMfeOj.js';
|
|
17
17
|
import { g as getFactoryFor } from './container-BYOnjnwz.js';
|
|
18
18
|
import { _instrumentStart } from '../@ember/instrumentation/index.js';
|
|
19
19
|
import { c as capabilityFlagsFrom } from './capabilities-BuVYh-vx.js';
|
|
20
20
|
import { C as CONSTANT_TAG, c as consumeTag, D as DIRTY_TAG$1, r as createTag } from './cache-CofLhaS4.js';
|
|
21
|
-
import { R as ResolverImpl, B as BaseRenderer, e as errorLoopTransaction } from './index-
|
|
21
|
+
import { R as ResolverImpl, B as BaseRenderer, e as errorLoopTransaction } from './index-XmtQRWbX.js';
|
|
22
22
|
import { generateControllerFactory } from '../@ember/routing/lib/generate_controller.js';
|
|
23
23
|
import { i as internalHelper } from './internal-helper-Bz1lpDXr.js';
|
|
24
24
|
import { c as hasInternalComponentManager } from './api-DlJKfm_f.js';
|
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": "7.3.0-alpha.
|
|
6
|
+
"version": "7.3.0-alpha.5"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -3277,7 +3277,7 @@
|
|
|
3277
3277
|
"namespaces": {},
|
|
3278
3278
|
"tag": "module",
|
|
3279
3279
|
"file": "packages/@ember/routing/none-location.ts",
|
|
3280
|
-
"line":
|
|
3280
|
+
"line": 10
|
|
3281
3281
|
},
|
|
3282
3282
|
"@ember/routing/route-info": {
|
|
3283
3283
|
"name": "@ember/routing/route-info",
|
|
@@ -4959,7 +4959,7 @@
|
|
|
4959
4959
|
"module": "@ember/routing/none-location",
|
|
4960
4960
|
"namespace": "",
|
|
4961
4961
|
"file": "packages/@ember/routing/none-location.ts",
|
|
4962
|
-
"line":
|
|
4962
|
+
"line": 10,
|
|
4963
4963
|
"description": "NoneLocation does not interact with the browser. It is useful for\ntesting, or when you need to manage state with your Router, but temporarily\ndon't want it to muck with the URL (for example when you embed your\napplication in a larger page).\n\nUsing `NoneLocation` causes Ember to not store the applications URL state\nin the actual URL. This is generally used for testing purposes.",
|
|
4964
4964
|
"extends": "EmberObject",
|
|
4965
4965
|
"access": "protected",
|
|
@@ -16889,32 +16889,31 @@
|
|
|
16889
16889
|
"file": "packages/@ember/routing/lib/location-utils.ts",
|
|
16890
16890
|
"line": 1,
|
|
16891
16891
|
"access": "private",
|
|
16892
|
-
"tagname": "
|
|
16892
|
+
"tagname": "Escapes any regular-expression metacharacters in `str` so it can be safely\ninterpolated into a `RegExp` and matched as a literal.\n\nTODO: delete this in favor of `RegExp.escape` once our minimum supported\nbrowsers all include it (https://caniuse.com/mdn-javascript_builtins_regexp_escape).",
|
|
16893
16893
|
"class": "RoutingService",
|
|
16894
16894
|
"module": "@ember/routing"
|
|
16895
16895
|
},
|
|
16896
16896
|
{
|
|
16897
16897
|
"file": "packages/@ember/routing/lib/location-utils.ts",
|
|
16898
|
-
"line":
|
|
16898
|
+
"line": 14,
|
|
16899
16899
|
"access": "private",
|
|
16900
|
-
"tagname": "Returns the current `location.
|
|
16900
|
+
"tagname": "Returns the current `location.pathname`, ensuring it has a leading slash.",
|
|
16901
16901
|
"class": "RoutingService",
|
|
16902
16902
|
"module": "@ember/routing"
|
|
16903
16903
|
},
|
|
16904
16904
|
{
|
|
16905
16905
|
"file": "packages/@ember/routing/lib/location-utils.ts",
|
|
16906
|
-
"line":
|
|
16906
|
+
"line": 28,
|
|
16907
16907
|
"access": "private",
|
|
16908
|
-
"tagname": "Returns the
|
|
16908
|
+
"tagname": "Returns the current `location.search`.",
|
|
16909
16909
|
"class": "RoutingService",
|
|
16910
16910
|
"module": "@ember/routing"
|
|
16911
16911
|
},
|
|
16912
16912
|
{
|
|
16913
16913
|
"file": "packages/@ember/routing/lib/location-utils.ts",
|
|
16914
|
-
"line":
|
|
16915
|
-
"description": "Replaces the current location, making sure we explicitly include the origin\nto prevent redirecting to a different origin.",
|
|
16914
|
+
"line": 37,
|
|
16916
16915
|
"access": "private",
|
|
16917
|
-
"tagname": "",
|
|
16916
|
+
"tagname": "Returns the hash or empty string",
|
|
16918
16917
|
"class": "RoutingService",
|
|
16919
16918
|
"module": "@ember/routing"
|
|
16920
16919
|
},
|
|
@@ -17290,7 +17289,7 @@
|
|
|
17290
17289
|
},
|
|
17291
17290
|
{
|
|
17292
17291
|
"file": "packages/@ember/routing/none-location.ts",
|
|
17293
|
-
"line":
|
|
17292
|
+
"line": 29,
|
|
17294
17293
|
"description": "Will be pre-pended to path.",
|
|
17295
17294
|
"access": "private",
|
|
17296
17295
|
"tagname": "",
|
|
@@ -17302,7 +17301,7 @@
|
|
|
17302
17301
|
},
|
|
17303
17302
|
{
|
|
17304
17303
|
"file": "packages/@ember/routing/none-location.ts",
|
|
17305
|
-
"line":
|
|
17304
|
+
"line": 53,
|
|
17306
17305
|
"description": "Returns the current path without `rootURL`.",
|
|
17307
17306
|
"access": "private",
|
|
17308
17307
|
"tagname": "",
|
|
@@ -17317,7 +17316,7 @@
|
|
|
17317
17316
|
},
|
|
17318
17317
|
{
|
|
17319
17318
|
"file": "packages/@ember/routing/none-location.ts",
|
|
17320
|
-
"line":
|
|
17319
|
+
"line": 70,
|
|
17321
17320
|
"description": "Set the path and remembers what was set. Using this method\nto change the path will not invoke the `updateURL` callback.",
|
|
17322
17321
|
"access": "private",
|
|
17323
17322
|
"tagname": "",
|
|
@@ -17335,7 +17334,7 @@
|
|
|
17335
17334
|
},
|
|
17336
17335
|
{
|
|
17337
17336
|
"file": "packages/@ember/routing/none-location.ts",
|
|
17338
|
-
"line":
|
|
17337
|
+
"line": 82,
|
|
17339
17338
|
"description": "Register a callback to be invoked when the path changes. These\ncallbacks will execute when the user presses the back or forward\nbutton, but not after `setURL` is invoked.",
|
|
17340
17339
|
"access": "private",
|
|
17341
17340
|
"tagname": "",
|
|
@@ -17353,7 +17352,7 @@
|
|
|
17353
17352
|
},
|
|
17354
17353
|
{
|
|
17355
17354
|
"file": "packages/@ember/routing/none-location.ts",
|
|
17356
|
-
"line":
|
|
17355
|
+
"line": 95,
|
|
17357
17356
|
"description": "Sets the path and calls the `updateURL` callback.",
|
|
17358
17357
|
"access": "private",
|
|
17359
17358
|
"tagname": "",
|
|
@@ -17371,7 +17370,7 @@
|
|
|
17371
17370
|
},
|
|
17372
17371
|
{
|
|
17373
17372
|
"file": "packages/@ember/routing/none-location.ts",
|
|
17374
|
-
"line":
|
|
17373
|
+
"line": 109,
|
|
17375
17374
|
"description": "Given a URL, formats it to be placed into the page as part\nof an element's `href` attribute.",
|
|
17376
17375
|
"access": "private",
|
|
17377
17376
|
"tagname": "",
|
|
@@ -25525,15 +25524,15 @@
|
|
|
25525
25524
|
},
|
|
25526
25525
|
{
|
|
25527
25526
|
"message": "Missing item type",
|
|
25528
|
-
"line": " packages/@ember/routing/lib/location-utils.ts:
|
|
25527
|
+
"line": " packages/@ember/routing/lib/location-utils.ts:14"
|
|
25529
25528
|
},
|
|
25530
25529
|
{
|
|
25531
25530
|
"message": "Missing item type",
|
|
25532
|
-
"line": " packages/@ember/routing/lib/location-utils.ts:
|
|
25531
|
+
"line": " packages/@ember/routing/lib/location-utils.ts:28"
|
|
25533
25532
|
},
|
|
25534
25533
|
{
|
|
25535
|
-
"message": "Missing item type
|
|
25536
|
-
"line": " packages/@ember/routing/lib/location-utils.ts:
|
|
25534
|
+
"message": "Missing item type",
|
|
25535
|
+
"line": " packages/@ember/routing/lib/location-utils.ts:37"
|
|
25537
25536
|
},
|
|
25538
25537
|
{
|
|
25539
25538
|
"message": "Missing item type\ntriggers the callback when the URL changes.",
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "7.3.0-alpha.
|
|
3
|
+
"version": "7.3.0-alpha.5",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"./dist/*/packages/ember-testing/index.js"
|
|
8
|
+
],
|
|
6
9
|
"keywords": [
|
|
7
10
|
"ember-addon"
|
|
8
11
|
],
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
declare module '@ember/routing/lib/location-utils' {
|
|
2
|
+
/**
|
|
3
|
+
@private
|
|
4
|
+
|
|
5
|
+
Escapes any regular-expression metacharacters in `str` so it can be safely
|
|
6
|
+
interpolated into a `RegExp` and matched as a literal.
|
|
7
|
+
|
|
8
|
+
TODO: delete this in favor of `RegExp.escape` once our minimum supported
|
|
9
|
+
browsers all include it (https://caniuse.com/mdn-javascript_builtins_regexp_escape).
|
|
10
|
+
*/
|
|
11
|
+
export function escapeRegExp(str: string): string;
|
|
2
12
|
/**
|
|
3
13
|
@private
|
|
4
14
|
|
|
@@ -18,11 +28,4 @@ declare module '@ember/routing/lib/location-utils' {
|
|
|
18
28
|
*/
|
|
19
29
|
export function getHash(location: Location): string;
|
|
20
30
|
export function getFullPath(location: Location): string;
|
|
21
|
-
/**
|
|
22
|
-
Replaces the current location, making sure we explicitly include the origin
|
|
23
|
-
to prevent redirecting to a different origin.
|
|
24
|
-
|
|
25
|
-
@private
|
|
26
|
-
*/
|
|
27
|
-
export function replacePath(location: Location, path: string): void;
|
|
28
31
|
}
|