@angular/platform-browser 16.0.0-rc.1 → 16.0.0-rc.2
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/animations/index.d.ts +1 -1
- package/esm2022/animations/src/animation_builder.mjs +3 -3
- package/esm2022/animations/src/animation_renderer.mjs +3 -3
- package/esm2022/animations/src/module.mjs +8 -8
- package/esm2022/animations/src/providers.mjs +3 -3
- package/esm2022/src/browser/browser_adapter.mjs +3 -5
- package/esm2022/src/browser/meta.mjs +3 -3
- package/esm2022/src/browser/title.mjs +3 -3
- package/esm2022/src/browser/xhr.mjs +3 -3
- package/esm2022/src/browser.mjs +4 -4
- package/esm2022/src/dom/dom_renderer.mjs +3 -3
- package/esm2022/src/dom/events/dom_events.mjs +3 -3
- package/esm2022/src/dom/events/event_manager.mjs +3 -3
- package/esm2022/src/dom/events/hammer_gestures.mjs +10 -10
- package/esm2022/src/dom/events/key_events.mjs +3 -3
- package/esm2022/src/dom/shared_styles_host.mjs +3 -3
- package/esm2022/src/hydration.mjs +25 -1
- package/esm2022/src/security/dom_sanitization_service.mjs +6 -6
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/browser.mjs +4 -4
- package/fesm2022/animations.mjs +18 -18
- package/fesm2022/platform-browser.mjs +72 -50
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +25 -1
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v16.0.0-rc.
|
2
|
+
* @license Angular v16.0.0-rc.2
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -194,15 +194,15 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
|
|
194
194
|
* @publicApi
|
195
195
|
*/
|
196
196
|
class BrowserTestingModule {
|
197
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
198
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.
|
199
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.
|
197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
198
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
|
199
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, providers: [
|
200
200
|
{ provide: APP_ID, useValue: 'a' },
|
201
201
|
provideZoneChangeDetection(),
|
202
202
|
{ provide: PlatformLocation, useClass: MockPlatformLocation },
|
203
203
|
], imports: [BrowserModule] }); }
|
204
204
|
}
|
205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
206
206
|
type: NgModule,
|
207
207
|
args: [{
|
208
208
|
exports: [BrowserModule],
|
package/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v16.0.0-rc.
|
2
|
+
* @license Angular v16.0.0-rc.2
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -801,6 +801,30 @@ export declare const VERSION: Version;
|
|
801
801
|
* Disables DOM nodes reuse during hydration. Effectively makes
|
802
802
|
* Angular re-render an application from scratch on the client.
|
803
803
|
*
|
804
|
+
* When this option is enabled, make sure that the initial navigation
|
805
|
+
* option is configured for the Router as `enabledBlocking` by using the
|
806
|
+
* `withEnabledBlockingInitialNavigation` in the `provideRouter` call:
|
807
|
+
*
|
808
|
+
* ```
|
809
|
+
* bootstrapApplication(RootComponent, {
|
810
|
+
* providers: [
|
811
|
+
* provideRouter(
|
812
|
+
* // ... other features ...
|
813
|
+
* withEnabledBlockingInitialNavigation()
|
814
|
+
* ),
|
815
|
+
* provideClientHydration(withNoDomReuse())
|
816
|
+
* ]
|
817
|
+
* });
|
818
|
+
* ```
|
819
|
+
*
|
820
|
+
* This would ensure that the application is rerendered after all async
|
821
|
+
* operations in the Router (such as lazy-loading of components,
|
822
|
+
* waiting for async guards and resolvers) are completed to avoid
|
823
|
+
* clearing the DOM on the client too soon, thus causing content flicker.
|
824
|
+
*
|
825
|
+
* @see `provideRouter`
|
826
|
+
* @see `withEnabledBlockingInitialNavigation`
|
827
|
+
*
|
804
828
|
* @publicApi
|
805
829
|
* @developerPreview
|
806
830
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@angular/platform-browser",
|
3
|
-
"version": "16.0.0-rc.
|
3
|
+
"version": "16.0.0-rc.2",
|
4
4
|
"description": "Angular - library for using Angular in a web browser",
|
5
5
|
"author": "angular",
|
6
6
|
"license": "MIT",
|
@@ -11,9 +11,9 @@
|
|
11
11
|
"tslib": "^2.3.0"
|
12
12
|
},
|
13
13
|
"peerDependencies": {
|
14
|
-
"@angular/animations": "16.0.0-rc.
|
15
|
-
"@angular/core": "16.0.0-rc.
|
16
|
-
"@angular/common": "16.0.0-rc.
|
14
|
+
"@angular/animations": "16.0.0-rc.2",
|
15
|
+
"@angular/core": "16.0.0-rc.2",
|
16
|
+
"@angular/common": "16.0.0-rc.2"
|
17
17
|
},
|
18
18
|
"peerDependenciesMeta": {
|
19
19
|
"@angular/animations": {
|
package/testing/index.d.ts
CHANGED