Skip to content

Commit 8b7707d

Browse files
alxhubatscott
authored andcommitted
build(core): introduce @angular/core/rxjs-interop entrypoint (#49154)
This commit adds the infrastructure for `@angular/core/rxjs-interop`, a new core entrypoint which provides bidirectional interoperability between Angular's built-in reactivity system of synchronous signals, and the RxJS `Observable` abstraction. The new entrypoint is set up as an empty shell in this commit, with its implementation to follow in a followup. PR Close #49154
1 parent 267c5e8 commit 8b7707d

8 files changed

Lines changed: 79 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## API Report File for "@angular/core_rxjs-interop"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
// (No @packageDocumentation comment for this package)
8+
9+
```

packages/bazel/test/ng_package/core_package.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ describe('@angular/core ng_package', () => {
6565
esm: './esm2022/core.mjs',
6666
default: './fesm2022/core.mjs'
6767
},
68+
'./rxjs-interop': {
69+
types: './rxjs-interop/index.d.ts',
70+
esm2022: './esm2022/rxjs-interop/rxjs-interop.mjs',
71+
esm: './esm2022/rxjs-interop/rxjs-interop.mjs',
72+
default: './fesm2022/rxjs-interop.mjs'
73+
},
6874
'./testing': {
6975
types: './testing/index.d.ts',
7076
esm2022: './esm2022/testing/testing.mjs',

packages/core/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ ng_package(
7575
],
7676
deps = [
7777
":core",
78+
"//packages/core/rxjs-interop",
7879
"//packages/core/testing",
7980
],
8081
)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
load("//tools:defaults.bzl", "ng_module")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
exports_files(["package.json"])
6+
7+
ng_module(
8+
name = "rxjs-interop",
9+
srcs = glob(
10+
[
11+
"*.ts",
12+
"src/**/*.ts",
13+
],
14+
),
15+
deps = [
16+
"//packages:types",
17+
"//packages/core",
18+
"@npm//rxjs",
19+
],
20+
)
21+
22+
filegroup(
23+
name = "files_for_docgen",
24+
srcs = glob([
25+
"*.ts",
26+
"src/**/*.ts",
27+
]) + ["PACKAGE.md"],
28+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Includes utilities related to using the RxJS library in conjunction with Angular's signal-based reactivity system.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
9+
export * from './src/index';
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
9+
/**
10+
* @module
11+
* @description
12+
* Entry point for all public APIs of this package.
13+
*/
14+
export * from './src/index';
15+
16+
// This file only reexports content of the `src` folder. Keep it that way.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
9+
export {};

0 commit comments

Comments
 (0)