chore: Remove dependancy (#39389)

## Description
Remove immer library


Fixes #
https://theappsmith.slack.com/archives/C0134BAVDB4/p1740028929478969?thread_ts=1738822154.732719&cid=C0134BAVDB4

## Automation

/ok-to-test tags="@tag.All"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/13455561224>
> Commit: f695cd9f06e06c23a2a6ead401149045f2ac4bec
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13455561224&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Fri, 21 Feb 2025 12:20:17 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
	- Refined error logging for improved troubleshooting clarity.
	- Removed an unnecessary dependency to streamline project maintenance.
- Updated state management implementation in the reducer for enhanced
performance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Vemparala Surya Vamsi <vamsi@appsmith.com>
This commit is contained in:
Sagar Khalasi 2025-03-12 09:19:02 +05:30 committed by GitHub
parent 9403dfb544
commit 445880f5a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 6 deletions

View File

@ -44,7 +44,7 @@ export const getConsolidatedDataApi = (
updatedResponse.data.featureFlags.data = { ...flags };
return res.send(updatedResponse);
} catch (e) {
cy.log(`vamsi error `, e);
cy.log(`Featureflags.ts error `, e);
}
}
});

View File

@ -349,7 +349,6 @@
"html-webpack-plugin": "^5.5.0",
"husky": "^8.0.0",
"identity-obj-proxy": "^3.0.0",
"immer": "^9.0.6",
"jest": "^29.6.1",
"jest-canvas-mock": "^2.3.1",
"jest-environment-jsdom": "^29.6.1",

View File

@ -7,7 +7,7 @@ import type {
FormEvalOutput,
FormEvaluationState,
} from "./formEvaluationReducer";
import produce from "immer";
import { create } from "mutative";
// // Type for the object that will store the eval output for the app
export type TriggerValuesEvaluationState = Record<string, FormEvalOutput>;
@ -66,7 +66,7 @@ const triggers = createReducer(initialState, {
state: FormEvaluationState,
action: ReduxAction<TriggerActionNextPagePayload>,
) =>
produce(state, (draftState) => {
create(state, (draftState) => {
const { actionId, identifier, value: newValue } = action.payload;
if (!draftState[actionId][identifier].fetchDynamicValues?.data) {

View File

@ -13650,7 +13650,6 @@ __metadata:
html-webpack-plugin: ^5.5.0
husky: ^8.0.0
identity-obj-proxy: ^3.0.0
immer: ^9.0.6
interweave: ^12.7.2
interweave-autolink: ^4.4.2
jest: ^29.6.1
@ -21506,7 +21505,7 @@ __metadata:
languageName: node
linkType: hard
"immer@npm:^9.0.6, immer@npm:^9.0.7":
"immer@npm:^9.0.7":
version: 9.0.21
resolution: "immer@npm:9.0.21"
checksum: 70e3c274165995352f6936695f0ef4723c52c92c92dd0e9afdfe008175af39fa28e76aafb3a2ca9d57d1fb8f796efc4dd1e1cc36f18d33fa5b74f3dfb0375432