@angular/platform-browser 21.0.0 → 21.0.1

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0
2
+ * @license Angular v21.0.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -37,7 +37,7 @@ class DOMTestComponentRenderer extends TestComponentRenderer {
37
37
  }
38
38
  static ɵfac = i0.ɵɵngDeclareFactory({
39
39
  minVersion: "12.0.0",
40
- version: "21.0.0",
40
+ version: "21.0.1",
41
41
  ngImport: i0,
42
42
  type: DOMTestComponentRenderer,
43
43
  deps: [{
@@ -47,14 +47,14 @@ class DOMTestComponentRenderer extends TestComponentRenderer {
47
47
  });
48
48
  static ɵprov = i0.ɵɵngDeclareInjectable({
49
49
  minVersion: "12.0.0",
50
- version: "21.0.0",
50
+ version: "21.0.1",
51
51
  ngImport: i0,
52
52
  type: DOMTestComponentRenderer
53
53
  });
54
54
  }
55
55
  i0.ɵɵngDeclareClassMetadata({
56
56
  minVersion: "12.0.0",
57
- version: "21.0.0",
57
+ version: "21.0.1",
58
58
  ngImport: i0,
59
59
  type: DOMTestComponentRenderer,
60
60
  decorators: [{
@@ -73,7 +73,7 @@ const platformBrowserTesting = createPlatformFactory(platformBrowser, 'browserTe
73
73
  class BrowserTestingModule {
74
74
  static ɵfac = i0.ɵɵngDeclareFactory({
75
75
  minVersion: "12.0.0",
76
- version: "21.0.0",
76
+ version: "21.0.1",
77
77
  ngImport: i0,
78
78
  type: BrowserTestingModule,
79
79
  deps: [],
@@ -81,14 +81,14 @@ class BrowserTestingModule {
81
81
  });
82
82
  static ɵmod = i0.ɵɵngDeclareNgModule({
83
83
  minVersion: "14.0.0",
84
- version: "21.0.0",
84
+ version: "21.0.1",
85
85
  ngImport: i0,
86
86
  type: BrowserTestingModule,
87
87
  exports: [BrowserModule]
88
88
  });
89
89
  static ɵinj = i0.ɵɵngDeclareInjector({
90
90
  minVersion: "12.0.0",
91
- version: "21.0.0",
91
+ version: "21.0.1",
92
92
  ngImport: i0,
93
93
  type: BrowserTestingModule,
94
94
  providers: [{
@@ -103,7 +103,7 @@ class BrowserTestingModule {
103
103
  }
104
104
  i0.ɵɵngDeclareClassMetadata({
105
105
  minVersion: "12.0.0",
106
- version: "21.0.0",
106
+ version: "21.0.1",
107
107
  ngImport: i0,
108
108
  type: BrowserTestingModule,
109
109
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"testing.mjs","sources":["../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/packages/platform-browser/testing/src/dom_test_component_renderer.ts","../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/packages/platform-browser/testing/src/browser.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\n\n/**\n * A DOM based implementation of the TestComponentRenderer.\n */\n@Injectable()\nexport class DOMTestComponentRenderer extends TestComponentRenderer {\n constructor(@Inject(DOCUMENT) private _doc: any) {\n super();\n }\n\n override insertRootElement(rootElId: string, tagName = 'div') {\n this.removeAllRootElementsImpl();\n const rootElement = getDOM().getDefaultDocument().createElement(tagName);\n rootElement.setAttribute('id', rootElId);\n this._doc.body.appendChild(rootElement);\n }\n\n override removeAllRootElements() {\n // Check whether the `DOCUMENT` instance retrieved from DI contains\n // the necessary function to complete the cleanup. In tests that don't\n // interact with DOM, the `DOCUMENT` might be mocked and some functions\n // might be missing. For such tests, DOM cleanup is not required and\n // we skip the logic if there are missing functions.\n if (typeof this._doc.querySelectorAll === 'function') {\n this.removeAllRootElementsImpl();\n }\n }\n\n private removeAllRootElementsImpl() {\n const oldRoots = this._doc.querySelectorAll('[id^=root]');\n for (let i = 0; i < oldRoots.length; i++) {\n getDOM().remove(oldRoots[i]);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport {ɵprovideFakePlatformNavigation} from '@angular/common/testing';\nimport {APP_ID, createPlatformFactory, NgModule, StaticProvider, PlatformRef} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {BrowserModule, platformBrowser} from '../../index';\nimport {DOMTestComponentRenderer} from './dom_test_component_renderer';\n\n/**\n * Platform for testing\n *\n * @publicApi\n */\nexport const platformBrowserTesting: (extraProviders?: StaticProvider[]) => PlatformRef =\n createPlatformFactory(platformBrowser, 'browserTesting');\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n */\n@NgModule({\n exports: [BrowserModule],\n providers: [\n {provide: APP_ID, useValue: 'a'},\n ɵprovideFakePlatformNavigation(),\n {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},\n ],\n})\nexport class BrowserTestingModule {}\n"],"names":["DOMTestComponentRenderer","TestComponentRenderer","_doc","constructor","insertRootElement","rootElId","tagName","removeAllRootElementsImpl","rootElement","getDOM","getDefaultDocument","createElement","setAttribute","body","appendChild","removeAllRootElements","querySelectorAll","oldRoots","i","length","remove","ɵfac","i0","ɵɵngDeclareFactory","minVersion","version","ngImport","type","DOCUMENT","target","ɵɵFactoryTarget","Injectable","decorators","Inject","platformBrowserTesting","createPlatformFactory","platformBrowser","BrowserTestingModule","deps","NgModule","ɵmod","ɵɵngDeclareNgModule","BrowserModule","ɵinj","ɵɵngDeclareInjector","providers","provide","APP_ID","useValue","ɵprovideFakePlatformNavigation","useClass","imports","args","exports"],"mappings":";;;;;;;;;;;;;;AAgBM,MAAOA,wBAAyB,SAAQC,qBAAqB,CAAA;EAC3BC,IAAA;EAAtCC,WAAAA,CAAsCD,IAAS,EAAA;AAC7C,IAAA,KAAK,EAAE;IAD6B,IAAI,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AA,QAAQ,EAAElD;OAAyB;KAEvE;;;;;;"}
1
+ {"version":3,"file":"testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/platform-browser/testing/src/dom_test_component_renderer.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/platform-browser/testing/src/browser.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\n\n/**\n * A DOM based implementation of the TestComponentRenderer.\n */\n@Injectable()\nexport class DOMTestComponentRenderer extends TestComponentRenderer {\n constructor(@Inject(DOCUMENT) private _doc: any) {\n super();\n }\n\n override insertRootElement(rootElId: string, tagName = 'div') {\n this.removeAllRootElementsImpl();\n const rootElement = getDOM().getDefaultDocument().createElement(tagName);\n rootElement.setAttribute('id', rootElId);\n this._doc.body.appendChild(rootElement);\n }\n\n override removeAllRootElements() {\n // Check whether the `DOCUMENT` instance retrieved from DI contains\n // the necessary function to complete the cleanup. In tests that don't\n // interact with DOM, the `DOCUMENT` might be mocked and some functions\n // might be missing. For such tests, DOM cleanup is not required and\n // we skip the logic if there are missing functions.\n if (typeof this._doc.querySelectorAll === 'function') {\n this.removeAllRootElementsImpl();\n }\n }\n\n private removeAllRootElementsImpl() {\n const oldRoots = this._doc.querySelectorAll('[id^=root]');\n for (let i = 0; i < oldRoots.length; i++) {\n getDOM().remove(oldRoots[i]);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport {ɵprovideFakePlatformNavigation} from '@angular/common/testing';\nimport {APP_ID, createPlatformFactory, NgModule, StaticProvider, PlatformRef} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {BrowserModule, platformBrowser} from '../../index';\nimport {DOMTestComponentRenderer} from './dom_test_component_renderer';\n\n/**\n * Platform for testing\n *\n * @publicApi\n */\nexport const platformBrowserTesting: (extraProviders?: StaticProvider[]) => PlatformRef =\n createPlatformFactory(platformBrowser, 'browserTesting');\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n */\n@NgModule({\n exports: [BrowserModule],\n providers: [\n {provide: APP_ID, useValue: 'a'},\n ɵprovideFakePlatformNavigation(),\n {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},\n ],\n})\nexport class BrowserTestingModule {}\n"],"names":["DOMTestComponentRenderer","TestComponentRenderer","_doc","constructor","insertRootElement","rootElId","tagName","removeAllRootElementsImpl","rootElement","getDOM","getDefaultDocument","createElement","setAttribute","body","appendChild","removeAllRootElements","querySelectorAll","oldRoots","i","length","remove","ɵfac","i0","ɵɵngDeclareFactory","minVersion","version","ngImport","type","DOCUMENT","target","ɵɵFactoryTarget","Injectable","decorators","Inject","platformBrowserTesting","createPlatformFactory","platformBrowser","BrowserTestingModule","deps","NgModule","ɵmod","ɵɵngDeclareNgModule","BrowserModule","ɵinj","ɵɵngDeclareInjector","providers","provide","APP_ID","useValue","ɵprovideFakePlatformNavigation","useClass","imports","args","exports"],"mappings":";;;;;;;;;;;;;;AAgBM,MAAOA,wBAAyB,SAAQC,qBAAqB,CAAA;EAC3BC,IAAA;EAAtCC,WAAAA,CAAsCD,IAAS,EAAA;AAC7C,IAAA,KAAK,EAAE;IAD6B,IAAI,CAAAA,IAAA,GAAJA,IAAI;AAE1C;AAESE,EAAAA,iBAAiBA,CAACC,QAAgB,EAAEC,OAAO,GAAG,KAAK,EAAA;IAC1D,IAAI,CAACC,yBAAyB,EAAE;AAChC,IAAA,MAAMC,WAAW,GAAGC,OAAM,EAAE,CAACC,kBAAkB,EAAE,CAACC,aAAa,CAACL,OAAO,CAAC;AACxEE,IAAAA,WAAW,CAACI,YAAY,CAAC,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BAAA,CAAA;AAAAjB,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,mBAAA;AAAAC,IAAAA,QAAA,EAAAJ,EAAA;AAAAK,IAAAA,IAAA,EAAAU,oBAAoB;cAPrBK,aAAa;AAAA,GAAA,CAAA;AAOZ,EAAA,OAAAC,IAAA,GAAArB,EAAA,CAAAsB,mBAAA,CAAA;AAAApB,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,mBAAA;AAAAC,IAAAA,QAAA,EAAAJ,EAAA;AAAAK,IAAAA,IAAA,EAAAU,oBAAoB;AANpBQ,IAAAA,SAAA,EAAA,CACT;AAACC,MAAAA,OAAO,EAAEC,MAAM;AAAEC,MAAAA,QAAQ,EAAE;AAAI,KAAA,EAChCC,8BAA8B,EAAE,EAChC;AAACH,MAAAA,OAAO,EAAE7C,qBAAqB;AAAEiD,MAAAA,QAAQ,EAAElD;AAAyB,KAAA,CACrE;IAAAmD,OAAA,EAAA,CALST,aAAa;AAAA,GAAA,CAAA;;;;;;QAOZL,oBAAoB;AAAAL,EAAAA,UAAA,EAAA,CAAA;UARhCO,QAAQ;AAACa,IAAAA,IAAA,EAAA,CAAA;MACRC,OAAO,EAAE,CAACX,aAAa,CAAC;AACxBG,MAAAA,SAAS,EAAE,CACT;AAACC,QAAAA,OAAO,EAAEC,MAAM;AAAEC,QAAAA,QAAQ,EAAE;AAAI,OAAA,EAChCC,8BAA8B,EAAE,EAChC;AAACH,QAAAA,OAAO,EAAE7C,qBAAqB;AAAEiD,QAAAA,QAAQ,EAAElD;OAAyB;KAEvE;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-browser",
3
- "version": "21.0.0",
3
+ "version": "21.0.1",
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": "21.0.0",
15
- "@angular/core": "21.0.0",
16
- "@angular/common": "21.0.0"
14
+ "@angular/animations": "21.0.1",
15
+ "@angular/core": "21.0.1",
16
+ "@angular/common": "21.0.1"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "@angular/animations": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0
2
+ * @license Angular v21.0.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0
2
+ * @license Angular v21.0.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0
2
+ * @license Angular v21.0.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0
2
+ * @license Angular v21.0.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0
2
+ * @license Angular v21.0.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */