Skip to content

Commit

Permalink
Updated immer and removed polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
remyvdwereld committed Aug 13, 2024
1 parent 1641ee2 commit 339ef19
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 86 deletions.
80 changes: 8 additions & 72 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,14 @@
"eslint-config-react-app": "^7.0.1",
"final-form": "^4.20.10",
"final-form-arrays": "^3.0.2",
"immer": "^9.0.16",
"immer": "^10.1.1",
"keycloak-js": "^24.0.1",
"lodash.debounce": "^4.0.8",
"lodash.isempty": "^4.4.0",
"lodash.merge": "^4.6.2",
"moment": "^2.29.4",
"qs": "^6.11.2",
"react": "^17.0.2",
"react-app-polyfill": "^3.0.0",
"react-dom": "^17.0.2",
"react-final-form": "^6.5.9",
"react-final-form-arrays": "^3.1.4",
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/shared/Form/ShowHide/ShowHide.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import { useEffect } from "react"
import produce from "immer"
import { produce } from "immer"
import { useFormState, useForm } from "react-final-form"
import { FormState } from "final-form"
import { Dimensions, Responsive } from "@amsterdam/amsterdam-react-final-form"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComponentProps, ReactNode, useCallback, useEffect, useReducer } from "react"
import { useLocation } from "react-router-dom"
import produce from "immer"
import { produce } from "immer"
import { Alert } from "@amsterdam/asc-ui"

export type FlashMessage = ComponentProps<typeof Alert>
Expand Down
2 changes: 1 addition & 1 deletion src/app/state/rest/hooks/useApiCache.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useCallback, useReducer } from "react"
import produce from "immer"
import { produce } from "immer"

export type ApiCacheItem = {
valid: boolean
Expand Down
2 changes: 1 addition & 1 deletion src/app/state/rest/hooks/useRequestQueue.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useReducer, useCallback, useEffect, useState } from "react"
import produce from "immer"
import { produce } from "immer"

type QueuedPromise = () => Promise<any>

Expand Down
2 changes: 0 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "./polyfills/"

import { StrictMode } from "react"
import ReactDOM from "react-dom"
import App from "./App"
Expand Down
6 changes: 0 additions & 6 deletions src/polyfills/index.ts

This file was deleted.

0 comments on commit 339ef19

Please sign in to comment.