Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 8: Build changes - ES2022, no more tslib, etc. etc. #7261

Merged
merged 15 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/ci_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:
- name: build
run: npm run build:package
- name: test
run: |
npm test
npm run test:side-effects
run: npm test
- name: dtslint
run: npm run dtslint
- name: import
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_ts_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
run: |
npm install -g npm@latest
npm ci
npm install --legacy-peer-deps --no-save typescript@latest tslib@latest @types/node@latest
npm install --legacy-peer-deps --no-save typescript@latest @types/node@latest
npm run compile
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ npm-debug.log

integration/import/**/rx.json
integration/import/**/operators.json

# The check-side-effects package generates and deletes this file.
# If the process is killed, it will be left behind.
check-side-effects.tmp-input.js
32 changes: 6 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ import { range, filter, map } from 'rxjs';

range(1, 200)
.pipe(
filter(x => x % 2 === 1),
map(x => x + x)
filter((x) => x % 2 === 1),
map((x) => x + x)
)
.subscribe(x => console.log(x));
.subscribe((x) => console.log(x));
```

If you're using RxJS version below 7.2, you can pull in any operator you need from one spot, under `'rxjs/operators'`.
Expand All @@ -59,30 +59,10 @@ import { filter, map } from 'rxjs/operators';

range(1, 200)
.pipe(
filter(x => x % 2 === 1),
map(x => x + x)
filter((x) => x % 2 === 1),
map((x) => x + x)
)
.subscribe(x => console.log(x));
```

### CDN

For CDN, you can use [unpkg](https://unpkg.com/):

[https://unpkg.com/rxjs@^7/dist/bundles/rxjs.umd.min.js](https://unpkg.com/rxjs@%5E7/dist/bundles/rxjs.umd.min.js)

The global namespace for rxjs is `rxjs`:

```js
const { range } = rxjs;
const { filter, map } = rxjs.operators;

range(1, 200)
.pipe(
filter(x => x % 2 === 1),
map(x => x + x)
)
.subscribe(x => console.log(x));
.subscribe((x) => console.log(x));
```

## Goals
Expand Down
15 changes: 4 additions & 11 deletions docs_app/content/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ npm install rxjs
```

By default, RxJS 7.x will provide different variants of the code based on the consumer:
* When RxJS 7.x is used on Node.js regardless of whether it is consumed via `require` or `import`, CommonJS code targeting ES5 will be provided for execution.
* When RxJS 7.4+ is used via a bundler targeting a browser (or other non-Node.js platform) ES module code targeting ES5 will be provided by default with the option to use ES2015 code.
7.x versions prior to 7.4.0 will only provide ES5 code.

- When RxJS 7.x is used on Node.js regardless of whether it is consumed via `require` or `import`, CommonJS code targeting ES5 will be provided for execution.
- When RxJS 7.4+ is used via a bundler targeting a browser (or other non-Node.js platform) ES module code targeting ES5 will be provided by default with the option to use ES2015 code.
7.x versions prior to 7.4.0 will only provide ES5 code.

If the target browsers for a project support ES2015+ or the bundle process supports down-leveling to ES5 then the bundler can optionally be configured to allow the ES2015 RxJS code to be used instead.
You can enable support for using the ES2015 RxJS code by configuring a bundler to use the `es2015` custom export condition during module resolution.
Expand Down Expand Up @@ -52,11 +53,3 @@ If you are using npm version 2, you need to specify the library version explicit
```shell
npm install @reactivex/rxjs@7.3.0
```

## CDN

For CDN, you can use [unpkg](https://unpkg.com/):

[https://unpkg.com/rxjs@^7/dist/bundles/rxjs.umd.min.js](https://unpkg.com/rxjs@%5E7/dist/bundles/rxjs.umd.min.js)

To import what you need, please {@link guide/importing#cdn check out this} guide.
9 changes: 0 additions & 9 deletions integration/side-effects/README.md

This file was deleted.

52 changes: 0 additions & 52 deletions integration/side-effects/side-effects.json

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm/ajax.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm/fetch.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm/index.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm/operators.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm/testing.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm/websocket.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm2015/ajax.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm2015/fetch.js

This file was deleted.

7 changes: 0 additions & 7 deletions integration/side-effects/snapshots/esm2015/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions integration/side-effects/snapshots/esm2015/operators.js

This file was deleted.

7 changes: 0 additions & 7 deletions integration/side-effects/snapshots/esm2015/testing.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm2015/websocket.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm5/ajax.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm5/fetch.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm5/index.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm5/operators.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm5/testing.js

This file was deleted.

1 change: 0 additions & 1 deletion integration/side-effects/snapshots/esm5/websocket.js

This file was deleted.

29 changes: 0 additions & 29 deletions integration/systemjs/systemjs-compatibility-spec.js

This file was deleted.

12 changes: 0 additions & 12 deletions integration/systemjs/tsconfig.json

This file was deleted.