ember-source 6.12.0-beta.2 → 6.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.
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -2
- package/dist/ember-template-compiler.js.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember.debug.js +3 -5
- package/dist/ember.debug.js.map +1 -1
- package/dist/ember.prod.js +3 -5
- package/dist/ember.prod.js.map +1 -1
- package/dist/packages/@ember/application/instance.js +1 -3
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +11 -11
- package/lib/index.js +21 -21
- package/package.json +4 -7
- package/types/stable/@ember/application/instance.d.ts +1 -1
|
@@ -237,8 +237,6 @@ class ApplicationInstance extends EngineInstance {
|
|
|
237
237
|
let handleTransitionReject = error => {
|
|
238
238
|
if (error.error && error.error instanceof Error) {
|
|
239
239
|
throw error.error;
|
|
240
|
-
} else if (error.name === 'TransitionAborted' && router._routerMicrolib.activeTransition) {
|
|
241
|
-
return router._routerMicrolib.activeTransition.then(handleTransitionResolve, handleTransitionReject);
|
|
242
240
|
} else if (error.name === 'TransitionAborted') {
|
|
243
241
|
throw new Error(error.message);
|
|
244
242
|
} else {
|
|
@@ -250,7 +248,7 @@ class ApplicationInstance extends EngineInstance {
|
|
|
250
248
|
location.setURL(url);
|
|
251
249
|
|
|
252
250
|
// getURL returns the set url with the rootURL stripped off
|
|
253
|
-
return router.handleURL(location.getURL()).then(handleTransitionResolve, handleTransitionReject);
|
|
251
|
+
return router.handleURL(location.getURL()).followRedirects().then(handleTransitionResolve, handleTransitionReject);
|
|
254
252
|
}
|
|
255
253
|
willDestroy() {
|
|
256
254
|
super.willDestroy();
|
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": "6.12.0
|
|
6
|
+
"version": "6.12.0"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -2895,7 +2895,7 @@
|
|
|
2895
2895
|
},
|
|
2896
2896
|
"tag": "module",
|
|
2897
2897
|
"file": "packages/@ember/application/instance.ts",
|
|
2898
|
-
"line":
|
|
2898
|
+
"line": 311
|
|
2899
2899
|
},
|
|
2900
2900
|
"@ember/application/namespace": {
|
|
2901
2901
|
"name": "@ember/application/namespace",
|
|
@@ -4342,7 +4342,7 @@
|
|
|
4342
4342
|
"module": "@ember/application",
|
|
4343
4343
|
"namespace": "ApplicationInstance",
|
|
4344
4344
|
"file": "packages/@ember/application/instance.ts",
|
|
4345
|
-
"line":
|
|
4345
|
+
"line": 311,
|
|
4346
4346
|
"description": "A list of boot-time configuration options for customizing the behavior of\nan `ApplicationInstance`.\n\nThis is an interface class that exists purely to document the available\noptions; you do not need to construct it manually. Simply pass a regular\nJavaScript object containing the desired options into methods that require\none of these options object:\n\n```javascript\nMyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n```\n\nNot all combinations of the supported options are valid. See the documentation\non `Application#visit` for the supported configurations.\n\nInternal, experimental or otherwise unstable flags are marked as private.",
|
|
4347
4347
|
"access": "public",
|
|
4348
4348
|
"tagname": ""
|
|
@@ -10855,7 +10855,7 @@
|
|
|
10855
10855
|
},
|
|
10856
10856
|
{
|
|
10857
10857
|
"file": "packages/@ember/application/instance.ts",
|
|
10858
|
-
"line":
|
|
10858
|
+
"line": 291,
|
|
10859
10859
|
"access": "private",
|
|
10860
10860
|
"tagname": "",
|
|
10861
10861
|
"itemtype": "method",
|
|
@@ -10877,7 +10877,7 @@
|
|
|
10877
10877
|
},
|
|
10878
10878
|
{
|
|
10879
10879
|
"file": "packages/@ember/application/instance.ts",
|
|
10880
|
-
"line":
|
|
10880
|
+
"line": 334,
|
|
10881
10881
|
"description": "Interactive mode: whether we need to set up event delegation and invoke\nlifecycle callbacks on Components.",
|
|
10882
10882
|
"itemtype": "property",
|
|
10883
10883
|
"name": "isInteractive",
|
|
@@ -10891,7 +10891,7 @@
|
|
|
10891
10891
|
},
|
|
10892
10892
|
{
|
|
10893
10893
|
"file": "packages/@ember/application/instance.ts",
|
|
10894
|
-
"line":
|
|
10894
|
+
"line": 345,
|
|
10895
10895
|
"itemtype": "property",
|
|
10896
10896
|
"name": "_renderMode",
|
|
10897
10897
|
"type": "string",
|
|
@@ -10904,7 +10904,7 @@
|
|
|
10904
10904
|
},
|
|
10905
10905
|
{
|
|
10906
10906
|
"file": "packages/@ember/application/instance.ts",
|
|
10907
|
-
"line":
|
|
10907
|
+
"line": 353,
|
|
10908
10908
|
"description": "Run in a full browser environment.\n\nWhen this flag is set to `false`, it will disable most browser-specific\nand interactive features. Specifically:\n\n* It does not use `jQuery` to append the root view; the `rootElement`\n (either specified as a subsequent option or on the application itself)\n must already be an `Element` in the given `document` (as opposed to a\n string selector).\n\n* It does not set up an `EventDispatcher`.\n\n* It does not run any `Component` lifecycle hooks (such as `didInsertElement`).\n\n* It sets the `location` option to `\"none\"`. (If you would like to use\n the location adapter specified in the app's router instead, you can also\n specify `{ location: null }` to specifically opt-out.)",
|
|
10909
10909
|
"itemtype": "property",
|
|
10910
10910
|
"name": "isBrowser",
|
|
@@ -10918,7 +10918,7 @@
|
|
|
10918
10918
|
},
|
|
10919
10919
|
{
|
|
10920
10920
|
"file": "packages/@ember/application/instance.ts",
|
|
10921
|
-
"line":
|
|
10921
|
+
"line": 379,
|
|
10922
10922
|
"description": "If present, overrides the router's `location` property with this\nvalue. This is useful for environments where trying to modify the\nURL would be inappropriate.",
|
|
10923
10923
|
"itemtype": "property",
|
|
10924
10924
|
"name": "location",
|
|
@@ -10932,7 +10932,7 @@
|
|
|
10932
10932
|
},
|
|
10933
10933
|
{
|
|
10934
10934
|
"file": "packages/@ember/application/instance.ts",
|
|
10935
|
-
"line":
|
|
10935
|
+
"line": 391,
|
|
10936
10936
|
"description": "Disable rendering completely.\n\nWhen this flag is set to `false`, it will disable the entire rendering\npipeline. Essentially, this puts the app into \"routing-only\" mode. No\ntemplates will be rendered, and no Components will be created.",
|
|
10937
10937
|
"itemtype": "property",
|
|
10938
10938
|
"name": "shouldRender",
|
|
@@ -10946,7 +10946,7 @@
|
|
|
10946
10946
|
},
|
|
10947
10947
|
{
|
|
10948
10948
|
"file": "packages/@ember/application/instance.ts",
|
|
10949
|
-
"line":
|
|
10949
|
+
"line": 405,
|
|
10950
10950
|
"description": "If present, render into the given `Document` object instead of the\nglobal `window.document` object.\n\nIn practice, this is only useful in non-browser environment or in\nnon-interactive mode, because Ember's `jQuery` dependency is\nimplicitly bound to the current document, causing event delegation\nto not work properly when the app is rendered into a foreign\ndocument object (such as an iframe's `contentDocument`).\n\nIn non-browser mode, this could be a \"`Document`-like\" object as\nEmber only interact with a small subset of the DOM API in non-\ninteractive mode. While the exact requirements have not yet been\nformalized, the `SimpleDOM` library's implementation is known to\nwork.",
|
|
10951
10951
|
"itemtype": "property",
|
|
10952
10952
|
"name": "document",
|
|
@@ -10960,7 +10960,7 @@
|
|
|
10960
10960
|
},
|
|
10961
10961
|
{
|
|
10962
10962
|
"file": "packages/@ember/application/instance.ts",
|
|
10963
|
-
"line":
|
|
10963
|
+
"line": 428,
|
|
10964
10964
|
"description": "If present, overrides the application's `rootElement` property on\nthe instance. This is useful for testing environment, where you\nmight want to append the root view to a fixture area.\n\nIn non-browser mode, because Ember does not have access to jQuery,\nthis options must be specified as a DOM `Element` object instead of\na selector string.\n\nSee the documentation on `Application`'s `rootElement` for\ndetails.",
|
|
10965
10965
|
"itemtype": "property",
|
|
10966
10966
|
"name": "rootElement",
|
package/lib/index.js
CHANGED
|
@@ -175,31 +175,31 @@ const shim = addonV1Shim(path.join(__dirname, '..'), {
|
|
|
175
175
|
'./dist/packages/@ember/utils/lib/is_present.js',
|
|
176
176
|
'./dist/packages/@ember/utils/lib/type-of.js',
|
|
177
177
|
'./dist/packages/@ember/version/index.js',
|
|
178
|
-
'./dist/packages/@glimmer/destroyable.js',
|
|
179
|
-
'./dist/packages/@glimmer/encoder.js',
|
|
180
|
-
'./dist/packages/@glimmer/env.js',
|
|
181
|
-
'./dist/packages/@glimmer/global-context.js',
|
|
182
|
-
'./dist/packages/@glimmer/manager.js',
|
|
183
|
-
'./dist/packages/@glimmer/node.js',
|
|
184
|
-
'./dist/packages/@glimmer/opcode-compiler.js',
|
|
185
|
-
'./dist/packages/@glimmer/owner.js',
|
|
186
|
-
'./dist/packages/@glimmer/program.js',
|
|
187
|
-
'./dist/packages/@glimmer/reference.js',
|
|
188
|
-
'./dist/packages/@glimmer/runtime.js',
|
|
178
|
+
'./dist/packages/@glimmer/destroyable/index.js',
|
|
179
|
+
'./dist/packages/@glimmer/encoder/index.js',
|
|
180
|
+
'./dist/packages/@glimmer/env/index.js',
|
|
181
|
+
'./dist/packages/@glimmer/global-context/index.js',
|
|
182
|
+
'./dist/packages/@glimmer/manager/index.js',
|
|
183
|
+
'./dist/packages/@glimmer/node/index.js',
|
|
184
|
+
'./dist/packages/@glimmer/opcode-compiler/index.js',
|
|
185
|
+
'./dist/packages/@glimmer/owner/index.js',
|
|
186
|
+
'./dist/packages/@glimmer/program/index.js',
|
|
187
|
+
'./dist/packages/@glimmer/reference/index.js',
|
|
188
|
+
'./dist/packages/@glimmer/runtime/index.js',
|
|
189
189
|
'./dist/packages/@glimmer/tracking/index.js',
|
|
190
|
-
'./dist/packages/@glimmer/tracking/primitives/cache.js',
|
|
191
|
-
'./dist/packages/@glimmer/util.js',
|
|
192
|
-
'./dist/packages/@glimmer/validator.js',
|
|
193
|
-
'./dist/packages/@glimmer/vm.js',
|
|
194
|
-
'./dist/packages/@glimmer/wire-format.js',
|
|
195
|
-
'./dist/packages/@simple-dom/document.js',
|
|
190
|
+
'./dist/packages/@glimmer/tracking/primitives/cache/index.js',
|
|
191
|
+
'./dist/packages/@glimmer/util/index.js',
|
|
192
|
+
'./dist/packages/@glimmer/validator/index.js',
|
|
193
|
+
'./dist/packages/@glimmer/vm/index.js',
|
|
194
|
+
'./dist/packages/@glimmer/wire-format/index.js',
|
|
195
|
+
'./dist/packages/@simple-dom/document/index.js',
|
|
196
196
|
'./dist/packages/backburner.js/index.js',
|
|
197
|
-
'./dist/packages/dag-map.js',
|
|
197
|
+
'./dist/packages/dag-map/index.js',
|
|
198
198
|
'./dist/packages/ember/index.js',
|
|
199
199
|
'./dist/packages/ember/version.js',
|
|
200
|
-
'./dist/packages/route-recognizer.js',
|
|
201
|
-
'./dist/packages/router_js.js',
|
|
202
|
-
'./dist/packages/rsvp.js',
|
|
200
|
+
'./dist/packages/route-recognizer/index.js',
|
|
201
|
+
'./dist/packages/router_js/index.js',
|
|
202
|
+
'./dist/packages/rsvp/index.js',
|
|
203
203
|
],
|
|
204
204
|
'implicit-test-modules': [
|
|
205
205
|
'./dist/packages/ember-testing/index.js',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "6.12.0
|
|
3
|
+
"version": "6.12.0",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"ember-router-generator": "^2.0.0",
|
|
85
85
|
"inflection": "^2.0.1",
|
|
86
86
|
"route-recognizer": "^0.3.4",
|
|
87
|
-
"router_js": "^8.0.
|
|
87
|
+
"router_js": "^8.0.6",
|
|
88
88
|
"semver": "^7.5.2",
|
|
89
89
|
"silent-error": "^1.1.1",
|
|
90
90
|
"simple-html-tokenizer": "^0.5.11"
|
|
@@ -389,9 +389,6 @@
|
|
|
389
389
|
}
|
|
390
390
|
},
|
|
391
391
|
"packageManager": "pnpm@10.5.0",
|
|
392
|
-
"_originalVersion": "6.12.0
|
|
393
|
-
"_versionPreviouslyCalculated": true
|
|
394
|
-
"publishConfig": {
|
|
395
|
-
"tag": "beta"
|
|
396
|
-
}
|
|
392
|
+
"_originalVersion": "6.12.0",
|
|
393
|
+
"_versionPreviouslyCalculated": true
|
|
397
394
|
}
|
|
@@ -141,7 +141,7 @@ declare module '@ember/application/instance' {
|
|
|
141
141
|
@param url {String} the destination URL
|
|
142
142
|
@return {Promise<ApplicationInstance>}
|
|
143
143
|
*/
|
|
144
|
-
visit(url: string): import("rsvp").Promise<unknown>;
|
|
144
|
+
visit(url: string): import("rsvp").default.Promise<unknown>;
|
|
145
145
|
willDestroy(): void;
|
|
146
146
|
/**
|
|
147
147
|
@private
|