Skip to content

Commit

Permalink
BREAKING CHANGE: remove 'esnext' polyfills. Only stage 4 features are…
Browse files Browse the repository at this point in the history
… served
  • Loading branch information
wessberg committed Jan 23, 2023
1 parent 6da3e89 commit c6ead52
Show file tree
Hide file tree
Showing 9 changed files with 195 additions and 989 deletions.
113 changes: 14 additions & 99 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,9 @@ And, if you request `performance.now`, `date.now` will also be included since th
- `es.array.sort`
- `es.array.species`
- `es.array.splice`
- `es.array.at`
- `es.array.find-last`
- `es.array.find-last-index`
- **`es.array-buffer`**
- `es.array-buffer.constructor`
- `es.array-buffer.is-view`
Expand Down Expand Up @@ -503,6 +506,8 @@ And, if you request `performance.now`, `date.now` will also be included since th
- `es.string.trim-start`
- `es.string.trim-end`
- `es.string.replace-all`
- `es.string.match-all`
- `es.string.at`
- **`es.regexp`**
- `es.regexp.constructor`
- `es.regexp.flags`
Expand Down Expand Up @@ -600,6 +605,9 @@ And, if you request `performance.now`, `date.now` will also be included since th
- `es.typed-array.uint8-clamped-array`
- `es.typed-array.uint16-array`
- `es.typed-array.uint32-array`
- `es.typed-array.at`
- `es.typed-array.find-last`
- `es.typed-array.find-last-index`
- **`es.reflect`**
- `es.reflect.apply`
- `es.reflect.construct`
Expand All @@ -614,103 +622,6 @@ And, if you request `performance.now`, `date.now` will also be included since th
- `es.reflect.prevent-extensions`
- `es.reflect.set`
- `es.reflect.set-prototype-of`
- **`esnext`**
- `esnext.array`
- `esnext.collections`
- `esnext.math`
- `esnext.number`
- `esnext.object`
- `esnext.promise`
- `esnext.reflect`
- `esnext.string`
- `esnext.symbol`
- **`es2016+`**
- `esnext`
- **`esnext.array`**
- `es.array.last-index`
- `es.array.last-item`
- **`esnext.object`**
- **`esnext.collections`**
- `esnext.map`
- `esnext.weak-map`
- `esnext.set`
- `esnext.weak-set`
- **`esnext.map`**
- `es.map.every`
- `es.map.filter`
- `es.map.find`
- `es.map.find-key`
- `es.map.from`
- `es.map.group-by`
- `es.map.includes`
- `es.map.key-by`
- `es.map.key-of`
- `es.map.map-keys`
- `es.map.map-values`
- `es.map.merge`
- `es.map.of`
- `es.map.reduce`
- `es.map.some`
- `es.map.update`
- `es.map.emplace`
- **`esnext.weak-map`**
- `es.weak-map.from`
- `es.weak-map.of`
- **`esnext.set`**
- `es.set.add-all`
- `es.set.delete-all`
- `es.set.difference`
- `es.set.every`
- `es.set.filter`
- `es.set.find`
- `es.set.from`
- `es.set.intersection`
- `es.set.join`
- `es.set.map`
- `es.set.of`
- `es.set.reduce`
- `es.set.some`
- `es.set.symmetric-difference`
- `es.set.union`
- `es.set.is-disjoint-from`
- `es.set.is-subset-of`
- `es.set.is-superset-of`
- **`esnext.weak-set`**
- `es.weak-set.from`
- `es.weak-set.of`
- **`esnext.math`**
- `es.math.clamp`
- `es.math.deg-per-rad`
- `es.math.degrees`
- `es.math.fscale`
- `es.math.iaddh`
- `es.math.imulh`
- `es.math.isubh`
- `es.math.rad-per-deg`
- `es.math.radians`
- `es.math.scale`
- `es.math.signbit`
- `es.math.umulh`
- **`esnext.number`**
- `es.number.from-string`
- **`esnext.promise`**
- `es.promise.try`
- **`esnext.reflect`**
- `es.reflect.define-metadata`
- `es.reflect.delete-metadata`
- `es.reflect.get-metadata`
- `es.reflect.get-metadata-keys`
- `es.reflect.get-own-metadata`
- `es.reflect.get-own-metadata-keys`
- `es.reflect.has-metadata`
- `es.reflect.has-own-metadata`
- `es.reflect.metadata`
- **`esnext.string`**
- `es.string.at`
- `es.string.code-points`
- `es.string.match-all`
- **`esnext.symbol`**
- `es.symbol.pattern-match`
- **`dom.collections.iterable`**
- `dom.collections.iterator`
- `dom.collections.for-each`
Expand Down Expand Up @@ -741,13 +652,17 @@ And, if you request `performance.now`, `date.now` will also be included since th
- `es.global-this`
- **`adopted-style-sheets`**
- `constructable-style-sheets`
- **`structuredclone`**
- `structured-clone`
- **`base64`**
- `atob`
- `btoa`
- `systemjs`
- `zone`
- `performance.now`
- `url`
- `object-fit`
- `console`
- `base64`
- `blob`
- `proxy`
- `es.string.replace`
Expand All @@ -773,4 +688,4 @@ And, if you request `performance.now`, `date.now` will also be included since th
- `mutation-observer`
- `resize-observer`
- `broadcast-channel`
- `proto`
- `proto`
73 changes: 31 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build": "npm run rollup",
"watch": "npm run rollup -- --watch",
"rollup": "rollup -c rollup.config.ts --configPlugin rollup-plugin-ts",
"scripts:markdown-format-feature-names": "ts-node --project scripts/tsconfig.json scripts/markdown-format-feature-names.ts",
"scripts:markdown-format-feature-names": "ts-node-esm --project scripts/tsconfig.json scripts/markdown-format-feature-names.ts",
"preversion": "npm run build",
"version": "npm run generate:all && git add .",
"release": "np --no-cleanup --no-yarn",
Expand Down Expand Up @@ -94,14 +94,13 @@
"@wessberg/pointer-events": "1.0.9",
"@wessberg/stringutil": "1.0.19",
"lit": "2.6.1",
"Base64": "1.1.0",
"blob-polyfill": "5.0.20210201",
"browserslist": "4.21.4",
"browserslist-generator": "2.0.1",
"browserslist-generator": "2.0.2",
"chalk": "5.2.0",
"console-polyfill": "0.3.0",
"construct-style-sheets-polyfill": "3.0.1",
"core-js": "3.18.0",
"core-js": "3.27.2",
"crosspath": "2.0.0",
"esbuild": "0.17.4",
"events-polyfill": "2.1.2",
Expand Down
6 changes: 3 additions & 3 deletions scripts/markdown-format-feature-names.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {constant} from "../src/constant/constant";
import {PolyfillName} from "../src/polyfill/polyfill-name";
import {PolyfillDictEntry} from "../src/polyfill/polyfill-dict";
import {constant} from "../src/constant/constant.js";
import type {PolyfillName} from "../src/polyfill/polyfill-name.js";
import type {PolyfillDictEntry} from "../src/polyfill/polyfill-dict.js";

const seenPolyfills: Set<PolyfillName> = new Set();

Expand Down
3 changes: 1 addition & 2 deletions scripts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "@wessberg/ts-config",
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"target": "es2020",
"resolveJsonModule": true
}
}

0 comments on commit c6ead52

Please sign in to comment.