Skip to content

Commit

Permalink
drop old TC39 Observable proposal in favor of future adding new Web…
Browse files Browse the repository at this point in the history
… Platform `Observable` proposal
  • Loading branch information
zloirock committed Oct 13, 2023
1 parent eef2d11 commit 2d13259
Show file tree
Hide file tree
Showing 31 changed files with 3 additions and 1,618 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- run: npm ci
- run: npx run-s bundle test-unit-karma

promises-and-observables:
promises:
strategy:
matrix:
node:
Expand All @@ -46,7 +46,7 @@ jobs:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npx run-s test-promises test-observables
- run: npx run test-promises

tests:
strategy:
Expand Down
33 changes: 0 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
- [`RegExp` escaping](#regexp-escaping)
- [`Symbol` predicates](#symbol-predicates)
- [Stage 1 proposals](#stage-1-proposals)
- [`Observable`](#observable)
- [New collections methods](#new-collections-methods)
- [`.of` and `.from` methods on collection constructors](#of-and-from-methods-on-collection-constructors)
- [`compositeKey` and `compositeSymbol`](#compositekey-and-compositesymbol)
Expand Down Expand Up @@ -2685,39 +2684,7 @@ Symbol.isWellKnownSymbol(Symbol('key')); // => false
```js
core-js(-pure)/stage/1
```
##### [`Observable`](https://github.com/zenparsing/es-observable)[⬆](#index)
Modules [`esnext.observable.constructor`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.observable.constructor.js), [`esnext.observable.from`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.observable.from.js), [`esnext.observable.of`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.observable.of.js) and [`esnext.symbol.observable`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.symbol.observable.js)
```js
class Observable {
constructor(subscriber: Function): Observable;
subscribe(observer: Function | { next?: Function, error?: Function, complete?: Function }): Subscription;
@@observable(): this;
static of(...items: Array<mixed>): Observable;
static from(x: Observable | Iterable): Observable;
static readonly attribute @@species: this;
}

class Symbol {
static observable: @@observable;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/observable
core-js(-pure)/full/observable
core-js(-pure)/full/symbol/observable
```
[*Examples*](https://goo.gl/1LDywi):
```js
new Observable(observer => {
observer.next('hello');
observer.next('world');
observer.complete();
}).subscribe({
next(it) { console.log(it); },
complete() { console.log('!'); }
});
```
##### [New collections methods](https://github.com/tc39/proposal-collection-methods)[⬆](#index)
Modules [`esnext.set.add-all`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.set.add-all.js), [`esnext.set.delete-all`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.set.delete-all.js), [`esnext.set.every`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.set.every.js), [`esnext.set.filter`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.set.filter.js), [`esnext.set.find`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.set.find.js), [`esnext.set.join`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.set.join.js), [`esnext.set.map`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.set.map.js), [`esnext.set.reduce`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.set.reduce.js), [`esnext.set.some`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.set.some.js), [`esnext.map.delete-all`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.delete-all.js), [`esnext.map.every`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.every.js), [`esnext.map.filter`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.filter.js), [`esnext.map.find`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.find.js), [`esnext.map.find-key`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.find-key.js), [`esnext.map.group-by`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.group-by.js), [`esnext.map.includes`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.includes.js), [`esnext.map.key-by`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.key-by.js), [`esnext.map.key-of`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.key-of.js), [`esnext.map.map-keys`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.map-keys.js), [`esnext.map.map-values`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.map-values.js), [`esnext.map.merge`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.merge.js), [`esnext.map.reduce`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.reduce.js), [`esnext.map.some`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.some.js), [`esnext.map.update`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.map.update.js), [`esnext.weak-set.add-all`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.weak-set.add-all.js), [`esnext.weak-set.delete-all`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.weak-set.delete-all.js), [`esnext.weak-map.delete-all`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.weak-map.delete-all.js)
##### [`.of` and `.from` methods on collection constructors](https://github.com/tc39/proposal-setmap-offrom)[⬆](#index)
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@
"lint": "run-s prepare lint-raw",
"lint-raw": "run-s test-eslint test-type-definitions bundle-package test-publint",
"test": "run-s prepare test-raw",
"test-raw": "run-s lint-raw bundle-tests test-unit test-promises test-observables test-entries test-compat-data test-compat-tools test-builder check",
"test-raw": "run-s lint-raw bundle-tests test-unit test-promises test-entries test-compat-data test-compat-tools test-builder check",
"test-eslint": "npm run zxi time tests/eslint/runner.mjs",
"test-publint": "npm run zxi time tests/publint/runner.mjs",
"test-unit": "run-s test-unit-karma test-unit-node",
"test-unit-karma": "npm run zxi time cd tests/unit-karma/runner.mjs",
"test-unit-node": "npm run zxi time tests/unit-node/runner.mjs",
"test-unit-bun": "npm run zxi time tests/unit-bun/runner.mjs",
"test-promises": "npm run zxi time cd tests/promises/runner.mjs",
"test-observables": "npm run zxi time cd tests/observables/runner.mjs",
"test-entries": "zx tests/entries/index.mjs",
"test-builder": "zx tests/builder/builder.mjs",
"test-compat-data": "zx tests/compat-data/index.mjs",
Expand Down
8 changes: 0 additions & 8 deletions packages/core-js-compat/src/data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1970,12 +1970,6 @@ export const data = {
chrome: '117',
firefox: '119',
},
'esnext.observable.constructor': {
},
'esnext.observable.from': {
},
'esnext.observable.of': {
},
'esnext.promise.with-resolvers': {
bun: '0.7.1',
chrome: '119',
Expand Down Expand Up @@ -2070,8 +2064,6 @@ export const data = {
},
'esnext.symbol.metadata': {
},
'esnext.symbol.observable': {
},
'esnext.typed-array.filter-reject': {
},
'esnext.typed-array.unique-by': {
Expand Down
9 changes: 0 additions & 9 deletions packages/core-js/full/observable/constructor.js

This file was deleted.

10 changes: 0 additions & 10 deletions packages/core-js/full/observable/from.js

This file was deleted.

11 changes: 0 additions & 11 deletions packages/core-js/full/observable/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions packages/core-js/full/observable/of.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/core-js/full/symbol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ var parent = require('../../actual/symbol');
require('../../modules/esnext.symbol.is-registered-symbol');
require('../../modules/esnext.symbol.is-well-known-symbol');
require('../../modules/esnext.symbol.matcher');
require('../../modules/esnext.symbol.observable');

module.exports = parent;
5 changes: 0 additions & 5 deletions packages/core-js/full/symbol/observable.js

This file was deleted.

179 changes: 0 additions & 179 deletions packages/core-js/modules/esnext.observable.constructor.js

This file was deleted.

35 changes: 0 additions & 35 deletions packages/core-js/modules/esnext.observable.from.js

This file was deleted.

Loading

0 comments on commit 2d13259

Please sign in to comment.