Skip to content

Commit

Permalink
chore(compat): update extensions list (#2171)
Browse files Browse the repository at this point in the history
* chore(compat): lock some extensions

* chore(compat): add extensions to react-instantsearch-core

* chore(compat): add extensions to react-instantsearch-dom

* chore(compat): add extensions for ws

* chore(compat) add extensions for react-portal

* chore: versions
  • Loading branch information
merceyz committed Nov 29, 2020
1 parent 989edd7 commit bfc64b6
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 36 deletions.
70 changes: 51 additions & 19 deletions .pnp.js

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

22 changes: 22 additions & 0 deletions .yarn/versions/24923973.yml
@@ -0,0 +1,22 @@
releases:
"@yarnpkg/cli": patch
"@yarnpkg/plugin-compat": patch

declined:
- "@yarnpkg/plugin-constraints"
- "@yarnpkg/plugin-dlx"
- "@yarnpkg/plugin-essentials"
- "@yarnpkg/plugin-init"
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-node-modules"
- "@yarnpkg/plugin-npm-cli"
- "@yarnpkg/plugin-pack"
- "@yarnpkg/plugin-patch"
- "@yarnpkg/plugin-pnp"
- "@yarnpkg/plugin-stage"
- "@yarnpkg/plugin-typescript"
- "@yarnpkg/plugin-version"
- "@yarnpkg/plugin-workspace-tools"
- "@yarnpkg/builder"
- "@yarnpkg/core"
- "@yarnpkg/doctor"
7 changes: 0 additions & 7 deletions .yarnrc.yml
Expand Up @@ -45,13 +45,6 @@ packageExtensions:
monaco-editor-webpack-plugin@*:
dependencies:
webpack: ^4.5.0
react-instantsearch-core@*:
peerDependenciesMeta:
algoliasearch:
optional: true
react-instantsearch-dom@*:
dependencies:
react-fast-compare: "*"
typedoc@*:
peerDependenciesMeta:
"@strictsoftware/typedoc-plugin-monorepo":
Expand Down
35 changes: 32 additions & 3 deletions packages/plugin-compat/sources/extensions.ts
Expand Up @@ -10,7 +10,7 @@ const optionalPeerDep = {

export const packageExtensions: Array<[string, PackageExtensionData]> = [
// https://github.com/SamVerschueren/stream-to-observable/pull/5
[`@samverschueren/stream-to-observable@*`, {
[`@samverschueren/stream-to-observable@<0.3.1`, {
peerDependenciesMeta: {
[`rxjs`]: optionalPeerDep,
[`zenObservable`]: optionalPeerDep,
Expand All @@ -30,7 +30,7 @@ export const packageExtensions: Array<[string, PackageExtensionData]> = [
},
}],
// https://github.com/visionmedia/debug/pull/727
[`debug@*`, {
[`debug@<4.2.0`, {
peerDependenciesMeta: {
[`supports-color`]: optionalPeerDep,
},
Expand Down Expand Up @@ -78,7 +78,7 @@ export const packageExtensions: Array<[string, PackageExtensionData]> = [
},
}],
// https://github.com/vadimdemedes/ink-select-input/pull/26
[`ink-select-input@*`, {
[`ink-select-input@<4.1.0`, {
peerDependencies: {
react: `^16.8.2`,
},
Expand Down Expand Up @@ -170,4 +170,33 @@ export const packageExtensions: Array<[string, PackageExtensionData]> = [
graphql: `14 - 15`,
},
}],
// https://github.com/algolia/react-instantsearch/pull/2975
[`react-instantsearch-core@<=6.7.0`, {
peerDependencies: {
algoliasearch: `>= 3.1 < 5`,
},
}],
// https://github.com/algolia/react-instantsearch/pull/2975
[`react-instantsearch-dom@<=6.7.0`, {
dependencies: {
'react-fast-compare': `^3.0.0`,
},
}],
// https://github.com/websockets/ws/pull/1626
[`ws@<7.2.1`, {
peerDependencies: {
bufferutil: `^4.0.1`,
'utf-8-validate': `^5.0.2`,
},
peerDependenciesMeta: {
bufferutil: optionalPeerDep,
'utf-8-validate': optionalPeerDep,
},
}],
// https://github.com/tajo/react-portal/pull/233
[`react-portal@*`, {
peerDependencies: {
'react-dom': `^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0`,
},
}],
];
14 changes: 7 additions & 7 deletions yarn.lock
Expand Up @@ -22158,20 +22158,20 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"react-fast-compare@npm:*, react-fast-compare@npm:^3.0.0, react-fast-compare@npm:^3.1.1":
version: 3.2.0
resolution: "react-fast-compare@npm:3.2.0"
checksum: 6fe65c889eb4f326e97769135f97b3d63ac68737866f9c37f9625c9de4f5eaa9abed6f748eb3fd6a66808392118842916309cab7cfa99c67991f0c837433d6d2
languageName: node
linkType: hard

"react-fast-compare@npm:^2.0.1":
version: 2.0.4
resolution: "react-fast-compare@npm:2.0.4"
checksum: 4e4bfc3597414a36ee35977259012fff30c4f13a0e5dcabf958e91991bef8e9a3faee9dd666cfbdb0c2a0f0ddaf242ac2912054caa956a793c4cdff274dc5aec
languageName: node
linkType: hard

"react-fast-compare@npm:^3.0.0, react-fast-compare@npm:^3.1.1":
version: 3.2.0
resolution: "react-fast-compare@npm:3.2.0"
checksum: 6fe65c889eb4f326e97769135f97b3d63ac68737866f9c37f9625c9de4f5eaa9abed6f748eb3fd6a66808392118842916309cab7cfa99c67991f0c837433d6d2
languageName: node
linkType: hard

"react-focus-lock@npm:^2.3.1":
version: 2.3.1
resolution: "react-focus-lock@npm:2.3.1"
Expand Down

0 comments on commit bfc64b6

Please sign in to comment.