Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve treeshakeability of build artifacts #4435

Merged
merged 27 commits into from
Jul 25, 2024

Conversation

aryaemami59
Copy link
Contributor

This PR:

  • Adds @__PURE__ annotation to some of the function call sites to improve treeshakeability.

Copy link

codesandbox bot commented Jun 1, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

codesandbox-ci bot commented Jun 1, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8be6e5f:

Sandbox Source
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration
rtk-esm-cra Configuration

Copy link

netlify bot commented Jun 1, 2024

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit 8be6e5f
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/66a223cff69f4e0008cb140a
😎 Deploy Preview https://deploy-preview-4435--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@aryaemami59
Copy link
Contributor Author

aryaemami59 commented Jun 25, 2024

@reduxjs/toolkit Summary

With Rollup

addListener changes (Click to expand)

File Content:

export { addListener } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/addListener.js	2024-07-12 05:10:42.997640600 -0500
+++ after/@reduxjs/toolkit/addListener.js	2024-07-12 05:08:28.183349900 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -32,81 +19,13 @@
   return actionCreator;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
+// src/listenerMiddleware/index.ts
+var {
+  assign
+} = Object;
 var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
+var addListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/add`), {
   withTypes: () => addListener
 });
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}

 export { addListener };
applyMiddleware changes (Click to expand)

File Content:

export { applyMiddleware } from '@reduxjs/toolkit'
Before and After
asyncThunkCreator changes (Click to expand)

File Content:

export { asyncThunkCreator } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/asyncThunkCreator.js	2024-07-12 05:10:39.401781500 -0500
+++ after/@reduxjs/toolkit/asyncThunkCreator.js	2024-07-12 05:08:26.874630200 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
@@ -266,67 +253,6 @@
   [asyncThunkSymbol]: createAsyncThunk
 };

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
autoBatchEnhancer changes (Click to expand)

File Content:

export { autoBatchEnhancer } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/autoBatchEnhancer.js	2024-07-12 05:10:43.716639900 -0500
+++ after/@reduxjs/toolkit/autoBatchEnhancer.js	2024-07-12 05:08:31.844215100 -0500
@@ -1,36 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/autoBatchEnhancer.ts
 var SHOULD_AUTOBATCH = "RTK_autoBatch";
@@ -88,81 +61,4 @@
   });
 };

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { autoBatchEnhancer };
bindActionCreators changes (Click to expand)

File Content:

export { bindActionCreators } from '@reduxjs/toolkit'
Before and After
buildCreateSlice changes (Click to expand)

File Content:

export { buildCreateSlice } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/buildCreateSlice.js	2024-07-12 05:10:41.232107300 -0500
+++ after/@reduxjs/toolkit/buildCreateSlice.js	2024-07-12 05:08:28.808023200 -0500
@@ -1,22 +1,27 @@
 import { isAction } from 'redux';
-import { isDraft, current, isDraftable, produce } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isDraftable, produce, isDraft } from 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function freezeDraftable(val) {
+  return isDraftable(val) ? produce(val, () => {
+  }) : val;
+}
+function emplace(map, key, handler) {
+  if (map.has(key)) {
+    let value = map.get(key);
+    if (handler.update) {
+      value = handler.update(value, key, map);
+      map.set(key, value);
+    }
+    return value;
+  }
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
+  const inserted = handler.insert(key, map);
+  map.set(key, inserted);
+  return inserted;
+}

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -47,25 +52,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function freezeDraftable(val) {
-  return isDraftable(val) ? produce(val, () => {
-  }) : val;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}

 // src/mapBuilders.ts
 function executeReducerBuilderCallback(builderCallback) {
@@ -153,17 +139,6 @@
   return reducer;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/createSlice.ts
 var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
 function getType(slice, actionKey) {
@@ -260,13 +235,11 @@
     const injectedSelectorCache = /* @__PURE__ */ new Map();
     let _reducer;
     function reducer(state, action) {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer(state, action);
     }
     function getInitialState() {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer.getInitialState();
     }
     function makeSelectorProps(reducerPath2, injected = false) {
@@ -434,67 +407,6 @@
 function noop() {
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
clearAllListeners changes (Click to expand)

File Content:

export { clearAllListeners } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/clearAllListeners.js	2024-07-12 05:10:41.894270300 -0500
+++ after/@reduxjs/toolkit/clearAllListeners.js	2024-07-12 05:08:31.864214200 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -31,82 +18,7 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
 var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-var clearAllListeners = createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
+var clearAllListeners = /* @__PURE__ */ createAction(`${alm}/removeAll`);

 export { clearAllListeners };
combineReducers changes (Click to expand)

File Content:

export { combineReducers } from '@reduxjs/toolkit'
Before and After
combineSlices changes (Click to expand)

File Content:

export { combineSlices } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/combineSlices.js	2024-07-12 05:10:37.724008300 -0500
+++ after/@reduxjs/toolkit/combineSlices.js	2024-07-12 05:08:24.804314200 -0500
@@ -1,36 +1,9 @@
-import { isAction, combineReducers } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { combineReducers } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function emplace(map, key, handler) {
   if (map.has(key)) {
     let value = map.get(key);
@@ -40,8 +13,7 @@
     }
     return value;
   }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
   const inserted = handler.insert(key, map);
   map.set(key, inserted);
   return inserted;
@@ -57,67 +29,6 @@
   }
   return id;
 };
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
 var isSliceLike = (maybeSliceLike) => "reducerPath" in maybeSliceLike && typeof maybeSliceLike.reducerPath === "string";
 var getReducers = (slices) => slices.flatMap((sliceOrMap) => isSliceLike(sliceOrMap) ? [[sliceOrMap.reducerPath, sliceOrMap.reducer]] : Object.entries(sliceOrMap));
 var ORIGINAL_STATE = Symbol.for("rtk-state-proxy-original");
@@ -126,8 +37,7 @@
 var createStateProxy = (state, reducerMap) => emplace(stateProxyMap, state, {
   insert: () => new Proxy(state, {
     get: (target, prop, receiver) => {
-      if (prop === ORIGINAL_STATE)
-        return target;
+      if (prop === ORIGINAL_STATE) return target;
       const result = Reflect.get(target, prop, receiver);
       if (typeof result === "undefined") {
         const reducer = reducerMap[prop.toString()];
compose changes (Click to expand)

File Content:

export { compose } from '@reduxjs/toolkit'
Before and After
configureStore changes (Click to expand)

File Content:

export { configureStore } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/configureStore.js	2024-07-12 05:10:42.213270100 -0500
+++ after/@reduxjs/toolkit/configureStore.js	2024-07-12 05:08:31.999216700 -0500
@@ -1,84 +1,15 @@
-import { isPlainObject, combineReducers, applyMiddleware, createStore, compose, isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject, combineReducers, applyMiddleware, createStore, compose } from 'redux';
+import 'immer';
+import 'reselect';
 import { thunk, withExtraArgument } from 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
 var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
-  if (arguments.length === 0)
-    return void 0;
-  if (typeof arguments[0] === "object")
-    return compose;
+  if (arguments.length === 0) return void 0;
+  if (typeof arguments[0] === "object") return compose;
   return compose.apply(null, arguments);
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-var Tuple = class _Tuple extends Array {
-  constructor(...items) {
-    super(...items);
-    Object.setPrototypeOf(this, _Tuple.prototype);
-  }
-  static get [Symbol.species]() {
-    return _Tuple;
-  }
-  concat(...arr) {
-    return super.concat.apply(this, arr);
-  }
-  prepend(...arr) {
-    if (arr.length === 1 && Array.isArray(arr[0])) {
-      return new _Tuple(...arr[0].concat(this));
-    }
-    return new _Tuple(...arr.concat(this));
-  }
-};
-
-// src/getDefaultMiddleware.ts
-function isBoolean(x) {
-  return typeof x === "boolean";
-}
-var buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {
-  const {
-    thunk: thunk$1 = true,
-    immutableCheck = true,
-    serializableCheck = true,
-    actionCreatorCheck = true
-  } = options ?? {};
-  let middlewareArray = new Tuple();
-  if (thunk$1) {
-    if (isBoolean(thunk$1)) {
-      middlewareArray.push(thunk);
-    } else {
-      middlewareArray.push(withExtraArgument(thunk$1.extraArgument));
-    }
-  }
-  return middlewareArray;
-};
-
 // src/autoBatchEnhancer.ts
 var SHOULD_AUTOBATCH = "RTK_autoBatch";
 var createQueueWithTimer = (timeout) => {
@@ -134,6 +65,24 @@
     }
   });
 };
+var Tuple = class _Tuple extends Array {
+  constructor(...items) {
+    super(...items);
+    Object.setPrototypeOf(this, _Tuple.prototype);
+  }
+  static get [Symbol.species]() {
+    return _Tuple;
+  }
+  concat(...arr) {
+    return super.concat.apply(this, arr);
+  }
+  prepend(...arr) {
+    if (arr.length === 1 && Array.isArray(arr[0])) {
+      return new _Tuple(...arr[0].concat(this));
+    }
+    return new _Tuple(...arr.concat(this));
+  }
+};

 // src/getDefaultEnhancers.ts
 var buildGetDefaultEnhancers = (middlewareEnhancer) => function getDefaultEnhancers(options) {
@@ -147,8 +96,29 @@
   return enhancerArray;
 };

+// src/getDefaultMiddleware.ts
+function isBoolean(x) {
+  return typeof x === "boolean";
+}
+var buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {
+  const {
+    thunk: thunk$1 = true,
+    immutableCheck = true,
+    serializableCheck = true,
+    actionCreatorCheck = true
+  } = options ?? {};
+  let middlewareArray = new Tuple();
+  if (thunk$1) {
+    if (isBoolean(thunk$1)) {
+      middlewareArray.push(thunk);
+    } else {
+      middlewareArray.push(withExtraArgument(thunk$1.extraArgument));
+    }
+  }
+  return middlewareArray;
+};
+
 // src/configureStore.ts
-var IS_PRODUCTION = "production" === "production";
 function configureStore(options) {
   const getDefaultMiddleware = buildGetDefaultMiddleware();
   const {
@@ -176,7 +146,7 @@
   if (devTools) {
     finalCompose = composeWithDevTools({
       // Enable capture of stack traces for dispatched Redux actions
-      trace: !IS_PRODUCTION,
+      trace: "production" !== "production",
       ...typeof devTools === "object" && devTools
     });
   }
@@ -187,78 +157,6 @@
   return createStore(rootReducer, preloadedState, composedEnhancer);
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
createAction changes (Click to expand)

File Content:

export { createAction } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createAction.js	2024-07-12 05:10:44.995034300 -0500
+++ after/@reduxjs/toolkit/createAction.js	2024-07-12 05:08:32.412214300 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -48,78 +35,6 @@
   return actionCreator;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
createActionCreatorInvariantMiddleware changes (Click to expand)

File Content:

export { createActionCreatorInvariantMiddleware } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createActionCreatorInvariantMiddleware.js	2024-07-12 05:10:45.432980300 -0500
+++ after/@reduxjs/toolkit/createActionCreatorInvariantMiddleware.js	2024-07-12 05:08:27.465349100 -0500
@@ -1,117 +1,13 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function createActionCreatorInvariantMiddleware(options = {}) {
   {
     return () => (next) => (action) => next(action);
   }
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { createActionCreatorInvariantMiddleware };
createAsyncThunk changes (Click to expand)

File Content:

export { createAsyncThunk } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createAsyncThunk.js	2024-07-12 05:10:44.371033000 -0500
+++ after/@reduxjs/toolkit/createAsyncThunk.js	2024-07-12 05:08:29.971715100 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
@@ -260,67 +247,6 @@
   return value !== null && typeof value === "object" && typeof value.then === "function";
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
createDraftSafeSelector changes (Click to expand)

File Content:

export { createDraftSafeSelector } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createDraftSafeSelector.js	2024-07-12 05:10:44.848034300 -0500
+++ after/@reduxjs/toolkit/createDraftSafeSelector.js	2024-07-12 05:08:30.672414700 -0500
@@ -1,4 +1,4 @@
-import { isAction } from 'redux';
+import 'redux';
 import { isDraft, current } from 'immer';
 import { createSelectorCreator, weakMapMemoize } from 'reselect';
 import 'redux-thunk';
@@ -16,97 +16,6 @@
   });
   return createDraftSafeSelector2;
 };
-var createDraftSafeSelector = createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
+var createDraftSafeSelector = /* @__PURE__ */ createDraftSafeSelectorCreator(weakMapMemoize);

 export { createDraftSafeSelector };
createDraftSafeSelectorCreator changes (Click to expand)

File Content:

export { createDraftSafeSelectorCreator } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createDraftSafeSelectorCreator.js	2024-07-12 05:10:44.616033300 -0500
+++ after/@reduxjs/toolkit/createDraftSafeSelectorCreator.js	2024-07-12 05:08:32.473215200 -0500
@@ -1,6 +1,6 @@
-import { isAction } from 'redux';
+import 'redux';
 import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { createSelectorCreator } from 'reselect';
 import 'redux-thunk';

 // src/index.ts
@@ -16,97 +16,5 @@
   });
   return createDraftSafeSelector2;
 };
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}

 export { createDraftSafeSelectorCreator };
createDynamicMiddleware changes (Click to expand)

File Content:

export { createDynamicMiddleware } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createDynamicMiddleware.js	2024-07-12 05:10:44.555034100 -0500
+++ after/@reduxjs/toolkit/createDynamicMiddleware.js	2024-07-12 05:08:32.460214500 -0500
@@ -1,22 +1,31 @@
 import { isAction, compose } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function find(iterable, comparator) {
+  for (const entry of iterable) {
+    if (comparator(entry)) {
+      return entry;
+    }
+  }
+  return void 0;
+}
+function emplace(map, key, handler) {
+  if (map.has(key)) {
+    let value = map.get(key);
+    if (handler.update) {
+      value = handler.update(value, key, map);
+      map.set(key, value);
+    }
+    return value;
+  }
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
+  const inserted = handler.insert(key, map);
+  map.set(key, inserted);
+  return inserted;
+}

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
@@ -52,29 +61,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function find(iterable, comparator) {
-  for (const entry of iterable) {
-    if (comparator(entry)) {
-      return entry;
-    }
-  }
-  return void 0;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}

 // src/nanoid.ts
 var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
@@ -100,67 +86,6 @@
     return matchers.every((matcher) => matches(matcher, action));
   };
 }
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
 var createMiddlewareEntry = (middleware) => ({
   id: nanoid(),
   middleware,
createEntityAdapter changes (Click to expand)

File Content:

export { createEntityAdapter } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createEntityAdapter.js	2024-07-12 05:10:43.724641200 -0500
+++ after/@reduxjs/toolkit/createEntityAdapter.js	2024-07-12 05:08:32.257215500 -0500
@@ -1,5 +1,5 @@
 import { isAction } from 'redux';
-import { isDraft, current, produce } from 'immer';
+import { produce, isDraft, current } from 'immer';
 import { createSelectorCreator, weakMapMemoize } from 'reselect';
 import 'redux-thunk';

@@ -16,21 +16,7 @@
   });
   return createDraftSafeSelector2;
 };
-var createDraftSafeSelector = createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
+var createDraftSafeSelector = /* @__PURE__ */ createDraftSafeSelectorCreator(weakMapMemoize);
 function isFSA(action) {
   return isAction(action) && Object.keys(action).every(isValidKey);
 }
@@ -38,17 +24,6 @@
   return ["type", "payload", "error", "meta"].indexOf(key) > -1;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/entities/entity_state.ts
 function getInitialEntityState() {
   return {
@@ -458,70 +433,4 @@
   };
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { createEntityAdapter };
createImmutableStateInvariantMiddleware changes (Click to expand)

File Content:

export { createImmutableStateInvariantMiddleware } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createImmutableStateInvariantMiddleware.js	2024-07-12 05:10:43.974878000 -0500
+++ after/@reduxjs/toolkit/createImmutableStateInvariantMiddleware.js	2024-07-12 05:08:32.131215000 -0500
@@ -1,117 +1,13 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function createImmutableStateInvariantMiddleware(options = {}) {
   {
     return () => (next) => (action) => next(action);
   }
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { createImmutableStateInvariantMiddleware };
createListenerMiddleware changes (Click to expand)

File Content:

export { createListenerMiddleware } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createListenerMiddleware.js	2024-07-12 05:10:43.988883300 -0500
+++ after/@reduxjs/toolkit/createListenerMiddleware.js	2024-07-12 05:08:30.891414000 -0500
@@ -1,22 +1,17 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function find(iterable, comparator) {
+  for (const entry of iterable) {
+    if (comparator(entry)) {
+      return entry;
+    }
+  }
+  return void 0;
+}

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -31,14 +26,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function find(iterable, comparator) {
-  for (const entry of iterable) {
-    if (comparator(entry)) {
-      return entry;
-    }
-  }
-  return void 0;
-}

 // src/nanoid.ts
 var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
@@ -249,7 +236,7 @@
     effect
   };
 };
-var createListenerEntry = Object.assign((options) => {
+var createListenerEntry = /* @__PURE__ */ assign((options) => {
   const {
     type,
     predicate,
@@ -290,11 +277,11 @@
     }, 0);
   }
 };
-var addListener = Object.assign(createAction(`${alm}/add`), {
+var addListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/add`), {
   withTypes: () => addListener
 });
-var clearAllListeners = createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
+var clearAllListeners = /* @__PURE__ */ createAction(`${alm}/removeAll`);
+var removeListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/remove`), {
   withTypes: () => removeListener
 });
 var defaultErrorHandler = (...args) => {
@@ -324,7 +311,7 @@
     }
     return insertEntry(entry);
   };
-  Object.assign(startListening, {
+  assign(startListening, {
     withTypes: () => startListening
   });
   const stopListening = (options) => {
@@ -345,7 +332,7 @@
     }
     return !!entry;
   };
-  Object.assign(stopListening, {
+  assign(stopListening, {
     withTypes: () => stopListening
   });
   const notifyListener = async (entry, action, api, getOriginalState) => {
createNextState changes (Click to expand)

File Content:

export { createNextState } from '@reduxjs/toolkit'
Before and After
createReducer changes (Click to expand)

File Content:

export { createReducer } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createReducer.js	2024-07-12 05:10:44.243033100 -0500
+++ after/@reduxjs/toolkit/createReducer.js	2024-07-12 05:08:31.951213700 -0500
@@ -1,36 +1,9 @@
-import { isAction } from 'redux';
-import { isDraftable, produce, isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import { isDraftable, produce, isDraft } from 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function freezeDraftable(val) {
   return isDraftable(val) ? produce(val, () => {
   }) : val;
@@ -122,78 +95,6 @@
   return reducer;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
createSelector changes (Click to expand)

File Content:

export { createSelector } from '@reduxjs/toolkit'
Before and After
createSelectorCreator changes (Click to expand)

File Content:

export { createSelectorCreator } from '@reduxjs/toolkit'
Before and After
createSerializableStateInvariantMiddleware changes (Click to expand)

File Content:

export { createSerializableStateInvariantMiddleware } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createSerializableStateInvariantMiddleware.js	2024-07-12 05:10:44.735033100 -0500
+++ after/@reduxjs/toolkit/createSerializableStateInvariantMiddleware.js	2024-07-12 05:08:29.479715200 -0500
@@ -1,117 +1,13 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function createSerializableStateInvariantMiddleware(options = {}) {
   {
     return () => (next) => (action) => next(action);
   }
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { createSerializableStateInvariantMiddleware };
createSlice changes (Click to expand)

File Content:

export { createSlice } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/createSlice.js	2024-07-12 05:10:44.491033000 -0500
+++ after/@reduxjs/toolkit/createSlice.js	2024-07-12 05:08:32.683946600 -0500
@@ -1,22 +1,27 @@
 import { isAction } from 'redux';
-import { isDraft, current, isDraftable, produce } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isDraftable, produce, isDraft } from 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function freezeDraftable(val) {
+  return isDraftable(val) ? produce(val, () => {
+  }) : val;
+}
+function emplace(map, key, handler) {
+  if (map.has(key)) {
+    let value = map.get(key);
+    if (handler.update) {
+      value = handler.update(value, key, map);
+      map.set(key, value);
+    }
+    return value;
+  }
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
+  const inserted = handler.insert(key, map);
+  map.set(key, inserted);
+  return inserted;
+}

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -47,25 +52,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function freezeDraftable(val) {
-  return isDraftable(val) ? produce(val, () => {
-  }) : val;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}

 // src/mapBuilders.ts
 function executeReducerBuilderCallback(builderCallback) {
@@ -153,17 +139,6 @@
   return reducer;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/createSlice.ts
 var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
 function getType(slice, actionKey) {
@@ -260,13 +235,11 @@
     const injectedSelectorCache = /* @__PURE__ */ new Map();
     let _reducer;
     function reducer(state, action) {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer(state, action);
     }
     function getInitialState() {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer.getInitialState();
     }
     function makeSelectorProps(reducerPath2, injected = false) {
@@ -435,67 +408,6 @@
 function noop() {
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
createStore changes (Click to expand)

File Content:

export { createStore } from '@reduxjs/toolkit'
Before and After
current changes (Click to expand)

File Content:

export { current } from '@reduxjs/toolkit'
Before and After
findNonSerializableValue changes (Click to expand)

File Content:

export { findNonSerializableValue } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/findNonSerializableValue.js	2024-07-12 05:10:45.355981700 -0500
+++ after/@reduxjs/toolkit/findNonSerializableValue.js	2024-07-12 05:08:29.640715200 -0500
@@ -1,36 +1,9 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function isPlain(val) {
   const type = typeof val;
   return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
@@ -46,8 +19,7 @@
   if (typeof value !== "object" || value === null) {
     return false;
   }
-  if (cache?.has(value))
-    return false;
+  if (cache?.has(value)) return false;
   const entries = getEntries != null ? getEntries(value) : Object.entries(value);
   const hasIgnoredPaths = ignoredPaths.length > 0;
   for (const [key, nestedValue] of entries) {
@@ -76,97 +48,16 @@
       }
     }
   }
-  if (cache && isNestedFrozen(value))
-    cache.add(value);
+  if (cache && isNestedFrozen(value)) cache.add(value);
   return false;
 }
 function isNestedFrozen(value) {
-  if (!Object.isFrozen(value))
-    return false;
+  if (!Object.isFrozen(value)) return false;
   for (const nestedValue of Object.values(value)) {
-    if (typeof nestedValue !== "object" || nestedValue === null)
-      continue;
-    if (!isNestedFrozen(nestedValue))
-      return false;
+    if (typeof nestedValue !== "object" || nestedValue === null) continue;
+    if (!isNestedFrozen(nestedValue)) return false;
   }
   return true;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { findNonSerializableValue };
formatProdErrorMessage changes (Click to expand)

File Content:

export { formatProdErrorMessage } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/formatProdErrorMessage.js	2024-07-12 05:10:44.667034300 -0500
+++ after/@reduxjs/toolkit/formatProdErrorMessage.js	2024-07-12 05:08:31.969214900 -0500
@@ -1,108 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});

 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
freeze changes (Click to expand)

File Content:

export { freeze } from '@reduxjs/toolkit'
Before and After
isAction changes (Click to expand)

File Content:

export { isAction } from '@reduxjs/toolkit'
Before and After
isActionCreator changes (Click to expand)

File Content:

export { isActionCreator } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isActionCreator.js	2024-07-12 05:10:45.271981500 -0500
+++ after/@reduxjs/toolkit/isActionCreator.js	2024-07-12 05:08:32.974947100 -0500
@@ -1,121 +1,17 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function isActionCreator(action) {
   return typeof action === "function" && "type" in action && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
   hasMatchFunction(action);
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isActionCreator };
isAllOf changes (Click to expand)

File Content:

export { isAllOf } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isAllOf.js	2024-07-12 05:10:44.442033900 -0500
+++ after/@reduxjs/toolkit/isAllOf.js	2024-07-12 05:08:29.542714400 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,70 +24,4 @@
   };
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isAllOf };
isAnyOf changes (Click to expand)

File Content:

export { isAnyOf } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isAnyOf.js	2024-07-12 05:10:42.644271100 -0500
+++ after/@reduxjs/toolkit/isAnyOf.js	2024-07-12 05:08:32.772946800 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,70 +24,4 @@
   };
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isAnyOf };
isAsyncThunkAction changes (Click to expand)

File Content:

export { isAsyncThunkAction } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isAsyncThunkAction.js	2024-07-12 05:10:45.310980800 -0500
+++ after/@reduxjs/toolkit/isAsyncThunkAction.js	2024-07-12 05:08:32.773947700 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,8 +24,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -81,70 +42,4 @@
   return isAnyOf(...asyncThunks.flatMap((asyncThunk) => [asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled]));
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isAsyncThunkAction };
isDraft changes (Click to expand)

File Content:

export { isDraft } from '@reduxjs/toolkit'
Before and After
isFluxStandardAction changes (Click to expand)

File Content:

export { isFluxStandardAction } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isFluxStandardAction.js	2024-07-12 05:10:45.870979900 -0500
+++ after/@reduxjs/toolkit/isFluxStandardAction.js	2024-07-12 05:08:33.200948000 -0500
@@ -1,36 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function isFSA(action) {
   return isAction(action) && Object.keys(action).every(isValidKey);
 }
@@ -38,81 +11,4 @@
   return ["type", "payload", "error", "meta"].indexOf(key) > -1;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isFSA as isFluxStandardAction };
isFulfilled changes (Click to expand)

File Content:

export { isFulfilled } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isFulfilled.js	2024-07-12 05:10:45.818982400 -0500
+++ after/@reduxjs/toolkit/isFulfilled.js	2024-07-12 05:08:32.945948100 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,8 +24,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -81,70 +42,4 @@
   return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.fulfilled));
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isFulfilled };
isImmutableDefault changes (Click to expand)

File Content:

export { isImmutableDefault } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isImmutableDefault.js	2024-07-12 05:10:45.605980400 -0500
+++ after/@reduxjs/toolkit/isImmutableDefault.js	2024-07-12 05:08:33.063948200 -0500
@@ -1,117 +1,13 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/immutableStateInvariantMiddleware.ts
 function isImmutableDefault(value) {
   return typeof value !== "object" || value == null || Object.isFrozen(value);
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isImmutableDefault };
isPending changes (Click to expand)

File Content:

export { isPending } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isPending.js	2024-07-12 05:10:45.090721200 -0500
+++ after/@reduxjs/toolkit/isPending.js	2024-07-12 05:08:33.270946900 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,8 +24,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -81,70 +42,4 @@
   return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.pending));
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isPending };
isPlain changes (Click to expand)

File Content:

export { isPlain } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isPlain.js	2024-07-12 05:10:45.529979700 -0500
+++ after/@reduxjs/toolkit/isPlain.js	2024-07-12 05:08:32.888948100 -0500
@@ -1,116 +1,12 @@
-import { isPlainObject, isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function isPlain(val) {
   const type = typeof val;
   return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isPlain };
isPlainObject changes (Click to expand)

File Content:

export { isPlainObject } from '@reduxjs/toolkit'
Before and After
isRejected changes (Click to expand)

File Content:

export { isRejected } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isRejected.js	2024-07-12 05:10:45.889981100 -0500
+++ after/@reduxjs/toolkit/isRejected.js	2024-07-12 05:08:33.256946000 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,8 +24,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -81,70 +42,4 @@
   return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.rejected));
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isRejected };
isRejectedWithValue changes (Click to expand)

File Content:

export { isRejectedWithValue } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/isRejectedWithValue.js	2024-07-12 05:10:45.540980200 -0500
+++ after/@reduxjs/toolkit/isRejectedWithValue.js	2024-07-12 05:08:32.960947700 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -67,8 +29,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -98,70 +59,4 @@
   return isAllOf(isRejected(...asyncThunks), hasFlag);
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isRejectedWithValue };
legacy_createStore changes (Click to expand)

File Content:

export { legacy_createStore } from '@reduxjs/toolkit'
Before and After
lruMemoize changes (Click to expand)

File Content:

export { lruMemoize } from '@reduxjs/toolkit'
Before and After
miniSerializeError changes (Click to expand)

File Content:

export { miniSerializeError } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/miniSerializeError.js	2024-07-12 05:10:46.143731400 -0500
+++ after/@reduxjs/toolkit/miniSerializeError.js	2024-07-12 05:08:33.436947100 -0500
@@ -1,47 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};

 // src/createAsyncThunk.ts
 var commonProperties = ["name", "message", "stack", "code"];
@@ -60,70 +22,4 @@
   };
 };

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { miniSerializeError };
nanoid changes (Click to expand)

File Content:

export { nanoid } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/nanoid.js	2024-07-12 05:10:45.929980400 -0500
+++ after/@reduxjs/toolkit/nanoid.js	2024-07-12 05:08:33.608948400 -0500
@@ -1,36 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/nanoid.ts
 var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
@@ -43,70 +16,4 @@
   return id;
 };

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { nanoid };
original changes (Click to expand)

File Content:

export { original } from '@reduxjs/toolkit'
Before and After
prepareAutoBatched changes (Click to expand)

File Content:

export { prepareAutoBatched } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/prepareAutoBatched.js	2024-07-12 05:10:45.993981100 -0500
+++ after/@reduxjs/toolkit/prepareAutoBatched.js	2024-07-12 05:08:33.125946400 -0500
@@ -1,36 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/autoBatchEnhancer.ts
 var SHOULD_AUTOBATCH = "RTK_autoBatch";
@@ -41,81 +14,4 @@
   }
 });

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { prepareAutoBatched };
ReducerType changes (Click to expand)

File Content:

export { ReducerType } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/ReducerType.js	2024-07-12 05:10:39.508780000 -0500
+++ after/@reduxjs/toolkit/ReducerType.js	2024-07-12 05:08:31.655215200 -0500
@@ -1,47 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
 var ReducerType = /* @__PURE__ */ ((ReducerType2) => {
   ReducerType2["reducer"] = "reducer";
   ReducerType2["reducerWithPrepare"] = "reducerWithPrepare";
@@ -49,70 +11,4 @@
   return ReducerType2;
 })(ReducerType || {});

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { ReducerType };
removeListener changes (Click to expand)

File Content:

export { removeListener } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/removeListener.js	2024-07-12 05:10:46.186731700 -0500
+++ after/@reduxjs/toolkit/removeListener.js	2024-07-12 05:08:33.087946900 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -32,81 +19,13 @@
   return actionCreator;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
+// src/listenerMiddleware/index.ts
+var {
+  assign
+} = Object;
 var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
+var removeListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/remove`), {
   withTypes: () => removeListener
 });

-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { removeListener };
SHOULD_AUTOBATCH changes (Click to expand)

File Content:

export { SHOULD_AUTOBATCH } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/SHOULD_AUTOBATCH.js	2024-07-12 05:10:43.425641700 -0500
+++ after/@reduxjs/toolkit/SHOULD_AUTOBATCH.js	2024-07-12 05:08:31.834214600 -0500
@@ -1,115 +1,11 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/autoBatchEnhancer.ts
 var SHOULD_AUTOBATCH = "RTK_autoBatch";

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { SHOULD_AUTOBATCH };
TaskAbortError changes (Click to expand)

File Content:

export { TaskAbortError } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/TaskAbortError.js	2024-07-12 05:10:42.958300600 -0500
+++ after/@reduxjs/toolkit/TaskAbortError.js	2024-07-12 05:08:28.541023200 -0500
@@ -1,47 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};

 // src/listenerMiddleware/exceptions.ts
 var task = "task";
@@ -55,70 +17,4 @@
   message;
 };

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { TaskAbortError };
Tuple changes (Click to expand)

File Content:

export { Tuple } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/Tuple.js	2024-07-12 05:10:42.945976600 -0500
+++ after/@reduxjs/toolkit/Tuple.js	2024-07-12 05:08:28.218347900 -0500
@@ -1,36 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 var Tuple = class _Tuple extends Array {
   constructor(...items) {
     super(...items);
@@ -50,81 +23,4 @@
   }
 };

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { Tuple };
unwrapResult changes (Click to expand)

File Content:

export { unwrapResult } from '@reduxjs/toolkit'
Before and After
--- before/@reduxjs/toolkit/unwrapResult.js	2024-07-12 05:10:45.775981900 -0500
+++ after/@reduxjs/toolkit/unwrapResult.js	2024-07-12 05:08:32.627799500 -0500
@@ -1,47 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
 function unwrapResult(action) {
   if (action.meta && action.meta.rejectedWithValue) {
     throw action.payload;
@@ -52,70 +14,4 @@
   return action.payload;
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { unwrapResult };
weakMapMemoize changes (Click to expand)

File Content:

export { weakMapMemoize } from '@reduxjs/toolkit'
Before and After
__DO_NOT_USE__ActionTypes changes (Click to expand)

File Content:

export { __DO_NOT_USE__ActionTypes } from '@reduxjs/toolkit'
Before and After

@aryaemami59
Copy link
Contributor Author

aryaemami59 commented Jun 25, 2024

@reduxjs/toolkit/react Summary

With Rollup

addListener changes (Click to expand)

File Content:

export { addListener } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/addListener.js	2024-07-12 05:12:11.374820100 -0500
+++ after/@reduxjs/toolkit/react/addListener.js	2024-07-12 05:06:31.804028400 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -32,81 +19,13 @@
   return actionCreator;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
+// src/listenerMiddleware/index.ts
+var {
+  assign
+} = Object;
 var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
+var addListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/add`), {
   withTypes: () => addListener
 });
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}

 export { addListener };
applyMiddleware changes (Click to expand)

File Content:

export { applyMiddleware } from '@reduxjs/toolkit/react'
Before and After
asyncThunkCreator changes (Click to expand)

File Content:

export { asyncThunkCreator } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/asyncThunkCreator.js	2024-07-12 05:12:10.240821600 -0500
+++ after/@reduxjs/toolkit/react/asyncThunkCreator.js	2024-07-12 05:06:28.039407800 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
@@ -266,67 +253,6 @@
   [asyncThunkSymbol]: createAsyncThunk
 };

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
autoBatchEnhancer changes (Click to expand)

File Content:

export { autoBatchEnhancer } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/autoBatchEnhancer.js	2024-07-12 05:12:10.634820300 -0500
+++ after/@reduxjs/toolkit/react/autoBatchEnhancer.js	2024-07-12 05:06:30.956027200 -0500
@@ -1,36 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/autoBatchEnhancer.ts
 var SHOULD_AUTOBATCH = "RTK_autoBatch";
@@ -88,81 +61,4 @@
   });
 };

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { autoBatchEnhancer };
bindActionCreators changes (Click to expand)

File Content:

export { bindActionCreators } from '@reduxjs/toolkit/react'
Before and After
buildCreateSlice changes (Click to expand)

File Content:

export { buildCreateSlice } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/buildCreateSlice.js	2024-07-12 05:12:07.087819400 -0500
+++ after/@reduxjs/toolkit/react/buildCreateSlice.js	2024-07-12 05:06:28.972578700 -0500
@@ -1,22 +1,27 @@
 import { isAction } from 'redux';
-import { isDraft, current, isDraftable, produce } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isDraftable, produce, isDraft } from 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function freezeDraftable(val) {
+  return isDraftable(val) ? produce(val, () => {
+  }) : val;
+}
+function emplace(map, key, handler) {
+  if (map.has(key)) {
+    let value = map.get(key);
+    if (handler.update) {
+      value = handler.update(value, key, map);
+      map.set(key, value);
+    }
+    return value;
+  }
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
+  const inserted = handler.insert(key, map);
+  map.set(key, inserted);
+  return inserted;
+}

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -47,25 +52,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function freezeDraftable(val) {
-  return isDraftable(val) ? produce(val, () => {
-  }) : val;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}

 // src/mapBuilders.ts
 function executeReducerBuilderCallback(builderCallback) {
@@ -153,17 +139,6 @@
   return reducer;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/createSlice.ts
 var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
 function getType(slice, actionKey) {
@@ -260,13 +235,11 @@
     const injectedSelectorCache = /* @__PURE__ */ new Map();
     let _reducer;
     function reducer(state, action) {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer(state, action);
     }
     function getInitialState() {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer.getInitialState();
     }
     function makeSelectorProps(reducerPath2, injected = false) {
@@ -434,67 +407,6 @@
 function noop() {
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
clearAllListeners changes (Click to expand)

File Content:

export { clearAllListeners } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/clearAllListeners.js	2024-07-12 05:12:11.370821300 -0500
+++ after/@reduxjs/toolkit/react/clearAllListeners.js	2024-07-12 05:06:27.794405900 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -31,82 +18,7 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
 var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-var clearAllListeners = createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
+var clearAllListeners = /* @__PURE__ */ createAction(`${alm}/removeAll`);

 export { clearAllListeners };
combineReducers changes (Click to expand)

File Content:

export { combineReducers } from '@reduxjs/toolkit/react'
Before and After
combineSlices changes (Click to expand)

File Content:

export { combineSlices } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/combineSlices.js	2024-07-12 05:12:13.147821500 -0500
+++ after/@reduxjs/toolkit/react/combineSlices.js	2024-07-12 05:06:29.228580000 -0500
@@ -1,36 +1,9 @@
-import { isAction, combineReducers } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { combineReducers } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function emplace(map, key, handler) {
   if (map.has(key)) {
     let value = map.get(key);
@@ -40,8 +13,7 @@
     }
     return value;
   }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
   const inserted = handler.insert(key, map);
   map.set(key, inserted);
   return inserted;
@@ -57,67 +29,6 @@
   }
   return id;
 };
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
 var isSliceLike = (maybeSliceLike) => "reducerPath" in maybeSliceLike && typeof maybeSliceLike.reducerPath === "string";
 var getReducers = (slices) => slices.flatMap((sliceOrMap) => isSliceLike(sliceOrMap) ? [[sliceOrMap.reducerPath, sliceOrMap.reducer]] : Object.entries(sliceOrMap));
 var ORIGINAL_STATE = Symbol.for("rtk-state-proxy-original");
@@ -126,8 +37,7 @@
 var createStateProxy = (state, reducerMap) => emplace(stateProxyMap, state, {
   insert: () => new Proxy(state, {
     get: (target, prop, receiver) => {
-      if (prop === ORIGINAL_STATE)
-        return target;
+      if (prop === ORIGINAL_STATE) return target;
       const result = Reflect.get(target, prop, receiver);
       if (typeof result === "undefined") {
         const reducer = reducerMap[prop.toString()];
compose changes (Click to expand)

File Content:

export { compose } from '@reduxjs/toolkit/react'
Before and After
configureStore changes (Click to expand)

File Content:

export { configureStore } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/configureStore.js	2024-07-12 05:12:10.921819900 -0500
+++ after/@reduxjs/toolkit/react/configureStore.js	2024-07-12 05:06:30.482863800 -0500
@@ -1,84 +1,15 @@
-import { isPlainObject, combineReducers, applyMiddleware, createStore, compose, isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject, combineReducers, applyMiddleware, createStore, compose } from 'redux';
+import 'immer';
+import 'reselect';
 import { thunk, withExtraArgument } from 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
 var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
-  if (arguments.length === 0)
-    return void 0;
-  if (typeof arguments[0] === "object")
-    return compose;
+  if (arguments.length === 0) return void 0;
+  if (typeof arguments[0] === "object") return compose;
   return compose.apply(null, arguments);
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-var Tuple = class _Tuple extends Array {
-  constructor(...items) {
-    super(...items);
-    Object.setPrototypeOf(this, _Tuple.prototype);
-  }
-  static get [Symbol.species]() {
-    return _Tuple;
-  }
-  concat(...arr) {
-    return super.concat.apply(this, arr);
-  }
-  prepend(...arr) {
-    if (arr.length === 1 && Array.isArray(arr[0])) {
-      return new _Tuple(...arr[0].concat(this));
-    }
-    return new _Tuple(...arr.concat(this));
-  }
-};
-
-// src/getDefaultMiddleware.ts
-function isBoolean(x) {
-  return typeof x === "boolean";
-}
-var buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {
-  const {
-    thunk: thunk$1 = true,
-    immutableCheck = true,
-    serializableCheck = true,
-    actionCreatorCheck = true
-  } = options ?? {};
-  let middlewareArray = new Tuple();
-  if (thunk$1) {
-    if (isBoolean(thunk$1)) {
-      middlewareArray.push(thunk);
-    } else {
-      middlewareArray.push(withExtraArgument(thunk$1.extraArgument));
-    }
-  }
-  return middlewareArray;
-};
-
 // src/autoBatchEnhancer.ts
 var SHOULD_AUTOBATCH = "RTK_autoBatch";
 var createQueueWithTimer = (timeout) => {
@@ -134,6 +65,24 @@
     }
   });
 };
+var Tuple = class _Tuple extends Array {
+  constructor(...items) {
+    super(...items);
+    Object.setPrototypeOf(this, _Tuple.prototype);
+  }
+  static get [Symbol.species]() {
+    return _Tuple;
+  }
+  concat(...arr) {
+    return super.concat.apply(this, arr);
+  }
+  prepend(...arr) {
+    if (arr.length === 1 && Array.isArray(arr[0])) {
+      return new _Tuple(...arr[0].concat(this));
+    }
+    return new _Tuple(...arr.concat(this));
+  }
+};

 // src/getDefaultEnhancers.ts
 var buildGetDefaultEnhancers = (middlewareEnhancer) => function getDefaultEnhancers(options) {
@@ -147,8 +96,29 @@
   return enhancerArray;
 };

+// src/getDefaultMiddleware.ts
+function isBoolean(x) {
+  return typeof x === "boolean";
+}
+var buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {
+  const {
+    thunk: thunk$1 = true,
+    immutableCheck = true,
+    serializableCheck = true,
+    actionCreatorCheck = true
+  } = options ?? {};
+  let middlewareArray = new Tuple();
+  if (thunk$1) {
+    if (isBoolean(thunk$1)) {
+      middlewareArray.push(thunk);
+    } else {
+      middlewareArray.push(withExtraArgument(thunk$1.extraArgument));
+    }
+  }
+  return middlewareArray;
+};
+
 // src/configureStore.ts
-var IS_PRODUCTION = "production" === "production";
 function configureStore(options) {
   const getDefaultMiddleware = buildGetDefaultMiddleware();
   const {
@@ -176,7 +146,7 @@
   if (devTools) {
     finalCompose = composeWithDevTools({
       // Enable capture of stack traces for dispatched Redux actions
-      trace: !IS_PRODUCTION,
+      trace: "production" !== "production",
       ...typeof devTools === "object" && devTools
     });
   }
@@ -187,78 +157,6 @@
   return createStore(rootReducer, preloadedState, composedEnhancer);
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
createAction changes (Click to expand)

File Content:

export { createAction } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createAction.js	2024-07-12 05:12:18.133284900 -0500
+++ after/@reduxjs/toolkit/react/createAction.js	2024-07-12 05:06:31.901027200 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -48,78 +35,6 @@
   return actionCreator;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
createActionCreatorInvariantMiddleware changes (Click to expand)

File Content:

export { createActionCreatorInvariantMiddleware } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createActionCreatorInvariantMiddleware.js	2024-07-12 05:12:18.211284500 -0500
+++ after/@reduxjs/toolkit/react/createActionCreatorInvariantMiddleware.js	2024-07-12 05:06:32.084135800 -0500
@@ -1,117 +1,13 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function createActionCreatorInvariantMiddleware(options = {}) {
   {
     return () => (next) => (action) => next(action);
   }
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { createActionCreatorInvariantMiddleware };
createAsyncThunk changes (Click to expand)

File Content:

export { createAsyncThunk } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createAsyncThunk.js	2024-07-12 05:12:13.827284800 -0500
+++ after/@reduxjs/toolkit/react/createAsyncThunk.js	2024-07-12 05:06:26.489882900 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
@@ -260,67 +247,6 @@
   return value !== null && typeof value === "object" && typeof value.then === "function";
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
createDraftSafeSelector changes (Click to expand)

File Content:

export { createDraftSafeSelector } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createDraftSafeSelector.js	2024-07-12 05:12:09.182821300 -0500
+++ after/@reduxjs/toolkit/react/createDraftSafeSelector.js	2024-07-12 05:06:31.304026900 -0500
@@ -1,4 +1,4 @@
-import { isAction } from 'redux';
+import 'redux';
 import { isDraft, current } from 'immer';
 import { createSelectorCreator, weakMapMemoize } from 'reselect';
 import 'redux-thunk';
@@ -16,97 +16,6 @@
   });
   return createDraftSafeSelector2;
 };
-var createDraftSafeSelector = createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
+var createDraftSafeSelector = /* @__PURE__ */ createDraftSafeSelectorCreator(weakMapMemoize);

 export { createDraftSafeSelector };
createDraftSafeSelectorCreator changes (Click to expand)

File Content:

export { createDraftSafeSelectorCreator } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createDraftSafeSelectorCreator.js	2024-07-12 05:12:18.202284600 -0500
+++ after/@reduxjs/toolkit/react/createDraftSafeSelectorCreator.js	2024-07-12 05:06:31.913027500 -0500
@@ -1,6 +1,6 @@
-import { isAction } from 'redux';
+import 'redux';
 import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { createSelectorCreator } from 'reselect';
 import 'redux-thunk';

 // src/index.ts
@@ -16,97 +16,5 @@
   });
   return createDraftSafeSelector2;
 };
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}

 export { createDraftSafeSelectorCreator };
createDynamicMiddleware changes (Click to expand)

File Content:

export { createDynamicMiddleware } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createDynamicMiddleware.js	2024-07-12 05:12:10.555820300 -0500
+++ after/@reduxjs/toolkit/react/createDynamicMiddleware.js	2024-07-12 05:06:32.146136000 -0500
@@ -1,23 +1,32 @@
 import { isAction, compose } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';
 import { ReactReduxContext, useDispatch, createDispatchHook } from 'react-redux';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function find(iterable, comparator) {
+  for (const entry of iterable) {
+    if (comparator(entry)) {
+      return entry;
+    }
+  }
+  return void 0;
+}
+function emplace(map, key, handler) {
+  if (map.has(key)) {
+    let value = map.get(key);
+    if (handler.update) {
+      value = handler.update(value, key, map);
+      map.set(key, value);
+    }
+    return value;
+  }
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
+  const inserted = handler.insert(key, map);
+  map.set(key, inserted);
+  return inserted;
+}

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
@@ -53,29 +62,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function find(iterable, comparator) {
-  for (const entry of iterable) {
-    if (comparator(entry)) {
-      return entry;
-    }
-  }
-  return void 0;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}

 // src/nanoid.ts
 var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
@@ -101,67 +87,6 @@
     return matchers.every((matcher) => matches(matcher, action));
   };
 }
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
 var createMiddlewareEntry = (middleware) => ({
   id: nanoid(),
   middleware,
createEntityAdapter changes (Click to expand)

File Content:

export { createEntityAdapter } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createEntityAdapter.js	2024-07-12 05:12:18.422284500 -0500
+++ after/@reduxjs/toolkit/react/createEntityAdapter.js	2024-07-12 05:06:32.384135400 -0500
@@ -1,5 +1,5 @@
 import { isAction } from 'redux';
-import { isDraft, current, produce } from 'immer';
+import { produce, isDraft, current } from 'immer';
 import { createSelectorCreator, weakMapMemoize } from 'reselect';
 import 'redux-thunk';

@@ -16,21 +16,7 @@
   });
   return createDraftSafeSelector2;
 };
-var createDraftSafeSelector = createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
+var createDraftSafeSelector = /* @__PURE__ */ createDraftSafeSelectorCreator(weakMapMemoize);
 function isFSA(action) {
   return isAction(action) && Object.keys(action).every(isValidKey);
 }
@@ -38,17 +24,6 @@
   return ["type", "payload", "error", "meta"].indexOf(key) > -1;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/entities/entity_state.ts
 function getInitialEntityState() {
   return {
@@ -458,70 +433,4 @@
   };
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { createEntityAdapter };
createImmutableStateInvariantMiddleware changes (Click to expand)

File Content:

export { createImmutableStateInvariantMiddleware } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createImmutableStateInvariantMiddleware.js	2024-07-12 05:12:15.330285600 -0500
+++ after/@reduxjs/toolkit/react/createImmutableStateInvariantMiddleware.js	2024-07-12 05:06:31.867027700 -0500
@@ -1,117 +1,13 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function createImmutableStateInvariantMiddleware(options = {}) {
   {
     return () => (next) => (action) => next(action);
   }
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { createImmutableStateInvariantMiddleware };
createListenerMiddleware changes (Click to expand)

File Content:

export { createListenerMiddleware } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createListenerMiddleware.js	2024-07-12 05:12:11.561820700 -0500
+++ after/@reduxjs/toolkit/react/createListenerMiddleware.js	2024-07-12 05:06:31.781027100 -0500
@@ -1,22 +1,17 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function find(iterable, comparator) {
+  for (const entry of iterable) {
+    if (comparator(entry)) {
+      return entry;
+    }
+  }
+  return void 0;
+}

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -31,14 +26,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function find(iterable, comparator) {
-  for (const entry of iterable) {
-    if (comparator(entry)) {
-      return entry;
-    }
-  }
-  return void 0;
-}

 // src/nanoid.ts
 var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
@@ -249,7 +236,7 @@
     effect
   };
 };
-var createListenerEntry = Object.assign((options) => {
+var createListenerEntry = /* @__PURE__ */ assign((options) => {
   const {
     type,
     predicate,
@@ -290,11 +277,11 @@
     }, 0);
   }
 };
-var addListener = Object.assign(createAction(`${alm}/add`), {
+var addListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/add`), {
   withTypes: () => addListener
 });
-var clearAllListeners = createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
+var clearAllListeners = /* @__PURE__ */ createAction(`${alm}/removeAll`);
+var removeListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/remove`), {
   withTypes: () => removeListener
 });
 var defaultErrorHandler = (...args) => {
@@ -324,7 +311,7 @@
     }
     return insertEntry(entry);
   };
-  Object.assign(startListening, {
+  assign(startListening, {
     withTypes: () => startListening
   });
   const stopListening = (options) => {
@@ -345,7 +332,7 @@
     }
     return !!entry;
   };
-  Object.assign(stopListening, {
+  assign(stopListening, {
     withTypes: () => stopListening
   });
   const notifyListener = async (entry, action, api, getOriginalState) => {
createNextState changes (Click to expand)

File Content:

export { createNextState } from '@reduxjs/toolkit/react'
Before and After
createReducer changes (Click to expand)

File Content:

export { createReducer } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createReducer.js	2024-07-12 05:12:11.534821000 -0500
+++ after/@reduxjs/toolkit/react/createReducer.js	2024-07-12 05:06:32.159136700 -0500
@@ -1,36 +1,9 @@
-import { isAction } from 'redux';
-import { isDraftable, produce, isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import { isDraftable, produce, isDraft } from 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function freezeDraftable(val) {
   return isDraftable(val) ? produce(val, () => {
   }) : val;
@@ -122,78 +95,6 @@
   return reducer;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
createSelector changes (Click to expand)

File Content:

export { createSelector } from '@reduxjs/toolkit/react'
Before and After
createSelectorCreator changes (Click to expand)

File Content:

export { createSelectorCreator } from '@reduxjs/toolkit/react'
Before and After
createSerializableStateInvariantMiddleware changes (Click to expand)

File Content:

export { createSerializableStateInvariantMiddleware } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createSerializableStateInvariantMiddleware.js	2024-07-12 05:12:17.399286600 -0500
+++ after/@reduxjs/toolkit/react/createSerializableStateInvariantMiddleware.js	2024-07-12 05:06:30.812864100 -0500
@@ -1,117 +1,13 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function createSerializableStateInvariantMiddleware(options = {}) {
   {
     return () => (next) => (action) => next(action);
   }
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { createSerializableStateInvariantMiddleware };
createSlice changes (Click to expand)

File Content:

export { createSlice } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/createSlice.js	2024-07-12 05:12:16.601285800 -0500
+++ after/@reduxjs/toolkit/react/createSlice.js	2024-07-12 05:06:32.817136100 -0500
@@ -1,22 +1,27 @@
 import { isAction } from 'redux';
-import { isDraft, current, isDraftable, produce } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isDraftable, produce, isDraft } from 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function freezeDraftable(val) {
+  return isDraftable(val) ? produce(val, () => {
+  }) : val;
+}
+function emplace(map, key, handler) {
+  if (map.has(key)) {
+    let value = map.get(key);
+    if (handler.update) {
+      value = handler.update(value, key, map);
+      map.set(key, value);
+    }
+    return value;
+  }
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
+  const inserted = handler.insert(key, map);
+  map.set(key, inserted);
+  return inserted;
+}

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -47,25 +52,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function freezeDraftable(val) {
-  return isDraftable(val) ? produce(val, () => {
-  }) : val;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}

 // src/mapBuilders.ts
 function executeReducerBuilderCallback(builderCallback) {
@@ -153,17 +139,6 @@
   return reducer;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/createSlice.ts
 var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
 function getType(slice, actionKey) {
@@ -260,13 +235,11 @@
     const injectedSelectorCache = /* @__PURE__ */ new Map();
     let _reducer;
     function reducer(state, action) {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer(state, action);
     }
     function getInitialState() {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer.getInitialState();
     }
     function makeSelectorProps(reducerPath2, injected = false) {
@@ -435,67 +408,6 @@
 function noop() {
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
createStore changes (Click to expand)

File Content:

export { createStore } from '@reduxjs/toolkit/react'
Before and After
current changes (Click to expand)

File Content:

export { current } from '@reduxjs/toolkit/react'
Before and After
findNonSerializableValue changes (Click to expand)

File Content:

export { findNonSerializableValue } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/findNonSerializableValue.js	2024-07-12 05:12:15.983284400 -0500
+++ after/@reduxjs/toolkit/react/findNonSerializableValue.js	2024-07-12 05:06:32.271135600 -0500
@@ -1,36 +1,9 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function isPlain(val) {
   const type = typeof val;
   return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
@@ -46,8 +19,7 @@
   if (typeof value !== "object" || value === null) {
     return false;
   }
-  if (cache?.has(value))
-    return false;
+  if (cache?.has(value)) return false;
   const entries = getEntries != null ? getEntries(value) : Object.entries(value);
   const hasIgnoredPaths = ignoredPaths.length > 0;
   for (const [key, nestedValue] of entries) {
@@ -76,97 +48,16 @@
       }
     }
   }
-  if (cache && isNestedFrozen(value))
-    cache.add(value);
+  if (cache && isNestedFrozen(value)) cache.add(value);
   return false;
 }
 function isNestedFrozen(value) {
-  if (!Object.isFrozen(value))
-    return false;
+  if (!Object.isFrozen(value)) return false;
   for (const nestedValue of Object.values(value)) {
-    if (typeof nestedValue !== "object" || nestedValue === null)
-      continue;
-    if (!isNestedFrozen(nestedValue))
-      return false;
+    if (typeof nestedValue !== "object" || nestedValue === null) continue;
+    if (!isNestedFrozen(nestedValue)) return false;
   }
   return true;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { findNonSerializableValue };
formatProdErrorMessage changes (Click to expand)

File Content:

export { formatProdErrorMessage } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/formatProdErrorMessage.js	2024-07-12 05:12:18.341284200 -0500
+++ after/@reduxjs/toolkit/react/formatProdErrorMessage.js	2024-07-12 05:06:32.318136900 -0500
@@ -1,108 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});

 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
freeze changes (Click to expand)

File Content:

export { freeze } from '@reduxjs/toolkit/react'
Before and After
isAction changes (Click to expand)

File Content:

export { isAction } from '@reduxjs/toolkit/react'
Before and After
isActionCreator changes (Click to expand)

File Content:

export { isActionCreator } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isActionCreator.js	2024-07-12 05:12:11.592820300 -0500
+++ after/@reduxjs/toolkit/react/isActionCreator.js	2024-07-12 05:06:31.314026800 -0500
@@ -1,121 +1,17 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function isActionCreator(action) {
   return typeof action === "function" && "type" in action && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
   hasMatchFunction(action);
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isActionCreator };
isAllOf changes (Click to expand)

File Content:

export { isAllOf } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isAllOf.js	2024-07-12 05:12:18.691284900 -0500
+++ after/@reduxjs/toolkit/react/isAllOf.js	2024-07-12 05:06:33.186461000 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,70 +24,4 @@
   };
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isAllOf };
isAnyOf changes (Click to expand)

File Content:

export { isAnyOf } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isAnyOf.js	2024-07-12 05:12:19.183284300 -0500
+++ after/@reduxjs/toolkit/react/isAnyOf.js	2024-07-12 05:06:32.843135400 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,70 +24,4 @@
   };
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isAnyOf };
isAsyncThunkAction changes (Click to expand)

File Content:

export { isAsyncThunkAction } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isAsyncThunkAction.js	2024-07-12 05:12:18.599286300 -0500
+++ after/@reduxjs/toolkit/react/isAsyncThunkAction.js	2024-07-12 05:06:33.104462400 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,8 +24,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -81,70 +42,4 @@
   return isAnyOf(...asyncThunks.flatMap((asyncThunk) => [asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled]));
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isAsyncThunkAction };
isDraft changes (Click to expand)

File Content:

export { isDraft } from '@reduxjs/toolkit/react'
Before and After
isFluxStandardAction changes (Click to expand)

File Content:

export { isFluxStandardAction } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isFluxStandardAction.js	2024-07-12 05:12:18.916285200 -0500
+++ after/@reduxjs/toolkit/react/isFluxStandardAction.js	2024-07-12 05:06:32.784137000 -0500
@@ -1,36 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function isFSA(action) {
   return isAction(action) && Object.keys(action).every(isValidKey);
 }
@@ -38,81 +11,4 @@
   return ["type", "payload", "error", "meta"].indexOf(key) > -1;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isFSA as isFluxStandardAction };
isFulfilled changes (Click to expand)

File Content:

export { isFulfilled } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isFulfilled.js	2024-07-12 05:12:14.729284100 -0500
+++ after/@reduxjs/toolkit/react/isFulfilled.js	2024-07-12 05:06:32.049136700 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,8 +24,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -81,70 +42,4 @@
   return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.fulfilled));
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isFulfilled };
isImmutableDefault changes (Click to expand)

File Content:

export { isImmutableDefault } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isImmutableDefault.js	2024-07-12 05:12:14.234284600 -0500
+++ after/@reduxjs/toolkit/react/isImmutableDefault.js	2024-07-12 05:06:32.632136000 -0500
@@ -1,117 +1,13 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/immutableStateInvariantMiddleware.ts
 function isImmutableDefault(value) {
   return typeof value !== "object" || value == null || Object.isFrozen(value);
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isImmutableDefault };
isPending changes (Click to expand)

File Content:

export { isPending } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isPending.js	2024-07-12 05:12:18.854284600 -0500
+++ after/@reduxjs/toolkit/react/isPending.js	2024-07-12 05:06:32.843135400 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,8 +24,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -81,70 +42,4 @@
   return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.pending));
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isPending };
isPlain changes (Click to expand)

File Content:

export { isPlain } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isPlain.js	2024-07-12 05:12:19.137285400 -0500
+++ after/@reduxjs/toolkit/react/isPlain.js	2024-07-12 05:06:33.060460900 -0500
@@ -1,116 +1,12 @@
-import { isPlainObject, isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 function isPlain(val) {
   const type = typeof val;
   return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isPlain };
isPlainObject changes (Click to expand)

File Content:

export { isPlainObject } from '@reduxjs/toolkit/react'
Before and After
isRejected changes (Click to expand)

File Content:

export { isRejected } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isRejected.js	2024-07-12 05:12:13.838284500 -0500
+++ after/@reduxjs/toolkit/react/isRejected.js	2024-07-12 05:06:32.919135900 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -62,8 +24,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -81,70 +42,4 @@
   return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.rejected));
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isRejected };
isRejectedWithValue changes (Click to expand)

File Content:

export { isRejectedWithValue } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/isRejectedWithValue.js	2024-07-12 05:12:19.073284400 -0500
+++ after/@reduxjs/toolkit/react/isRejectedWithValue.js	2024-07-12 05:06:32.818135800 -0500
@@ -1,53 +1,15 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
   return v && typeof v.match === "function";
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
 // src/matchers.ts
 var matches = (matcher, action) => {
   if (hasMatchFunction(matcher)) {
@@ -67,8 +29,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -98,70 +59,4 @@
   return isAllOf(isRejected(...asyncThunks), hasFlag);
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { isRejectedWithValue };
legacy_createStore changes (Click to expand)

File Content:

export { legacy_createStore } from '@reduxjs/toolkit/react'
Before and After
lruMemoize changes (Click to expand)

File Content:

export { lruMemoize } from '@reduxjs/toolkit/react'
Before and After
miniSerializeError changes (Click to expand)

File Content:

export { miniSerializeError } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/miniSerializeError.js	2024-07-12 05:12:19.099284300 -0500
+++ after/@reduxjs/toolkit/react/miniSerializeError.js	2024-07-12 05:06:33.086461300 -0500
@@ -1,47 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};

 // src/createAsyncThunk.ts
 var commonProperties = ["name", "message", "stack", "code"];
@@ -60,70 +22,4 @@
   };
 };

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { miniSerializeError };
nanoid changes (Click to expand)

File Content:

export { nanoid } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/nanoid.js	2024-07-12 05:12:18.989284400 -0500
+++ after/@reduxjs/toolkit/react/nanoid.js	2024-07-12 05:06:31.529028100 -0500
@@ -1,36 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/nanoid.ts
 var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
@@ -43,70 +16,4 @@
   return id;
 };

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { nanoid };
original changes (Click to expand)

File Content:

export { original } from '@reduxjs/toolkit/react'
Before and After
prepareAutoBatched changes (Click to expand)

File Content:

export { prepareAutoBatched } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/prepareAutoBatched.js	2024-07-12 05:12:19.516286000 -0500
+++ after/@reduxjs/toolkit/react/prepareAutoBatched.js	2024-07-12 05:06:31.897027300 -0500
@@ -1,36 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/autoBatchEnhancer.ts
 var SHOULD_AUTOBATCH = "RTK_autoBatch";
@@ -41,81 +14,4 @@
   }
 });

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { prepareAutoBatched };
ReducerType changes (Click to expand)

File Content:

export { ReducerType } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/ReducerType.js	2024-07-12 05:12:11.706821600 -0500
+++ after/@reduxjs/toolkit/react/ReducerType.js	2024-07-12 05:06:30.125863900 -0500
@@ -1,47 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
 var ReducerType = /* @__PURE__ */ ((ReducerType2) => {
   ReducerType2["reducer"] = "reducer";
   ReducerType2["reducerWithPrepare"] = "reducerWithPrepare";
@@ -49,70 +11,4 @@
   return ReducerType2;
 })(ReducerType || {});

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { ReducerType };
removeListener changes (Click to expand)

File Content:

export { removeListener } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/removeListener.js	2024-07-12 05:12:19.246285500 -0500
+++ after/@reduxjs/toolkit/react/removeListener.js	2024-07-12 05:06:31.141027600 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -32,81 +19,13 @@
   return actionCreator;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
+// src/listenerMiddleware/index.ts
+var {
+  assign
+} = Object;
 var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
+var removeListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/remove`), {
   withTypes: () => removeListener
 });

-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { removeListener };
SHOULD_AUTOBATCH changes (Click to expand)

File Content:

export { SHOULD_AUTOBATCH } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/SHOULD_AUTOBATCH.js	2024-07-12 05:12:17.175284600 -0500
+++ after/@reduxjs/toolkit/react/SHOULD_AUTOBATCH.js	2024-07-12 05:06:29.979864600 -0500
@@ -1,115 +1,11 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/autoBatchEnhancer.ts
 var SHOULD_AUTOBATCH = "RTK_autoBatch";

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { SHOULD_AUTOBATCH };
TaskAbortError changes (Click to expand)

File Content:

export { TaskAbortError } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/TaskAbortError.js	2024-07-12 05:12:14.514284300 -0500
+++ after/@reduxjs/toolkit/react/TaskAbortError.js	2024-07-12 05:06:29.320579200 -0500
@@ -1,47 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};

 // src/listenerMiddleware/exceptions.ts
 var task = "task";
@@ -55,70 +17,4 @@
   message;
 };

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { TaskAbortError };
Tuple changes (Click to expand)

File Content:

export { Tuple } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/Tuple.js	2024-07-12 05:12:11.499820300 -0500
+++ after/@reduxjs/toolkit/react/Tuple.js	2024-07-12 05:06:31.140027000 -0500
@@ -1,36 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
 var Tuple = class _Tuple extends Array {
   constructor(...items) {
     super(...items);
@@ -50,81 +23,4 @@
   }
 };

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { Tuple };
unwrapResult changes (Click to expand)

File Content:

export { unwrapResult } from '@reduxjs/toolkit/react'
Before and After
--- before/@reduxjs/toolkit/react/unwrapResult.js	2024-07-12 05:12:17.878285100 -0500
+++ after/@reduxjs/toolkit/react/unwrapResult.js	2024-07-12 05:06:32.928135500 -0500
@@ -1,47 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
 function unwrapResult(action) {
   if (action.meta && action.meta.rejectedWithValue) {
     throw action.payload;
@@ -52,70 +14,4 @@
   return action.payload;
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 export { unwrapResult };
weakMapMemoize changes (Click to expand)

File Content:

export { weakMapMemoize } from '@reduxjs/toolkit/react'
Before and After
__DO_NOT_USE__ActionTypes changes (Click to expand)

File Content:

export { __DO_NOT_USE__ActionTypes } from '@reduxjs/toolkit/react'
Before and After

@aryaemami59
Copy link
Contributor Author

aryaemami59 commented Jun 25, 2024

@reduxjs/toolkit/query Summary

With Rollup

buildCreateApi changes (Click to expand)

File Content:

export { buildCreateApi } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/buildCreateApi.js	2024-07-12 05:13:07.932073100 -0500
+++ after/@reduxjs/toolkit/query/buildCreateApi.js	2024-07-12 05:04:23.480969700 -0500
@@ -1,36 +1,9 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import { weakMapMemoize } from 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/nanoid.ts
 var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
@@ -43,67 +16,6 @@
   return id;
 };

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
copyWithStructuralSharing changes (Click to expand)

File Content:

export { copyWithStructuralSharing } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/copyWithStructuralSharing.js	2024-07-12 05:13:07.940072200 -0500
+++ after/@reduxjs/toolkit/query/copyWithStructuralSharing.js	2024-07-12 05:04:23.136164800 -0500
@@ -1,114 +1,8 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/utils/copyWithStructuralSharing.ts
@@ -123,8 +17,7 @@
   const mergeObj = Array.isArray(newObj) ? [] : {};
   for (const key of newKeys) {
     mergeObj[key] = copyWithStructuralSharing(oldObj[key], newObj[key]);
-    if (isSameObject)
-      isSameObject = oldObj[key] === mergeObj[key];
+    if (isSameObject) isSameObject = oldObj[key] === mergeObj[key];
   }
   return isSameObject ? oldObj : mergeObj;
 }
coreModule changes (Click to expand)

File Content:

export { coreModule } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/coreModule.js	2024-07-12 05:13:08.193071500 -0500
+++ after/@reduxjs/toolkit/query/coreModule.js	2024-07-12 05:04:23.544970500 -0500
@@ -1,22 +1,36 @@
 import { isAction, combineReducers, isPlainObject } from 'redux';
-import { isDraft, current, isDraftable, produce, enablePatches, applyPatches, produceWithPatches, original } from 'immer';
-import { createSelectorCreator, weakMapMemoize, createSelector } from 'reselect';
+import { isDraftable, produce, isDraft, enablePatches, applyPatches, produceWithPatches, original } from 'immer';
+import { createSelector } from 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
+
+// src/autoBatchEnhancer.ts
+var SHOULD_AUTOBATCH = "RTK_autoBatch";
+var prepareAutoBatched = () => (payload) => ({
+  payload,
+  meta: {
+    [SHOULD_AUTOBATCH]: true
+  }
   });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function freezeDraftable(val) {
+  return isDraftable(val) ? produce(val, () => {
+  }) : val;
+}
+function emplace(map, key, handler) {
+  if (map.has(key)) {
+    let value = map.get(key);
+    if (handler.update) {
+      value = handler.update(value, key, map);
+      map.set(key, value);
+    }
+    return value;
+  }
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
+  const inserted = handler.insert(key, map);
+  map.set(key, inserted);
+  return inserted;
+}

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
@@ -52,34 +66,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function freezeDraftable(val) {
-  return isDraftable(val) ? produce(val, () => {
-  }) : val;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}
-
-// src/autoBatchEnhancer.ts
-var SHOULD_AUTOBATCH = "RTK_autoBatch";
-var prepareAutoBatched = () => (payload) => ({
-  payload,
-  meta: {
-    [SHOULD_AUTOBATCH]: true
-  }
-});

 // src/mapBuilders.ts
 function executeReducerBuilderCallback(builderCallback) {
@@ -197,8 +183,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -533,13 +518,11 @@
     const injectedSelectorCache = /* @__PURE__ */ new Map();
     let _reducer;
     function reducer(state, action) {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer(state, action);
     }
     function getInitialState() {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer.getInitialState();
     }
     function makeSelectorProps(reducerPath2, injected = false) {
@@ -708,67 +691,6 @@
 function noop() {
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
@@ -813,8 +735,7 @@
   const mergeObj = Array.isArray(newObj) ? [] : {};
   for (const key of newKeys) {
     mergeObj[key] = copyWithStructuralSharing(oldObj[key], newObj[key]);
-    if (isSameObject)
-      isSameObject = oldObj[key] === mergeObj[key];
+    if (isSameObject) isSameObject = oldObj[key] === mergeObj[key];
   }
   return isSameObject ? oldObj : mergeObj;
 }
@@ -988,8 +909,7 @@
           forceRefetch: true
         })),
         unsubscribe() {
-          if (subscribe)
-            dispatch(unsubscribeQueryResult({
+          if (subscribe) dispatch(unsubscribeQueryResult({
               queryCacheKey,
               requestId
             }));
@@ -1226,8 +1146,7 @@
               Object returned was:`, result);
         }
       }
-      if (result.error)
-        throw new HandledError(result.error, result.meta);
+      if (result.error) throw new HandledError(result.error, result.meta);
       return fulfillWithValue(await transformResponse(result.data, result.meta, arg.originalArgs), {
         fulfilledTimeStamp: Date.now(),
         baseQueryMeta: result.meta,
@@ -1457,8 +1376,7 @@
         payload
       }) => {
         updateQuerySubstateIfExists(draft, meta.arg.queryCacheKey, (substate) => {
-          if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg))
-            return;
+          if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg)) return;
           const {
             merge
           } = definitions[meta.arg.endpointName];
@@ -1500,8 +1418,7 @@
       }) => {
         updateQuerySubstateIfExists(draft, arg.queryCacheKey, (substate) => {
           if (condition) ; else {
-            if (substate.requestId !== requestId)
-              return;
+            if (substate.requestId !== requestId) return;
             substate.status = "rejected" /* rejected */;
             substate.error = payload ?? error;
           }
@@ -1546,8 +1463,7 @@
           startedTimeStamp
         }
       }) => {
-        if (!arg.track)
-          return;
+        if (!arg.track) return;
         draft[getMutationCacheKey(meta)] = {
           requestId,
           status: "pending" /* pending */,
@@ -1558,11 +1474,9 @@
         payload,
         meta
       }) => {
-        if (!meta.arg.track)
-          return;
+        if (!meta.arg.track) return;
         updateMutationSubstateIfExists(draft, meta, (substate) => {
-          if (substate.requestId !== meta.requestId)
-            return;
+          if (substate.requestId !== meta.requestId) return;
           substate.status = "fulfilled" /* fulfilled */;
           substate.data = payload;
           substate.fulfilledTimeStamp = meta.fulfilledTimeStamp;
@@ -1572,11 +1486,9 @@
         error,
         meta
       }) => {
-        if (!meta.arg.track)
-          return;
+        if (!meta.arg.track) return;
         updateMutationSubstateIfExists(draft, meta, (substate) => {
-          if (substate.requestId !== meta.requestId)
-            return;
+          if (substate.requestId !== meta.requestId) return;
           substate.status = "rejected" /* rejected */;
           substate.error = payload ?? error;
         });
@@ -1868,8 +1780,7 @@
     }
     if (api.util.resetApiState.match(action)) {
       for (const [key, timeout] of Object.entries(currentRemovalTimeouts)) {
-        if (timeout)
-          clearTimeout(timeout);
+        if (timeout) clearTimeout(timeout);
         delete currentRemovalTimeouts[key];
       }
     }
@@ -1939,12 +1850,10 @@
   };
   function hasPendingRequests(state) {
     for (const key in state.queries) {
-      if (state.queries[key]?.status === "pending" /* pending */)
-        return true;
+      if (state.queries[key]?.status === "pending" /* pending */) return true;
     }
     for (const key in state.mutations) {
-      if (state.mutations[key]?.status === "pending" /* pending */)
-        return true;
+      if (state.mutations[key]?.status === "pending" /* pending */) return true;
     }
     return false;
   }
@@ -1957,8 +1866,7 @@
     }
     const tags = pendingTagInvalidations;
     pendingTagInvalidations = [];
-    if (tags.length === 0)
-      return;
+    if (tags.length === 0) return;
     const toInvalidate = api.util.selectInvalidatedBy(rootState, tags);
     context.batch(() => {
       const valuesArray = Array.from(toInvalidate.values());
@@ -2011,14 +1919,12 @@
     const state = api2.getState()[reducerPath];
     const querySubState = state.queries[queryCacheKey];
     const subscriptions = internalState.currentSubscriptions[queryCacheKey];
-    if (!querySubState || querySubState.status === "uninitialized" /* uninitialized */)
-      return;
+    if (!querySubState || querySubState.status === "uninitialized" /* uninitialized */) return;
     const {
       lowestPollingInterval,
       skipPollingIfUnfocused
     } = findLowestPollingInterval(subscriptions);
-    if (!Number.isFinite(lowestPollingInterval))
-      return;
+    if (!Number.isFinite(lowestPollingInterval)) return;
     const currentPoll = currentPolls[queryCacheKey];
     if (currentPoll?.timeout) {
       clearTimeout(currentPoll.timeout);
@@ -2118,8 +2024,7 @@
       for (const queryCacheKey of Object.keys(subscriptions)) {
         const querySubState = queries[queryCacheKey];
         const subscriptionSubState = subscriptions[queryCacheKey];
-        if (!subscriptionSubState || !querySubState)
-          continue;
+        if (!subscriptionSubState || !querySubState) continue;
         const shouldRefetch = Object.values(subscriptionSubState).some((sub) => sub[type] === true) || Object.values(subscriptionSubState).every((sub) => sub[type] === void 0) && state.config[type];
         if (shouldRefetch) {
           if (countObjectKeys(subscriptionSubState) === 0) {
@@ -2186,22 +2091,18 @@
     }
   };
   function getCacheKey(action) {
-    if (isQueryThunk(action))
-      return action.meta.arg.queryCacheKey;
+    if (isQueryThunk(action)) return action.meta.arg.queryCacheKey;
     if (isMutationThunk(action)) {
       return action.meta.arg.fixedCacheKey ?? action.meta.requestId;
     }
-    if (api.internalActions.removeQueryResult.match(action))
-      return action.payload.queryCacheKey;
-    if (api.internalActions.removeMutationResult.match(action))
-      return getMutationCacheKey(action.payload);
+    if (api.internalActions.removeQueryResult.match(action)) return action.payload.queryCacheKey;
+    if (api.internalActions.removeMutationResult.match(action)) return getMutationCacheKey(action.payload);
     return "";
   }
   function handleNewKey(endpointName, originalArgs, queryCacheKey, mwApi, requestId) {
     const endpointDefinition = context.endpointDefinitions[endpointName];
     const onCacheEntryAdded = endpointDefinition?.onCacheEntryAdded;
-    if (!onCacheEntryAdded)
-      return;
+    if (!onCacheEntryAdded) return;
     let lifecycle = {};
     const cacheEntryRemoved = new Promise((resolve) => {
       lifecycle.cacheEntryRemoved = resolve;
@@ -2227,8 +2128,7 @@
     };
     const runningHandler = onCacheEntryAdded(originalArgs, lifecycleApi);
     Promise.resolve(runningHandler).catch((e) => {
-      if (e === neverResolvedError)
-        return;
+      if (e === neverResolvedError) return;
       throw e;
     });
   }
coreModuleName changes (Click to expand)

File Content:

export { coreModuleName } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/coreModuleName.js	2024-07-12 05:13:08.436071400 -0500
+++ after/@reduxjs/toolkit/query/coreModuleName.js	2024-07-12 05:04:23.135165200 -0500
@@ -1,114 +1,8 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts
 var coreModuleName = /* @__PURE__ */ Symbol();
createApi changes (Click to expand)

File Content:

export { createApi } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/createApi.js	2024-07-12 05:13:08.466072700 -0500
+++ after/@reduxjs/toolkit/query/createApi.js	2024-07-12 05:04:23.347969300 -0500
@@ -1,22 +1,36 @@
 import { isAction, combineReducers, isPlainObject } from 'redux';
-import { isDraft, current, isDraftable, produce, enablePatches, applyPatches, produceWithPatches, original } from 'immer';
-import { createSelectorCreator, weakMapMemoize, createSelector } from 'reselect';
+import { isDraftable, produce, isDraft, enablePatches, applyPatches, produceWithPatches, original } from 'immer';
+import { weakMapMemoize, createSelector } from 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
+
+// src/autoBatchEnhancer.ts
+var SHOULD_AUTOBATCH = "RTK_autoBatch";
+var prepareAutoBatched = () => (payload) => ({
+  payload,
+  meta: {
+    [SHOULD_AUTOBATCH]: true
+  }
   });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function freezeDraftable(val) {
+  return isDraftable(val) ? produce(val, () => {
+  }) : val;
+}
+function emplace(map, key, handler) {
+  if (map.has(key)) {
+    let value = map.get(key);
+    if (handler.update) {
+      value = handler.update(value, key, map);
+      map.set(key, value);
+    }
+    return value;
+  }
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
+  const inserted = handler.insert(key, map);
+  map.set(key, inserted);
+  return inserted;
+}

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
@@ -52,34 +66,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function freezeDraftable(val) {
-  return isDraftable(val) ? produce(val, () => {
-  }) : val;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}
-
-// src/autoBatchEnhancer.ts
-var SHOULD_AUTOBATCH = "RTK_autoBatch";
-var prepareAutoBatched = () => (payload) => ({
-  payload,
-  meta: {
-    [SHOULD_AUTOBATCH]: true
-  }
-});

 // src/mapBuilders.ts
 function executeReducerBuilderCallback(builderCallback) {
@@ -197,8 +183,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -533,13 +518,11 @@
     const injectedSelectorCache = /* @__PURE__ */ new Map();
     let _reducer;
     function reducer(state, action) {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer(state, action);
     }
     function getInitialState() {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer.getInitialState();
     }
     function makeSelectorProps(reducerPath2, injected = false) {
@@ -708,67 +691,6 @@
 function noop() {
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
@@ -813,8 +735,7 @@
   const mergeObj = Array.isArray(newObj) ? [] : {};
   for (const key of newKeys) {
     mergeObj[key] = copyWithStructuralSharing(oldObj[key], newObj[key]);
-    if (isSameObject)
-      isSameObject = oldObj[key] === mergeObj[key];
+    if (isSameObject) isSameObject = oldObj[key] === mergeObj[key];
   }
   return isSameObject ? oldObj : mergeObj;
 }
@@ -988,8 +909,7 @@
           forceRefetch: true
         })),
         unsubscribe() {
-          if (subscribe)
-            dispatch(unsubscribeQueryResult({
+          if (subscribe) dispatch(unsubscribeQueryResult({
               queryCacheKey,
               requestId
             }));
@@ -1226,8 +1146,7 @@
               Object returned was:`, result);
         }
       }
-      if (result.error)
-        throw new HandledError(result.error, result.meta);
+      if (result.error) throw new HandledError(result.error, result.meta);
       return fulfillWithValue(await transformResponse(result.data, result.meta, arg.originalArgs), {
         fulfilledTimeStamp: Date.now(),
         baseQueryMeta: result.meta,
@@ -1457,8 +1376,7 @@
         payload
       }) => {
         updateQuerySubstateIfExists(draft, meta.arg.queryCacheKey, (substate) => {
-          if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg))
-            return;
+          if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg)) return;
           const {
             merge
           } = definitions[meta.arg.endpointName];
@@ -1500,8 +1418,7 @@
       }) => {
         updateQuerySubstateIfExists(draft, arg.queryCacheKey, (substate) => {
           if (condition) ; else {
-            if (substate.requestId !== requestId)
-              return;
+            if (substate.requestId !== requestId) return;
             substate.status = "rejected" /* rejected */;
             substate.error = payload ?? error;
           }
@@ -1546,8 +1463,7 @@
           startedTimeStamp
         }
       }) => {
-        if (!arg.track)
-          return;
+        if (!arg.track) return;
         draft[getMutationCacheKey(meta)] = {
           requestId,
           status: "pending" /* pending */,
@@ -1558,11 +1474,9 @@
         payload,
         meta
       }) => {
-        if (!meta.arg.track)
-          return;
+        if (!meta.arg.track) return;
         updateMutationSubstateIfExists(draft, meta, (substate) => {
-          if (substate.requestId !== meta.requestId)
-            return;
+          if (substate.requestId !== meta.requestId) return;
           substate.status = "fulfilled" /* fulfilled */;
           substate.data = payload;
           substate.fulfilledTimeStamp = meta.fulfilledTimeStamp;
@@ -1572,11 +1486,9 @@
         error,
         meta
       }) => {
-        if (!meta.arg.track)
-          return;
+        if (!meta.arg.track) return;
         updateMutationSubstateIfExists(draft, meta, (substate) => {
-          if (substate.requestId !== meta.requestId)
-            return;
+          if (substate.requestId !== meta.requestId) return;
           substate.status = "rejected" /* rejected */;
           substate.error = payload ?? error;
         });
@@ -2000,8 +1912,7 @@
     }
     if (api.util.resetApiState.match(action)) {
       for (const [key, timeout] of Object.entries(currentRemovalTimeouts)) {
-        if (timeout)
-          clearTimeout(timeout);
+        if (timeout) clearTimeout(timeout);
         delete currentRemovalTimeouts[key];
       }
     }
@@ -2071,12 +1982,10 @@
   };
   function hasPendingRequests(state) {
     for (const key in state.queries) {
-      if (state.queries[key]?.status === "pending" /* pending */)
-        return true;
+      if (state.queries[key]?.status === "pending" /* pending */) return true;
     }
     for (const key in state.mutations) {
-      if (state.mutations[key]?.status === "pending" /* pending */)
-        return true;
+      if (state.mutations[key]?.status === "pending" /* pending */) return true;
     }
     return false;
   }
@@ -2089,8 +1998,7 @@
     }
     const tags = pendingTagInvalidations;
     pendingTagInvalidations = [];
-    if (tags.length === 0)
-      return;
+    if (tags.length === 0) return;
     const toInvalidate = api.util.selectInvalidatedBy(rootState, tags);
     context.batch(() => {
       const valuesArray = Array.from(toInvalidate.values());
@@ -2143,14 +2051,12 @@
     const state = api2.getState()[reducerPath];
     const querySubState = state.queries[queryCacheKey];
     const subscriptions = internalState.currentSubscriptions[queryCacheKey];
-    if (!querySubState || querySubState.status === "uninitialized" /* uninitialized */)
-      return;
+    if (!querySubState || querySubState.status === "uninitialized" /* uninitialized */) return;
     const {
       lowestPollingInterval,
       skipPollingIfUnfocused
     } = findLowestPollingInterval(subscriptions);
-    if (!Number.isFinite(lowestPollingInterval))
-      return;
+    if (!Number.isFinite(lowestPollingInterval)) return;
     const currentPoll = currentPolls[queryCacheKey];
     if (currentPoll?.timeout) {
       clearTimeout(currentPoll.timeout);
@@ -2250,8 +2156,7 @@
       for (const queryCacheKey of Object.keys(subscriptions)) {
         const querySubState = queries[queryCacheKey];
         const subscriptionSubState = subscriptions[queryCacheKey];
-        if (!subscriptionSubState || !querySubState)
-          continue;
+        if (!subscriptionSubState || !querySubState) continue;
         const shouldRefetch = Object.values(subscriptionSubState).some((sub) => sub[type] === true) || Object.values(subscriptionSubState).every((sub) => sub[type] === void 0) && state.config[type];
         if (shouldRefetch) {
           if (countObjectKeys(subscriptionSubState) === 0) {
@@ -2318,22 +2223,18 @@
     }
   };
   function getCacheKey(action) {
-    if (isQueryThunk(action))
-      return action.meta.arg.queryCacheKey;
+    if (isQueryThunk(action)) return action.meta.arg.queryCacheKey;
     if (isMutationThunk(action)) {
       return action.meta.arg.fixedCacheKey ?? action.meta.requestId;
     }
-    if (api.internalActions.removeQueryResult.match(action))
-      return action.payload.queryCacheKey;
-    if (api.internalActions.removeMutationResult.match(action))
-      return getMutationCacheKey(action.payload);
+    if (api.internalActions.removeQueryResult.match(action)) return action.payload.queryCacheKey;
+    if (api.internalActions.removeMutationResult.match(action)) return getMutationCacheKey(action.payload);
     return "";
   }
   function handleNewKey(endpointName, originalArgs, queryCacheKey, mwApi, requestId) {
     const endpointDefinition = context.endpointDefinitions[endpointName];
     const onCacheEntryAdded = endpointDefinition?.onCacheEntryAdded;
-    if (!onCacheEntryAdded)
-      return;
+    if (!onCacheEntryAdded) return;
     let lifecycle = {};
     const cacheEntryRemoved = new Promise((resolve) => {
       lifecycle.cacheEntryRemoved = resolve;
@@ -2359,8 +2260,7 @@
     };
     const runningHandler = onCacheEntryAdded(originalArgs, lifecycleApi);
     Promise.resolve(runningHandler).catch((e) => {
-      if (e === neverResolvedError)
-        return;
+      if (e === neverResolvedError) return;
       throw e;
     });
   }
defaultSerializeQueryArgs changes (Click to expand)

File Content:

export { defaultSerializeQueryArgs } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/defaultSerializeQueryArgs.js	2024-07-12 05:13:08.097072400 -0500
+++ after/@reduxjs/toolkit/query/defaultSerializeQueryArgs.js	2024-07-12 05:04:23.431969700 -0500
@@ -1,114 +1,8 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/defaultSerializeQueryArgs.ts
fakeBaseQuery changes (Click to expand)

File Content:

export { fakeBaseQuery } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/fakeBaseQuery.js	2024-07-12 05:13:08.198072300 -0500
+++ after/@reduxjs/toolkit/query/fakeBaseQuery.js	2024-07-12 05:04:23.312970500 -0500
@@ -1,108 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});

 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
fetchBaseQuery changes (Click to expand)

File Content:

export { fetchBaseQuery } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/fetchBaseQuery.js	2024-07-12 05:13:08.390071500 -0500
+++ after/@reduxjs/toolkit/query/fetchBaseQuery.js	2024-07-12 05:04:23.170969900 -0500
@@ -1,114 +1,8 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/utils/isAbsoluteUrl.ts
@@ -150,8 +44,7 @@
     ...obj
   };
   for (const [k, v] of Object.entries(copy)) {
-    if (v === void 0)
-      delete copy[k];
+    if (v === void 0) delete copy[k];
   }
   return copy;
 }
@@ -238,8 +131,7 @@
         meta
       };
     } finally {
-      if (timeoutId)
-        clearTimeout(timeoutId);
+      if (timeoutId) clearTimeout(timeoutId);
     }
     const responseClone = response.clone();
     meta.response = responseClone;
@@ -254,8 +146,7 @@
         responseClone.text().then((r) => responseText = r, () => {
         })
       ]);
-      if (handleResponseError)
-        throw handleResponseError;
+      if (handleResponseError) throw handleResponseError;
     } catch (e) {
       return {
         error: {
QueryStatus changes (Click to expand)

File Content:

export { QueryStatus } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/QueryStatus.js	2024-07-12 05:13:08.013071800 -0500
+++ after/@reduxjs/toolkit/query/QueryStatus.js	2024-07-12 05:04:23.473970000 -0500
@@ -1,114 +1,8 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts
 var QueryStatus = /* @__PURE__ */ ((QueryStatus2) => {
   QueryStatus2["uninitialized"] = "uninitialized";
retry changes (Click to expand)

File Content:

export { retry } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/retry.js	2024-07-12 05:13:08.230072300 -0500
+++ after/@reduxjs/toolkit/query/retry.js	2024-07-12 05:04:23.425969900 -0500
@@ -1,114 +1,8 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/HandledError.ts
setupListeners changes (Click to expand)

File Content:

export { setupListeners } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/setupListeners.js	2024-07-12 05:13:08.113071600 -0500
+++ after/@reduxjs/toolkit/query/setupListeners.js	2024-07-12 05:04:23.678970500 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -32,83 +19,6 @@
   return actionCreator;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/core/setupListeners.ts
skipToken changes (Click to expand)

File Content:

export { skipToken } from '@reduxjs/toolkit/query'
Before and After
--- before/@reduxjs/toolkit/query/skipToken.js	2024-07-12 05:13:07.881072900 -0500
+++ after/@reduxjs/toolkit/query/skipToken.js	2024-07-12 05:04:23.754969200 -0500
@@ -1,114 +1,8 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/core/buildSelectors.ts

@aryaemami59
Copy link
Contributor Author

aryaemami59 commented Jun 25, 2024

@reduxjs/toolkit/query/react Summary

With Rollup

ApiProvider changes (Click to expand)

File Content:

export { ApiProvider } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/ApiProvider.js	2024-07-12 05:14:30.393941000 -0500
+++ after/@reduxjs/toolkit/query/react/ApiProvider.js	2024-07-12 05:02:14.404639200 -0500
@@ -1,86 +1,18 @@
-import { isAction, isPlainObject, combineReducers, applyMiddleware, createStore, compose } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject, combineReducers, applyMiddleware, createStore, compose, isAction } from 'redux';
+import 'immer';
+import 'reselect';
 import { thunk, withExtraArgument } from 'redux-thunk';
-import React, { useContext, useEffect } from 'react';
+import * as React from 'react';
+import { useContext, useEffect } from 'react';
 import { ReactReduxContext, Provider } from 'react-redux';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
 var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
-  if (arguments.length === 0)
-    return void 0;
-  if (typeof arguments[0] === "object")
-    return compose;
+  if (arguments.length === 0) return void 0;
+  if (typeof arguments[0] === "object") return compose;
   return compose.apply(null, arguments);
 };

-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-var Tuple = class _Tuple extends Array {
-  constructor(...items) {
-    super(...items);
-    Object.setPrototypeOf(this, _Tuple.prototype);
-  }
-  static get [Symbol.species]() {
-    return _Tuple;
-  }
-  concat(...arr) {
-    return super.concat.apply(this, arr);
-  }
-  prepend(...arr) {
-    if (arr.length === 1 && Array.isArray(arr[0])) {
-      return new _Tuple(...arr[0].concat(this));
-    }
-    return new _Tuple(...arr.concat(this));
-  }
-};
-
-// src/getDefaultMiddleware.ts
-function isBoolean(x) {
-  return typeof x === "boolean";
-}
-var buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {
-  const {
-    thunk: thunk$1 = true,
-    immutableCheck = true,
-    serializableCheck = true,
-    actionCreatorCheck = true
-  } = options ?? {};
-  let middlewareArray = new Tuple();
-  if (thunk$1) {
-    if (isBoolean(thunk$1)) {
-      middlewareArray.push(thunk);
-    } else {
-      middlewareArray.push(withExtraArgument(thunk$1.extraArgument));
-    }
-  }
-  return middlewareArray;
-};
-
 // src/autoBatchEnhancer.ts
 var SHOULD_AUTOBATCH = "RTK_autoBatch";
 var createQueueWithTimer = (timeout) => {
@@ -136,6 +68,24 @@
     }
   });
 };
+var Tuple = class _Tuple extends Array {
+  constructor(...items) {
+    super(...items);
+    Object.setPrototypeOf(this, _Tuple.prototype);
+  }
+  static get [Symbol.species]() {
+    return _Tuple;
+  }
+  concat(...arr) {
+    return super.concat.apply(this, arr);
+  }
+  prepend(...arr) {
+    if (arr.length === 1 && Array.isArray(arr[0])) {
+      return new _Tuple(...arr[0].concat(this));
+    }
+    return new _Tuple(...arr.concat(this));
+  }
+};

 // src/getDefaultEnhancers.ts
 var buildGetDefaultEnhancers = (middlewareEnhancer) => function getDefaultEnhancers(options) {
@@ -149,8 +99,43 @@
   return enhancerArray;
 };

+// src/createAction.ts
+function createAction(type, prepareAction) {
+  function actionCreator(...args) {
+    return {
+      type,
+      payload: args[0]
+    };
+  }
+  actionCreator.toString = () => `${type}`;
+  actionCreator.type = type;
+  actionCreator.match = (action) => isAction(action) && action.type === type;
+  return actionCreator;
+}
+
+// src/getDefaultMiddleware.ts
+function isBoolean(x) {
+  return typeof x === "boolean";
+}
+var buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {
+  const {
+    thunk: thunk$1 = true,
+    immutableCheck = true,
+    serializableCheck = true,
+    actionCreatorCheck = true
+  } = options ?? {};
+  let middlewareArray = new Tuple();
+  if (thunk$1) {
+    if (isBoolean(thunk$1)) {
+      middlewareArray.push(thunk);
+    } else {
+      middlewareArray.push(withExtraArgument(thunk$1.extraArgument));
+    }
+  }
+  return middlewareArray;
+};
+
 // src/configureStore.ts
-var IS_PRODUCTION = "production" === "production";
 function configureStore(options) {
   const getDefaultMiddleware = buildGetDefaultMiddleware();
   const {
@@ -178,7 +163,7 @@
   if (devTools) {
     finalCompose = composeWithDevTools({
       // Enable capture of stack traces for dispatched Redux actions
-      trace: !IS_PRODUCTION,
+      trace: "production" !== "production",
       ...typeof devTools === "object" && devTools
     });
   }
@@ -189,78 +174,6 @@
   return createStore(rootReducer, preloadedState, composedEnhancer);
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
buildCreateApi changes (Click to expand)

File Content:

export { buildCreateApi } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/buildCreateApi.js	2024-07-12 05:14:31.009941400 -0500
+++ after/@reduxjs/toolkit/query/react/buildCreateApi.js	2024-07-12 05:02:14.183639000 -0500
@@ -1,36 +1,9 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import { weakMapMemoize } from 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}

 // src/nanoid.ts
 var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
@@ -43,67 +16,6 @@
   return id;
 };

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
copyWithStructuralSharing changes (Click to expand)

File Content:

export { copyWithStructuralSharing } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/copyWithStructuralSharing.js	2024-07-12 05:14:30.211943800 -0500
+++ after/@reduxjs/toolkit/query/react/copyWithStructuralSharing.js	2024-07-12 05:02:14.175640000 -0500
@@ -1,114 +1,8 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/utils/copyWithStructuralSharing.ts
@@ -123,8 +17,7 @@
   const mergeObj = Array.isArray(newObj) ? [] : {};
   for (const key of newKeys) {
     mergeObj[key] = copyWithStructuralSharing(oldObj[key], newObj[key]);
-    if (isSameObject)
-      isSameObject = oldObj[key] === mergeObj[key];
+    if (isSameObject) isSameObject = oldObj[key] === mergeObj[key];
   }
   return isSameObject ? oldObj : mergeObj;
 }
coreModule changes (Click to expand)

File Content:

export { coreModule } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/coreModule.js	2024-07-12 05:14:30.610941700 -0500
+++ after/@reduxjs/toolkit/query/react/coreModule.js	2024-07-12 05:02:14.499640500 -0500
@@ -1,22 +1,36 @@
 import { isAction, combineReducers, isPlainObject } from 'redux';
-import { isDraft, current, isDraftable, produce, enablePatches, applyPatches, produceWithPatches, original } from 'immer';
-import { createSelectorCreator, weakMapMemoize, createSelector } from 'reselect';
+import { isDraftable, produce, isDraft, enablePatches, applyPatches, produceWithPatches, original } from 'immer';
+import { createSelector } from 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
+
+// src/autoBatchEnhancer.ts
+var SHOULD_AUTOBATCH = "RTK_autoBatch";
+var prepareAutoBatched = () => (payload) => ({
+  payload,
+  meta: {
+    [SHOULD_AUTOBATCH]: true
+  }
   });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function freezeDraftable(val) {
+  return isDraftable(val) ? produce(val, () => {
+  }) : val;
+}
+function emplace(map, key, handler) {
+  if (map.has(key)) {
+    let value = map.get(key);
+    if (handler.update) {
+      value = handler.update(value, key, map);
+      map.set(key, value);
+    }
+    return value;
+  }
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
+  const inserted = handler.insert(key, map);
+  map.set(key, inserted);
+  return inserted;
+}

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
@@ -52,34 +66,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function freezeDraftable(val) {
-  return isDraftable(val) ? produce(val, () => {
-  }) : val;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}
-
-// src/autoBatchEnhancer.ts
-var SHOULD_AUTOBATCH = "RTK_autoBatch";
-var prepareAutoBatched = () => (payload) => ({
-  payload,
-  meta: {
-    [SHOULD_AUTOBATCH]: true
-  }
-});

 // src/mapBuilders.ts
 function executeReducerBuilderCallback(builderCallback) {
@@ -197,8 +183,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -533,13 +518,11 @@
     const injectedSelectorCache = /* @__PURE__ */ new Map();
     let _reducer;
     function reducer(state, action) {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer(state, action);
     }
     function getInitialState() {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer.getInitialState();
     }
     function makeSelectorProps(reducerPath2, injected = false) {
@@ -708,67 +691,6 @@
 function noop() {
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
@@ -813,8 +735,7 @@
   const mergeObj = Array.isArray(newObj) ? [] : {};
   for (const key of newKeys) {
     mergeObj[key] = copyWithStructuralSharing(oldObj[key], newObj[key]);
-    if (isSameObject)
-      isSameObject = oldObj[key] === mergeObj[key];
+    if (isSameObject) isSameObject = oldObj[key] === mergeObj[key];
   }
   return isSameObject ? oldObj : mergeObj;
 }
@@ -988,8 +909,7 @@
           forceRefetch: true
         })),
         unsubscribe() {
-          if (subscribe)
-            dispatch(unsubscribeQueryResult({
+          if (subscribe) dispatch(unsubscribeQueryResult({
               queryCacheKey,
               requestId
             }));
@@ -1226,8 +1146,7 @@
               Object returned was:`, result);
         }
       }
-      if (result.error)
-        throw new HandledError(result.error, result.meta);
+      if (result.error) throw new HandledError(result.error, result.meta);
       return fulfillWithValue(await transformResponse(result.data, result.meta, arg.originalArgs), {
         fulfilledTimeStamp: Date.now(),
         baseQueryMeta: result.meta,
@@ -1457,8 +1376,7 @@
         payload
       }) => {
         updateQuerySubstateIfExists(draft, meta.arg.queryCacheKey, (substate) => {
-          if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg))
-            return;
+          if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg)) return;
           const {
             merge
           } = definitions[meta.arg.endpointName];
@@ -1500,8 +1418,7 @@
       }) => {
         updateQuerySubstateIfExists(draft, arg.queryCacheKey, (substate) => {
           if (condition) ; else {
-            if (substate.requestId !== requestId)
-              return;
+            if (substate.requestId !== requestId) return;
             substate.status = "rejected" /* rejected */;
             substate.error = payload ?? error;
           }
@@ -1546,8 +1463,7 @@
           startedTimeStamp
         }
       }) => {
-        if (!arg.track)
-          return;
+        if (!arg.track) return;
         draft[getMutationCacheKey(meta)] = {
           requestId,
           status: "pending" /* pending */,
@@ -1558,11 +1474,9 @@
         payload,
         meta
       }) => {
-        if (!meta.arg.track)
-          return;
+        if (!meta.arg.track) return;
         updateMutationSubstateIfExists(draft, meta, (substate) => {
-          if (substate.requestId !== meta.requestId)
-            return;
+          if (substate.requestId !== meta.requestId) return;
           substate.status = "fulfilled" /* fulfilled */;
           substate.data = payload;
           substate.fulfilledTimeStamp = meta.fulfilledTimeStamp;
@@ -1572,11 +1486,9 @@
         error,
         meta
       }) => {
-        if (!meta.arg.track)
-          return;
+        if (!meta.arg.track) return;
         updateMutationSubstateIfExists(draft, meta, (substate) => {
-          if (substate.requestId !== meta.requestId)
-            return;
+          if (substate.requestId !== meta.requestId) return;
           substate.status = "rejected" /* rejected */;
           substate.error = payload ?? error;
         });
@@ -1868,8 +1780,7 @@
     }
     if (api.util.resetApiState.match(action)) {
       for (const [key, timeout] of Object.entries(currentRemovalTimeouts)) {
-        if (timeout)
-          clearTimeout(timeout);
+        if (timeout) clearTimeout(timeout);
         delete currentRemovalTimeouts[key];
       }
     }
@@ -1939,12 +1850,10 @@
   };
   function hasPendingRequests(state) {
     for (const key in state.queries) {
-      if (state.queries[key]?.status === "pending" /* pending */)
-        return true;
+      if (state.queries[key]?.status === "pending" /* pending */) return true;
     }
     for (const key in state.mutations) {
-      if (state.mutations[key]?.status === "pending" /* pending */)
-        return true;
+      if (state.mutations[key]?.status === "pending" /* pending */) return true;
     }
     return false;
   }
@@ -1957,8 +1866,7 @@
     }
     const tags = pendingTagInvalidations;
     pendingTagInvalidations = [];
-    if (tags.length === 0)
-      return;
+    if (tags.length === 0) return;
     const toInvalidate = api.util.selectInvalidatedBy(rootState, tags);
     context.batch(() => {
       const valuesArray = Array.from(toInvalidate.values());
@@ -2011,14 +1919,12 @@
     const state = api2.getState()[reducerPath];
     const querySubState = state.queries[queryCacheKey];
     const subscriptions = internalState.currentSubscriptions[queryCacheKey];
-    if (!querySubState || querySubState.status === "uninitialized" /* uninitialized */)
-      return;
+    if (!querySubState || querySubState.status === "uninitialized" /* uninitialized */) return;
     const {
       lowestPollingInterval,
       skipPollingIfUnfocused
     } = findLowestPollingInterval(subscriptions);
-    if (!Number.isFinite(lowestPollingInterval))
-      return;
+    if (!Number.isFinite(lowestPollingInterval)) return;
     const currentPoll = currentPolls[queryCacheKey];
     if (currentPoll?.timeout) {
       clearTimeout(currentPoll.timeout);
@@ -2118,8 +2024,7 @@
       for (const queryCacheKey of Object.keys(subscriptions)) {
         const querySubState = queries[queryCacheKey];
         const subscriptionSubState = subscriptions[queryCacheKey];
-        if (!subscriptionSubState || !querySubState)
-          continue;
+        if (!subscriptionSubState || !querySubState) continue;
         const shouldRefetch = Object.values(subscriptionSubState).some((sub) => sub[type] === true) || Object.values(subscriptionSubState).every((sub) => sub[type] === void 0) && state.config[type];
         if (shouldRefetch) {
           if (countObjectKeys(subscriptionSubState) === 0) {
@@ -2186,22 +2091,18 @@
     }
   };
   function getCacheKey(action) {
-    if (isQueryThunk(action))
-      return action.meta.arg.queryCacheKey;
+    if (isQueryThunk(action)) return action.meta.arg.queryCacheKey;
     if (isMutationThunk(action)) {
       return action.meta.arg.fixedCacheKey ?? action.meta.requestId;
     }
-    if (api.internalActions.removeQueryResult.match(action))
-      return action.payload.queryCacheKey;
-    if (api.internalActions.removeMutationResult.match(action))
-      return getMutationCacheKey(action.payload);
+    if (api.internalActions.removeQueryResult.match(action)) return action.payload.queryCacheKey;
+    if (api.internalActions.removeMutationResult.match(action)) return getMutationCacheKey(action.payload);
     return "";
   }
   function handleNewKey(endpointName, originalArgs, queryCacheKey, mwApi, requestId) {
     const endpointDefinition = context.endpointDefinitions[endpointName];
     const onCacheEntryAdded = endpointDefinition?.onCacheEntryAdded;
-    if (!onCacheEntryAdded)
-      return;
+    if (!onCacheEntryAdded) return;
     let lifecycle = {};
     const cacheEntryRemoved = new Promise((resolve) => {
       lifecycle.cacheEntryRemoved = resolve;
@@ -2227,8 +2128,7 @@
     };
     const runningHandler = onCacheEntryAdded(originalArgs, lifecycleApi);
     Promise.resolve(runningHandler).catch((e) => {
-      if (e === neverResolvedError)
-        return;
+      if (e === neverResolvedError) return;
       throw e;
     });
   }
coreModuleName changes (Click to expand)

File Content:

export { coreModuleName } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/coreModuleName.js	2024-07-12 05:14:30.792941000 -0500
+++ after/@reduxjs/toolkit/query/react/coreModuleName.js	2024-07-12 05:02:14.071640600 -0500
@@ -1,114 +1,8 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts
 var coreModuleName = /* @__PURE__ */ Symbol();
createApi changes (Click to expand)

File Content:

export { createApi } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/createApi.js	2024-07-12 05:14:30.509941500 -0500
+++ after/@reduxjs/toolkit/query/react/createApi.js	2024-07-12 05:02:14.101639700 -0500
@@ -1,24 +1,38 @@
 import { isAction, combineReducers, isPlainObject } from 'redux';
-import { isDraft, current, isDraftable, produce, enablePatches, applyPatches, produceWithPatches, original } from 'immer';
-import { createSelectorCreator, weakMapMemoize, createSelector } from 'reselect';
+import { isDraftable, produce, isDraft, enablePatches, applyPatches, produceWithPatches, original } from 'immer';
+import { weakMapMemoize, createSelector } from 'reselect';
 import 'redux-thunk';
 import { useCallback, useMemo, useDebugValue, useState, useEffect, useRef, useLayoutEffect } from 'react';
 import { batch, useDispatch, useSelector, useStore, shallowEqual } from 'react-redux';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
+
+// src/autoBatchEnhancer.ts
+var SHOULD_AUTOBATCH = "RTK_autoBatch";
+var prepareAutoBatched = () => (payload) => ({
+  payload,
+  meta: {
+    [SHOULD_AUTOBATCH]: true
+  }
   });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
+function freezeDraftable(val) {
+  return isDraftable(val) ? produce(val, () => {
+  }) : val;
+}
+function emplace(map, key, handler) {
+  if (map.has(key)) {
+    let value = map.get(key);
+    if (handler.update) {
+      value = handler.update(value, key, map);
+      map.set(key, value);
+    }
+    return value;
+  }
+  if (!handler.insert) throw new Error(formatProdErrorMessage(10) );
+  const inserted = handler.insert(key, map);
+  map.set(key, inserted);
+  return inserted;
+}

 // src/tsHelpers.ts
 var hasMatchFunction = (v) => {
@@ -54,34 +68,6 @@
   actionCreator.match = (action) => isAction(action) && action.type === type;
   return actionCreator;
 }
-function freezeDraftable(val) {
-  return isDraftable(val) ? produce(val, () => {
-  }) : val;
-}
-function emplace(map, key, handler) {
-  if (map.has(key)) {
-    let value = map.get(key);
-    if (handler.update) {
-      value = handler.update(value, key, map);
-      map.set(key, value);
-    }
-    return value;
-  }
-  if (!handler.insert)
-    throw new Error(formatProdErrorMessage(10) );
-  const inserted = handler.insert(key, map);
-  map.set(key, inserted);
-  return inserted;
-}
-
-// src/autoBatchEnhancer.ts
-var SHOULD_AUTOBATCH = "RTK_autoBatch";
-var prepareAutoBatched = () => (payload) => ({
-  payload,
-  meta: {
-    [SHOULD_AUTOBATCH]: true
-  }
-});

 // src/mapBuilders.ts
 function executeReducerBuilderCallback(builderCallback) {
@@ -199,8 +185,7 @@
   };
 }
 function hasExpectedRequestMetadata(action, validStatus) {
-  if (!action || !action.meta)
-    return false;
+  if (!action || !action.meta) return false;
   const hasValidRequestId = typeof action.meta.requestId === "string";
   const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
   return hasValidRequestId && hasValidRequestStatus;
@@ -535,13 +520,11 @@
     const injectedSelectorCache = /* @__PURE__ */ new Map();
     let _reducer;
     function reducer(state, action) {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer(state, action);
     }
     function getInitialState() {
-      if (!_reducer)
-        _reducer = buildReducer();
+      if (!_reducer) _reducer = buildReducer();
       return _reducer.getInitialState();
     }
     function makeSelectorProps(reducerPath2, injected = false) {
@@ -710,67 +693,6 @@
 function noop() {
 }

-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
   return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
@@ -822,8 +744,7 @@
   const mergeObj = Array.isArray(newObj) ? [] : {};
   for (const key of newKeys) {
     mergeObj[key] = copyWithStructuralSharing(oldObj[key], newObj[key]);
-    if (isSameObject)
-      isSameObject = oldObj[key] === mergeObj[key];
+    if (isSameObject) isSameObject = oldObj[key] === mergeObj[key];
   }
   return isSameObject ? oldObj : mergeObj;
 }
@@ -997,8 +918,7 @@
           forceRefetch: true
         })),
         unsubscribe() {
-          if (subscribe)
-            dispatch(unsubscribeQueryResult({
+          if (subscribe) dispatch(unsubscribeQueryResult({
               queryCacheKey,
               requestId
             }));
@@ -1235,8 +1155,7 @@
               Object returned was:`, result);
         }
       }
-      if (result.error)
-        throw new HandledError(result.error, result.meta);
+      if (result.error) throw new HandledError(result.error, result.meta);
       return fulfillWithValue(await transformResponse(result.data, result.meta, arg.originalArgs), {
         fulfilledTimeStamp: Date.now(),
         baseQueryMeta: result.meta,
@@ -1466,8 +1385,7 @@
         payload
       }) => {
         updateQuerySubstateIfExists(draft, meta.arg.queryCacheKey, (substate) => {
-          if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg))
-            return;
+          if (substate.requestId !== meta.requestId && !isUpsertQuery(meta.arg)) return;
           const {
             merge
           } = definitions[meta.arg.endpointName];
@@ -1509,8 +1427,7 @@
       }) => {
         updateQuerySubstateIfExists(draft, arg.queryCacheKey, (substate) => {
           if (condition) ; else {
-            if (substate.requestId !== requestId)
-              return;
+            if (substate.requestId !== requestId) return;
             substate.status = "rejected" /* rejected */;
             substate.error = payload ?? error;
           }
@@ -1555,8 +1472,7 @@
           startedTimeStamp
         }
       }) => {
-        if (!arg.track)
-          return;
+        if (!arg.track) return;
         draft[getMutationCacheKey(meta)] = {
           requestId,
           status: "pending" /* pending */,
@@ -1567,11 +1483,9 @@
         payload,
         meta
       }) => {
-        if (!meta.arg.track)
-          return;
+        if (!meta.arg.track) return;
         updateMutationSubstateIfExists(draft, meta, (substate) => {
-          if (substate.requestId !== meta.requestId)
-            return;
+          if (substate.requestId !== meta.requestId) return;
           substate.status = "fulfilled" /* fulfilled */;
           substate.data = payload;
           substate.fulfilledTimeStamp = meta.fulfilledTimeStamp;
@@ -1581,11 +1495,9 @@
         error,
         meta
       }) => {
-        if (!meta.arg.track)
-          return;
+        if (!meta.arg.track) return;
         updateMutationSubstateIfExists(draft, meta, (substate) => {
-          if (substate.requestId !== meta.requestId)
-            return;
+          if (substate.requestId !== meta.requestId) return;
           substate.status = "rejected" /* rejected */;
           substate.error = payload ?? error;
         });
@@ -2009,8 +1921,7 @@
     }
     if (api.util.resetApiState.match(action)) {
       for (const [key, timeout] of Object.entries(currentRemovalTimeouts)) {
-        if (timeout)
-          clearTimeout(timeout);
+        if (timeout) clearTimeout(timeout);
         delete currentRemovalTimeouts[key];
       }
     }
@@ -2080,12 +1991,10 @@
   };
   function hasPendingRequests(state) {
     for (const key in state.queries) {
-      if (state.queries[key]?.status === "pending" /* pending */)
-        return true;
+      if (state.queries[key]?.status === "pending" /* pending */) return true;
     }
     for (const key in state.mutations) {
-      if (state.mutations[key]?.status === "pending" /* pending */)
-        return true;
+      if (state.mutations[key]?.status === "pending" /* pending */) return true;
     }
     return false;
   }
@@ -2098,8 +2007,7 @@
     }
     const tags = pendingTagInvalidations;
     pendingTagInvalidations = [];
-    if (tags.length === 0)
-      return;
+    if (tags.length === 0) return;
     const toInvalidate = api.util.selectInvalidatedBy(rootState, tags);
     context.batch(() => {
       const valuesArray = Array.from(toInvalidate.values());
@@ -2152,14 +2060,12 @@
     const state = api2.getState()[reducerPath];
     const querySubState = state.queries[queryCacheKey];
     const subscriptions = internalState.currentSubscriptions[queryCacheKey];
-    if (!querySubState || querySubState.status === "uninitialized" /* uninitialized */)
-      return;
+    if (!querySubState || querySubState.status === "uninitialized" /* uninitialized */) return;
     const {
       lowestPollingInterval,
       skipPollingIfUnfocused
     } = findLowestPollingInterval(subscriptions);
-    if (!Number.isFinite(lowestPollingInterval))
-      return;
+    if (!Number.isFinite(lowestPollingInterval)) return;
     const currentPoll = currentPolls[queryCacheKey];
     if (currentPoll?.timeout) {
       clearTimeout(currentPoll.timeout);
@@ -2259,8 +2165,7 @@
       for (const queryCacheKey of Object.keys(subscriptions)) {
         const querySubState = queries[queryCacheKey];
         const subscriptionSubState = subscriptions[queryCacheKey];
-        if (!subscriptionSubState || !querySubState)
-          continue;
+        if (!subscriptionSubState || !querySubState) continue;
         const shouldRefetch = Object.values(subscriptionSubState).some((sub) => sub[type] === true) || Object.values(subscriptionSubState).every((sub) => sub[type] === void 0) && state.config[type];
         if (shouldRefetch) {
           if (countObjectKeys(subscriptionSubState) === 0) {
@@ -2327,22 +2232,18 @@
     }
   };
   function getCacheKey(action) {
-    if (isQueryThunk(action))
-      return action.meta.arg.queryCacheKey;
+    if (isQueryThunk(action)) return action.meta.arg.queryCacheKey;
     if (isMutationThunk(action)) {
       return action.meta.arg.fixedCacheKey ?? action.meta.requestId;
     }
-    if (api.internalActions.removeQueryResult.match(action))
-      return action.payload.queryCacheKey;
-    if (api.internalActions.removeMutationResult.match(action))
-      return getMutationCacheKey(action.payload);
+    if (api.internalActions.removeQueryResult.match(action)) return action.payload.queryCacheKey;
+    if (api.internalActions.removeMutationResult.match(action)) return getMutationCacheKey(action.payload);
     return "";
   }
   function handleNewKey(endpointName, originalArgs, queryCacheKey, mwApi, requestId) {
     const endpointDefinition = context.endpointDefinitions[endpointName];
     const onCacheEntryAdded = endpointDefinition?.onCacheEntryAdded;
-    if (!onCacheEntryAdded)
-      return;
+    if (!onCacheEntryAdded) return;
     let lifecycle = {};
     const cacheEntryRemoved = new Promise((resolve) => {
       lifecycle.cacheEntryRemoved = resolve;
@@ -2368,8 +2269,7 @@
     };
     const runningHandler = onCacheEntryAdded(originalArgs, lifecycleApi);
     Promise.resolve(runningHandler).catch((e) => {
-      if (e === neverResolvedError)
-        return;
+      if (e === neverResolvedError) return;
       throw e;
     });
   }
@@ -2954,12 +2854,10 @@
         queryArgs,
         endpointDefinition,
         endpointName
-      }))
-        lastResult = void 0;
+      })) lastResult = void 0;
     }
     let data = currentState.isSuccess ? currentState.data : lastResult?.data;
-    if (data === void 0)
-      data = currentState.data;
+    if (data === void 0) data = currentState.data;
     const hasData = data !== void 0;
     const isFetching = currentState.isLoading;
     const isLoading = (!lastResult || lastResult.isLoading || lastResult.isUninitialized) && !hasData && isFetching;
@@ -3068,8 +2966,7 @@
          * A method to manually refetch data for the query
          */
         refetch: () => {
-          if (!promiseRef.current)
-            throw new Error(formatProdErrorMessage(38) );
+          if (!promiseRef.current) throw new Error(formatProdErrorMessage(38) );
           return promiseRef.current?.refetch();
         }
       }), []);
defaultSerializeQueryArgs changes (Click to expand)

File Content:

export { defaultSerializeQueryArgs } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/defaultSerializeQueryArgs.js	2024-07-12 05:14:30.978941600 -0500
+++ after/@reduxjs/toolkit/query/react/defaultSerializeQueryArgs.js	2024-07-12 05:02:14.673640300 -0500
@@ -1,114 +1,8 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/defaultSerializeQueryArgs.ts
fakeBaseQuery changes (Click to expand)

File Content:

export { fakeBaseQuery } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/fakeBaseQuery.js	2024-07-12 05:14:30.755940800 -0500
+++ after/@reduxjs/toolkit/query/react/fakeBaseQuery.js	2024-07-12 05:02:14.200639700 -0500
@@ -1,108 +1,9 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});

 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
fetchBaseQuery changes (Click to expand)

File Content:

export { fetchBaseQuery } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/fetchBaseQuery.js	2024-07-12 05:14:30.426941800 -0500
+++ after/@reduxjs/toolkit/query/react/fetchBaseQuery.js	2024-07-12 05:02:14.500639300 -0500
@@ -1,114 +1,8 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/utils/isAbsoluteUrl.ts
@@ -150,8 +44,7 @@
     ...obj
   };
   for (const [k, v] of Object.entries(copy)) {
-    if (v === void 0)
-      delete copy[k];
+    if (v === void 0) delete copy[k];
   }
   return copy;
 }
@@ -238,8 +131,7 @@
         meta
       };
     } finally {
-      if (timeoutId)
-        clearTimeout(timeoutId);
+      if (timeoutId) clearTimeout(timeoutId);
     }
     const responseClone = response.clone();
     meta.response = responseClone;
@@ -254,8 +146,7 @@
         responseClone.text().then((r) => responseText = r, () => {
         })
       ]);
-      if (handleResponseError)
-        throw handleResponseError;
+      if (handleResponseError) throw handleResponseError;
     } catch (e) {
       return {
         error: {
QueryStatus changes (Click to expand)

File Content:

export { QueryStatus } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/QueryStatus.js	2024-07-12 05:14:30.885941300 -0500
+++ after/@reduxjs/toolkit/query/react/QueryStatus.js	2024-07-12 05:02:14.611638800 -0500
@@ -1,114 +1,8 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts
 var QueryStatus = /* @__PURE__ */ ((QueryStatus2) => {
   QueryStatus2["uninitialized"] = "uninitialized";
reactHooksModule changes (Click to expand)

File Content:

export { reactHooksModule } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/reactHooksModule.js	2024-07-12 05:14:30.498941300 -0500
+++ after/@reduxjs/toolkit/query/react/reactHooksModule.js	2024-07-12 05:02:14.515639500 -0500
@@ -1,110 +1,11 @@
-import { isAction, isPlainObject } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize, createSelector } from 'reselect';
+import { isPlainObject } from 'redux';
+import 'immer';
+import { createSelector } from 'reselect';
 import 'redux-thunk';
 import { useCallback, useMemo, useDebugValue, useState, useEffect, useRef, useLayoutEffect } from 'react';
 import { batch, useDispatch, useSelector, useStore, shallowEqual } from 'react-redux';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});

 // src/formatProdErrorMessage.ts
 function formatProdErrorMessage(code) {
@@ -255,12 +156,10 @@
         queryArgs,
         endpointDefinition,
         endpointName
-      }))
-        lastResult = void 0;
+      })) lastResult = void 0;
     }
     let data = currentState.isSuccess ? currentState.data : lastResult?.data;
-    if (data === void 0)
-      data = currentState.data;
+    if (data === void 0) data = currentState.data;
     const hasData = data !== void 0;
     const isFetching = currentState.isLoading;
     const isLoading = (!lastResult || lastResult.isLoading || lastResult.isUninitialized) && !hasData && isFetching;
@@ -369,8 +268,7 @@
          * A method to manually refetch data for the query
          */
         refetch: () => {
-          if (!promiseRef.current)
-            throw new Error(formatProdErrorMessage(38) );
+          if (!promiseRef.current) throw new Error(formatProdErrorMessage(38) );
           return promiseRef.current?.refetch();
         }
       }), []);
reactHooksModuleName changes (Click to expand)

File Content:

export { reactHooksModuleName } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/reactHooksModuleName.js	2024-07-12 05:14:30.845942000 -0500
+++ after/@reduxjs/toolkit/query/react/reactHooksModuleName.js	2024-07-12 05:02:14.577640500 -0500
@@ -1,116 +1,10 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';
 import 'react';
 import 'react-redux';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/react/index.ts

 // src/query/react/module.ts
retry changes (Click to expand)

File Content:

export { retry } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/retry.js	2024-07-12 05:14:30.524941600 -0500
+++ after/@reduxjs/toolkit/query/react/retry.js	2024-07-12 05:02:14.204639900 -0500
@@ -1,114 +1,8 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/HandledError.ts
setupListeners changes (Click to expand)

File Content:

export { setupListeners } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/setupListeners.js	2024-07-12 05:14:30.737941200 -0500
+++ after/@reduxjs/toolkit/query/react/setupListeners.js	2024-07-12 05:02:14.277639500 -0500
@@ -1,22 +1,9 @@
 import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

 // src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);

 // src/createAction.ts
 function createAction(type, prepareAction) {
@@ -32,83 +19,6 @@
   return actionCreator;
 }

-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/core/setupListeners.ts
skipToken changes (Click to expand)

File Content:

export { skipToken } from '@reduxjs/toolkit/query/react'
Before and After
--- before/@reduxjs/toolkit/query/react/skipToken.js	2024-07-12 05:14:31.021941100 -0500
+++ after/@reduxjs/toolkit/query/react/skipToken.js	2024-07-12 05:02:14.770639900 -0500
@@ -1,114 +1,8 @@
-import { isAction } from 'redux';
-import { isDraft, current } from 'immer';
-import { createSelectorCreator, weakMapMemoize } from 'reselect';
+import 'redux';
+import 'immer';
+import 'reselect';
 import 'redux-thunk';

-// src/index.ts
-var createDraftSafeSelectorCreator = (...args) => {
-  const createSelector2 = createSelectorCreator(...args);
-  const createDraftSafeSelector2 = Object.assign((...args2) => {
-    const selector = createSelector2(...args2);
-    const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
-    Object.assign(wrappedSelector, selector);
-    return wrappedSelector;
-  }, {
-    withTypes: () => createDraftSafeSelector2
-  });
-  return createDraftSafeSelector2;
-};
-createDraftSafeSelectorCreator(weakMapMemoize);
-
-// src/createAction.ts
-function createAction(type, prepareAction) {
-  function actionCreator(...args) {
-    return {
-      type,
-      payload: args[0]
-    };
-  }
-  actionCreator.toString = () => `${type}`;
-  actionCreator.type = type;
-  actionCreator.match = (action) => isAction(action) && action.type === type;
-  return actionCreator;
-}
-
-// src/nanoid.ts
-var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
-var nanoid = (size = 21) => {
-  let id = "";
-  let i = size;
-  while (i--) {
-    id += urlAlphabet[Math.random() * 64 | 0];
-  }
-  return id;
-};
-
-// src/listenerMiddleware/utils.ts
-var assertFunction = (func, expected) => {
-  if (typeof func !== "function") {
-    throw new Error(formatProdErrorMessage(32) );
-  }
-};
-var alm = "listenerMiddleware";
-var getListenerEntryPropsFrom = (options) => {
-  let {
-    type,
-    actionCreator,
-    matcher,
-    predicate,
-    effect
-  } = options;
-  if (type) {
-    predicate = createAction(type).match;
-  } else if (actionCreator) {
-    type = actionCreator.type;
-    predicate = actionCreator.match;
-  } else if (matcher) {
-    predicate = matcher;
-  } else if (predicate) ; else {
-    throw new Error(formatProdErrorMessage(21) );
-  }
-  assertFunction(effect);
-  return {
-    predicate,
-    type,
-    effect
-  };
-};
-var createListenerEntry = Object.assign((options) => {
-  const {
-    type,
-    predicate,
-    effect
-  } = getListenerEntryPropsFrom(options);
-  const id = nanoid();
-  const entry = {
-    id,
-    effect,
-    type,
-    predicate,
-    pending: /* @__PURE__ */ new Set(),
-    unsubscribe: () => {
-      throw new Error(formatProdErrorMessage(22) );
-    }
-  };
-  return entry;
-}, {
-  withTypes: () => createListenerEntry
-});
-var addListener = Object.assign(createAction(`${alm}/add`), {
-  withTypes: () => addListener
-});
-createAction(`${alm}/removeAll`);
-var removeListener = Object.assign(createAction(`${alm}/remove`), {
-  withTypes: () => removeListener
-});
-
-// src/formatProdErrorMessage.ts
-function formatProdErrorMessage(code) {
-  return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
-}
-
 // src/query/core/apiState.ts

 // src/query/core/buildSelectors.ts

@aryaemami59 aryaemami59 marked this pull request as ready for review July 25, 2024 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants