Skip to content

Commit

Permalink
Merge pull request #18608 from storybookjs/luke/next
Browse files Browse the repository at this point in the history
Future - dependencies: use `dequal` for equality checks
  • Loading branch information
ndelangen authored Jul 6, 2022
2 parents 0bcc17b + 997dc74 commit dee7788
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@storybook/csf": "0.0.2--canary.4566f4d.1",
"@storybook/theming": "7.0.0-alpha.11",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
"dequal": "^2.0.2",
"global": "^4.4.0",
"lodash": "^4.17.21",
"polished": "^4.2.2",
Expand Down
2 changes: 1 addition & 1 deletion addons/actions/src/containers/ActionLogger/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import deepEqual from 'fast-deep-equal';
import { dequal as deepEqual } from 'dequal';

import type { API } from '@storybook/api';
import { STORY_CHANGED } from '@storybook/core-events';
Expand Down
2 changes: 1 addition & 1 deletion addons/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@storybook/theming": "7.0.0-alpha.11",
"babel-loader": "^8.2.5",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
"dequal": "^2.0.2",
"global": "^4.4.0",
"lodash": "^4.17.21",
"remark-external-links": "^8.0.0",
Expand Down
8 changes: 4 additions & 4 deletions examples/web-components-kitchen-sink/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!

__metadata:
version: 5
version: 6
cacheKey: 8c0

"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.14.5":
Expand Down Expand Up @@ -5099,7 +5099,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "storybook@portal:../../lib/cli-storybook::locator=web-components-kitchen-sink%40workspace%3A."
dependencies:
"@storybook/cli": 7.0.0-alpha.2
"@storybook/cli": 7.0.0-alpha.11
bin:
sb: ./index.js
storybook: ./index.js
Expand Down Expand Up @@ -5421,11 +5421,11 @@ __metadata:

"typescript@patch:typescript@npm%3A~4.6.3#~builtin<compat/typescript>":
version: 4.6.4
resolution: "typescript@patch:typescript@npm%3A4.6.4#~builtin<compat/typescript>::version=4.6.4&hash=493e53"
resolution: "typescript@patch:typescript@npm%3A4.6.4#~builtin<compat/typescript>::version=4.6.4&hash=7ad353"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 13f33e44d13184c881a9b5b9617a00016e872c8ece1e58ae25322dfccb2af9dd624d86186c0f0a82417b4888c56bb5945fa0b1112c0edd98c3b1b9649f56ffb0
checksum: 0e3fa814d454942a689daf4c00f82328d323e7ecd4077e3265d45375e64642611631f4c882a71be87774468ba03793e9b8ff4bccfac3018194a9e36d8f72c251
languageName: node
linkType: hard

Expand Down
2 changes: 1 addition & 1 deletion lib/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@storybook/semver": "^7.3.2",
"@storybook/theming": "7.0.0-alpha.11",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
"dequal": "^2.0.2",
"global": "^4.4.0",
"lodash": "^4.17.21",
"memoizerific": "^1.11.3",
Expand Down
2 changes: 1 addition & 1 deletion lib/api/src/modules/globals.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SET_GLOBALS, UPDATE_GLOBALS, GLOBALS_UPDATED } from '@storybook/core-events';
import { logger } from '@storybook/client-logger';
import deepEqual from 'fast-deep-equal';
import { dequal as deepEqual } from 'dequal';
import type { Globals, GlobalTypes } from '@storybook/csf';

import type { ModuleFn } from '../index';
Expand Down
2 changes: 1 addition & 1 deletion lib/api/src/modules/layout.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import global from 'global';
import pick from 'lodash/pick';
import deepEqual from 'fast-deep-equal';
import { dequal as deepEqual } from 'dequal';
import { create } from '@storybook/theming';
import { SET_CONFIG } from '@storybook/core-events';
import type { ThemeVars } from '@storybook/theming';
Expand Down
2 changes: 1 addition & 1 deletion lib/api/src/modules/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import type { NavigateOptions } from '@storybook/router';
import { queryFromLocation, buildArgsParam } from '@storybook/router';
import { toId, sanitize } from '@storybook/csf';
import deepEqual from 'fast-deep-equal';
import { dequal as deepEqual } from 'dequal';
import global from 'global';
import { dedent } from 'ts-dedent';

Expand Down
2 changes: 1 addition & 1 deletion lib/blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@storybook/theming": "7.0.0-alpha.11",
"color-convert": "^2.0.1",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
"dequal": "^2.0.2",
"global": "^4.4.0",
"lodash": "^4.17.21",
"markdown-to-jsx": "^7.1.3",
Expand Down
2 changes: 1 addition & 1 deletion lib/blocks/src/blocks/SourceContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC, Context, createContext, useEffect, useState } from 'react';

import deepEqual from 'fast-deep-equal';
import { dequal as deepEqual } from 'dequal';
import { addons } from '@storybook/addons';

import { SNIPPET_RENDERED } from '@storybook/docs-tools';
Expand Down
2 changes: 1 addition & 1 deletion lib/client-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@types/qs": "^6.9.5",
"@types/webpack-env": "^1.16.4",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
"dequal": "^2.0.2",
"global": "^4.4.0",
"lodash": "^4.17.21",
"memoizerific": "^1.11.3",
Expand Down
2 changes: 1 addition & 1 deletion lib/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@types/react-syntax-highlighter": "11.0.5",
"color-convert": "^2.0.1",
"css": "^3.0.0",
"fast-deep-equal": "^3.1.3",
"dequal": "^2.0.2",
"global": "^4.4.0",
"jest": "^26.6.3",
"lodash": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion lib/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"qs": "^6.10.0"
},
"devDependencies": {
"fast-deep-equal": "^3.1.3",
"dequal": "^2.0.2",
"global": "^4.4.0",
"history": "5.0.0",
"lodash": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion lib/router/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { once } from '@storybook/client-logger';
import deepEqual from 'fast-deep-equal';
import { dequal as deepEqual } from 'dequal';
import isPlainObject from 'lodash/isPlainObject';
import memoize from 'memoizerific';
import qs, { IStringifyOptions } from 'qs';
Expand Down
2 changes: 1 addition & 1 deletion lib/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@storybook/core-events": "7.0.0-alpha.11",
"@storybook/csf": "0.0.2--canary.4566f4d.1",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
"dequal": "^2.0.2",
"global": "^4.4.0",
"lodash": "^4.17.21",
"memoizerific": "^1.11.3",
Expand Down
2 changes: 1 addition & 1 deletion lib/store/src/args.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import deepEqual from 'fast-deep-equal';
import { dequal as deepEqual } from 'dequal';
import type { SBType, Args, InputType, ArgTypes, StoryContext, AnyFramework } from '@storybook/csf';
import { once } from '@storybook/client-logger';
import isPlainObject from 'lodash/isPlainObject';
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6984,7 +6984,7 @@ __metadata:
"@storybook/theming": 7.0.0-alpha.11
"@types/lodash": ^4.14.167
core-js: ^3.8.2
fast-deep-equal: ^3.1.3
dequal: ^2.0.2
global: ^4.4.0
lodash: ^4.17.21
polished: ^4.2.2
Expand Down Expand Up @@ -7091,7 +7091,7 @@ __metadata:
"@types/util-deprecate": ^1.0.0
babel-loader: ^8.2.5
core-js: ^3.8.2
fast-deep-equal: ^3.1.3
dequal: ^2.0.2
global: ^4.4.0
lodash: ^4.17.21
remark-external-links: ^8.0.0
Expand Down Expand Up @@ -7701,7 +7701,7 @@ __metadata:
"@types/qs": ^6
"@types/semver": ^7.3.4
core-js: ^3.8.2
fast-deep-equal: ^3.1.3
dequal: ^2.0.2
flush-promises: ^1.0.2
global: ^4.4.0
lodash: ^4.17.21
Expand Down Expand Up @@ -7828,7 +7828,7 @@ __metadata:
"@storybook/theming": 7.0.0-alpha.11
color-convert: ^2.0.1
core-js: ^3.8.2
fast-deep-equal: ^3.1.3
dequal: ^2.0.2
global: ^4.4.0
lodash: ^4.17.21
markdown-to-jsx: ^7.1.3
Expand Down Expand Up @@ -8062,7 +8062,7 @@ __metadata:
"@types/qs": ^6.9.5
"@types/webpack-env": ^1.16.4
core-js: ^3.8.2
fast-deep-equal: ^3.1.3
dequal: ^2.0.2
global: ^4.4.0
lodash: ^4.17.21
memoizerific: ^1.11.3
Expand Down Expand Up @@ -8155,7 +8155,7 @@ __metadata:
color-convert: ^2.0.1
core-js: ^3.8.2
css: ^3.0.0
fast-deep-equal: ^3.1.3
dequal: ^2.0.2
global: ^4.4.0
jest: ^26.6.3
lodash: ^4.17.21
Expand Down Expand Up @@ -9509,7 +9509,7 @@ __metadata:
dependencies:
"@storybook/client-logger": 7.0.0-alpha.11
core-js: ^3.8.2
fast-deep-equal: ^3.1.3
dequal: ^2.0.2
global: ^4.4.0
history: 5.0.0
lodash: ^4.17.21
Expand Down Expand Up @@ -9654,7 +9654,7 @@ __metadata:
"@storybook/core-events": 7.0.0-alpha.11
"@storybook/csf": 0.0.2--canary.4566f4d.1
core-js: ^3.8.2
fast-deep-equal: ^3.1.3
dequal: ^2.0.2
global: ^4.4.0
lodash: ^4.17.21
memoizerific: ^1.11.3
Expand Down Expand Up @@ -19275,7 +19275,7 @@ __metadata:
languageName: node
linkType: hard

"dequal@npm:^2.0.0":
"dequal@npm:^2.0.0, dequal@npm:^2.0.2":
version: 2.0.2
resolution: "dequal@npm:2.0.2"
checksum: 998a2c6f5ba12ae4e8e4ca5384aadba7bcd6cef66a4830bd9e359d91132b2dff74510db830f3815ef4fddc3d4989834f1a7f66e906347bd75fa04231bf311451
Expand Down

0 comments on commit dee7788

Please sign in to comment.