feat: remove polyfill-object.fromentries dependency

BREAKING CHANGE: You must support `Object.fromEntries`
This commit is contained in:
divlo 2021-06-17 19:27:37 +02:00
parent c90742b200
commit fd166db46c
3 changed files with 0 additions and 17 deletions

13
package-lock.json generated
View File

@ -7,9 +7,6 @@
"": { "": {
"version": "1.3.0", "version": "1.3.0",
"license": "MIT", "license": "MIT",
"dependencies": {
"polyfill-object.fromentries": "1.0.1"
},
"devDependencies": { "devDependencies": {
"@commitlint/cli": "12.1.4", "@commitlint/cli": "12.1.4",
"@commitlint/config-conventional": "12.1.4", "@commitlint/config-conventional": "12.1.4",
@ -11100,11 +11097,6 @@
"integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==",
"dev": true "dev": true
}, },
"node_modules/polyfill-object.fromentries": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/polyfill-object.fromentries/-/polyfill-object.fromentries-1.0.1.tgz",
"integrity": "sha512-zlEL/n2S73hX7BQXIPapzirQw4yM/VC7slrcOyfbsH0ZyUQ/lLh4NF9wshSJ354v0F3KDMC8FCxeTQ7UUPpu9g=="
},
"node_modules/posix-character-classes": { "node_modules/posix-character-classes": {
"version": "0.1.1", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz",
@ -23004,11 +22996,6 @@
"integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==",
"dev": true "dev": true
}, },
"polyfill-object.fromentries": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/polyfill-object.fromentries/-/polyfill-object.fromentries-1.0.1.tgz",
"integrity": "sha512-zlEL/n2S73hX7BQXIPapzirQw4yM/VC7slrcOyfbsH0ZyUQ/lLh4NF9wshSJ354v0F3KDMC8FCxeTQ7UUPpu9g=="
},
"posix-character-classes": { "posix-character-classes": {
"version": "0.1.1", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz",

View File

@ -37,9 +37,6 @@
"peerDependencies": { "peerDependencies": {
"react": ">=16" "react": ">=16"
}, },
"dependencies": {
"polyfill-object.fromentries": "1.0.1"
},
"devDependencies": { "devDependencies": {
"@commitlint/cli": "12.1.4", "@commitlint/cli": "12.1.4",
"@commitlint/config-conventional": "12.1.4", "@commitlint/config-conventional": "12.1.4",

View File

@ -1,5 +1,4 @@
import React, { useRef } from 'react' import React, { useRef } from 'react'
import 'polyfill-object.fromentries'
export interface FormDataObject { export interface FormDataObject {
[key: string]: FormDataEntryValue [key: string]: FormDataEntryValue