Skip to content

Commit 021ead5

Browse files
JeanMechemmalerba
authored andcommitted
refactor(animations): remove dependency on @angular/common (angular#63248)
`DOCUMENT` was move to `@angular/core`, so we don't need to depend on common anymore. PR Close angular#63248
1 parent dcd81d9 commit 021ead5

File tree

10 files changed

+5
-16
lines changed

10 files changed

+5
-16
lines changed

integration/legacy-animations-async/size.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"dist/main.js": 86540,
2+
"dist/main.js": 97227,
33
"dist/polyfills.js": 33782,
44
"dist/browser-[hash].js": 63949,
55
"dist/open-close.component-[hash].js": 1218
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"dist/main.js": 143167,
2+
"dist/main.js": 153915,
33
"dist/polyfills.js": 34023,
44
"dist/open-close.component-[hash].js": 1190
55
}

packages/animations/BUILD.bazel

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ ng_project(
1111
],
1212
),
1313
deps = [
14-
"//packages/common",
1514
"//packages/core",
1615
],
1716
)
@@ -72,8 +71,6 @@ generate_api_docs(
7271
name = "animations_docs",
7372
srcs = [
7473
":files_for_docgen",
75-
"//packages:common_files_and_deps_for_docs",
76-
"//packages/common:files_for_docgen",
7774
],
7875
entry_point = ":index.ts",
7976
module_name = "@angular/animations",

packages/animations/browser/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ generate_api_docs(
3030
name = "animations_browser_docs",
3131
srcs = [
3232
":files_for_docgen",
33-
"//packages:common_files_and_deps_for_docs",
3433
"//packages/animations:files_for_docgen",
3534
],
3635
entry_point = ":index.ts",

packages/animations/browser/testing/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ generate_api_docs(
2525
name = "animations_browser_testing_docs",
2626
srcs = [
2727
":files_for_docgen",
28-
"//packages:common_files_and_deps_for_docs",
2928
],
3029
entry_point = ":index.ts",
3130
module_name = "@angular/animations/browser/testing",

packages/animations/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"tslib": "^2.3.0"
1212
},
1313
"peerDependencies": {
14-
"@angular/core": "0.0.0-PLACEHOLDER",
15-
"@angular/common": "0.0.0-PLACEHOLDER"
14+
"@angular/core": "0.0.0-PLACEHOLDER"
1615
},
1716
"repository": {
1817
"type": "git",

packages/animations/src/animation_builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.dev/license
77
*/
8-
import {DOCUMENT} from '@angular/common';
98
import {
109
ANIMATION_MODULE_TYPE,
10+
DOCUMENT,
1111
Inject,
1212
inject,
1313
Injectable,

packages/animations/test/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ts_project(
99
"//packages/animations",
1010
"//packages/animations/browser",
1111
"//packages/animations/browser/testing",
12-
"//packages/common",
1312
"//packages/core",
1413
"//packages/core/testing",
1514
"//packages/platform-browser",

packages/animations/test/browser_animation_builder_spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import {
1313
} from '../src/animations';
1414
import {AnimationDriver} from '../browser';
1515
import {MockAnimationDriver} from '../browser/testing';
16-
import {DOCUMENT} from '@angular/common';
17-
import {Component, NgZone, RendererFactory2, ViewChild} from '@angular/core';
16+
import {Component, NgZone, RendererFactory2, ViewChild, DOCUMENT} from '@angular/core';
1817
import {fakeAsync, flushMicrotasks, TestBed} from '@angular/core/testing';
1918
import {ɵDomRendererFactory2 as DomRendererFactory2} from '@angular/platform-browser';
2019
import {NoopAnimationsModule} from '@angular/platform-browser/animations';

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)