Skip to content

Commit e87f628

Browse files
Copilotmattcosta7
andcommitted
Add ES2024/ES2025 polyfills with fixes for reduce, groupBy prototype safety, and iterator resilience
Co-authored-by: mattcosta7 <8616962+mattcosta7@users.noreply.github.com>
1 parent 246fab9 commit e87f628

File tree

10 files changed

+914
-1
lines changed

10 files changed

+914
-1
lines changed

package-lock.json

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import * as withResolvers from './promise-withResolvers.js'
55
import * as requestIdleCallback from './requestidlecallback.js'
66
import * as popover from '@oddbird/popover-polyfill/fn'
77
import * as commandAndCommandFor from 'invokers-polyfill/fn'
8+
import * as objectGroupBy from './object-groupby.js'
9+
import * as mapGroupBy from './map-groupby.js'
10+
import * as promiseTry from './promise-try.js'
11+
import * as iteratorHelpers from './iterator-helpers.js'
812

913
let supportsModalPseudo = false
1014
try {
@@ -53,6 +57,10 @@ export const polyfills = {
5357
withResolvers,
5458
popover,
5559
commandAndCommandFor,
60+
objectGroupBy,
61+
mapGroupBy,
62+
promiseTry,
63+
iteratorHelpers,
5664
}
5765

5866
export function isSupported() {

0 commit comments

Comments
 (0)