Skip to content

Commit

Permalink
OHRI-2034 make swr peer dependency (UCSF-IGHS#1734)
Browse files Browse the repository at this point in the history
  • Loading branch information
pirupius authored Jan 9, 2024
1 parent c72a2e2 commit ebc4940
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 67 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"rxjs": "^6.6.3",
"sass": "^1.54.3",
"swc-loader": "^0.1.15",
"swr": "^2.1.0",
"swr": "^2.2.4",
"systemjs-webpack-interop": "^2.3.7",
"turbo": "^1.5.5",
"typescript": "^4.6.3",
Expand Down
11 changes: 7 additions & 4 deletions packages/esm-cervical-cancer-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"extends browserslist-config-openmrs"
],
"keywords": [
"openmrs"
"openmrs",
"ohri",
"cervical cancer"
],
"publishConfig": {
"access": "public"
Expand All @@ -39,9 +41,10 @@
"peerDependencies": {
"@openmrs/esm-framework": "5.x",
"@openmrs/esm-patient-common-lib": "6.x",
"dayjs": "^1.8.16",
"react": "^18.2.0",
"react-i18next": "^11.18.6"
"dayjs": "1.x",
"react": "18.x",
"react-i18next": "11.x",
"swr": "2.x"
},
"devDependencies": {
"webpack": "^5.74.0"
Expand Down
7 changes: 4 additions & 3 deletions packages/esm-commons-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@
"peerDependencies": {
"@openmrs/esm-framework": "5.x",
"@openmrs/esm-patient-common-lib": "6.x",
"dayjs": "^1.8.16",
"react": "^18.2.0",
"react-i18next": "^11.18.6"
"dayjs": "1.x",
"react": "18.x",
"react-i18next": "11.x",
"swr": "2.x"
},
"devDependencies": {
"enzyme": "^3.11.0",
Expand Down
12 changes: 7 additions & 5 deletions packages/esm-covid-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"extends browserslist-config-openmrs"
],
"keywords": [
"openmrs"
"openmrs",
"covid",
"ohri"
],
"publishConfig": {
"access": "public"
Expand All @@ -41,10 +43,10 @@
"peerDependencies": {
"@openmrs/esm-framework": "5.x",
"@openmrs/esm-patient-common-lib": "6.x",
"dayjs": "^1.8.16",
"react": "^18.2.0",
"react-i18next": "^11.7.0",
"webpack": "^5.74.0"
"dayjs": "1.x",
"react": "18.x",
"react-i18next": "11.x",
"swr": "2.x"
},
"devDependencies": {
"webpack": "^5.74.0"
Expand Down
8 changes: 5 additions & 3 deletions packages/esm-form-render-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"license": "MIT",
"homepage": "https://github.com/UCSF-IGHS/openmrs-esm-ohri#readme",
"keywords": [
"openmrs"
"openmrs",
"form render",
"ohri"
],
"bugs": {
"url": "https://github.com/UCSF-IGHS/openmrs-esm-ohri/issues"
Expand Down Expand Up @@ -43,8 +45,8 @@
"peerDependencies": {
"@openmrs/esm-framework": "5.x",
"@openmrs/openmrs-form-engine-lib": "1.x",
"react": "^18.2.0",
"react-i18next": "^11.18.6"
"react": "18.x",
"react-i18next": "11.x"
},
"devDependencies": {
"@openmrs/openmrs-form-engine-lib": "next",
Expand Down
12 changes: 7 additions & 5 deletions packages/esm-hiv-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"extends browserslist-config-openmrs"
],
"keywords": [
"openmrs"
"openmrs",
"hiv",
"ohri"
],
"publishConfig": {
"access": "public"
Expand All @@ -41,10 +43,10 @@
"peerDependencies": {
"@openmrs/esm-framework": "5.x",
"@openmrs/esm-patient-common-lib": "6.x",
"dayjs": "^1.8.16",
"react": "^18.2.0",
"react-i18next": "^11.7.0",
"webpack": "^5.74.0"
"dayjs": "1.x",
"react": "18.x",
"react-i18next": "11.x",
"swr": "2.x"
},
"devDependencies": {
"webpack": "^5.74.0"
Expand Down
11 changes: 6 additions & 5 deletions packages/esm-ohri-core-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"extends browserslist-config-openmrs"
],
"keywords": [
"openmrs"
"openmrs",
"ohri"
],
"publishConfig": {
"access": "public"
Expand All @@ -41,10 +42,10 @@
"peerDependencies": {
"@openmrs/esm-framework": "5.x",
"@openmrs/esm-patient-common-lib": "6.x",
"dayjs": "^1.8.16",
"react": "^18.2.0",
"react-i18next": "^11.7.0",
"webpack": "^5.74.0"
"dayjs": "1.x",
"react": "18.x",
"react-i18next": "11.x",
"swr": "2.x"
},
"devDependencies": {
"webpack": "^5.74.0"
Expand Down
12 changes: 7 additions & 5 deletions packages/esm-ohri-pmtct-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"extends browserslist-config-openmrs"
],
"keywords": [
"openmrs"
"openmrs",
"ohri",
"maternal child health"
],
"publishConfig": {
"access": "public"
Expand All @@ -39,10 +41,10 @@
"peerDependencies": {
"@openmrs/esm-framework": "5.x",
"@openmrs/esm-patient-common-lib": "6.x",
"dayjs": "^1.8.16",
"react": "^18.2.0",
"react-i18next": "^11.7.0",
"webpack": "^5.74.0"
"dayjs": "1.x",
"react": "18.x",
"react-i18next": "11.x",
"swr": "2.x"
},
"devDependencies": {
"webpack": "^5.74.0"
Expand Down
11 changes: 7 additions & 4 deletions packages/esm-tb-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"extends browserslist-config-openmrs"
],
"keywords": [
"openmrs"
"openmrs",
"ohri",
"tuberclosis"
],
"publishConfig": {
"access": "public"
Expand All @@ -39,9 +41,10 @@
"peerDependencies": {
"@openmrs/esm-framework": "5.x",
"@openmrs/esm-patient-common-lib": "6.x",
"dayjs": "^1.8.16",
"react": "^18.2.0",
"react-i18next": "^11.18.6"
"dayjs": "1.x",
"react": "18.x",
"react-i18next": "11.x",
"swr": "2.x"
},
"devDependencies": {
"webpack": "^5.74.0"
Expand Down
75 changes: 43 additions & 32 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3647,9 +3647,10 @@ __metadata:
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/esm-patient-common-lib": 6.x
dayjs: ^1.8.16
react: ^18.2.0
react-i18next: ^11.18.6
dayjs: 1.x
react: 18.x
react-i18next: 11.x
swr: 2.x
languageName: unknown
linkType: soft

Expand All @@ -3672,9 +3673,10 @@ __metadata:
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/esm-patient-common-lib": 6.x
dayjs: ^1.8.16
react: ^18.2.0
react-i18next: ^11.18.6
dayjs: 1.x
react: 18.x
react-i18next: 11.x
swr: 2.x
languageName: unknown
linkType: soft

Expand All @@ -3689,10 +3691,10 @@ __metadata:
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/esm-patient-common-lib": 6.x
dayjs: ^1.8.16
react: ^18.2.0
react-i18next: ^11.7.0
webpack: ^5.74.0
dayjs: 1.x
react: 18.x
react-i18next: 11.x
swr: 2.x
languageName: unknown
linkType: soft

Expand All @@ -3707,10 +3709,10 @@ __metadata:
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/esm-patient-common-lib": 6.x
dayjs: ^1.8.16
react: ^18.2.0
react-i18next: ^11.7.0
webpack: ^5.74.0
dayjs: 1.x
react: 18.x
react-i18next: 11.x
swr: 2.x
languageName: unknown
linkType: soft

Expand All @@ -3731,8 +3733,8 @@ __metadata:
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/openmrs-form-engine-lib": 1.x
react: ^18.2.0
react-i18next: ^11.18.6
react: 18.x
react-i18next: 11.x
languageName: unknown
linkType: soft

Expand All @@ -3747,10 +3749,10 @@ __metadata:
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/esm-patient-common-lib": 6.x
dayjs: ^1.8.16
react: ^18.2.0
react-i18next: ^11.7.0
webpack: ^5.74.0
dayjs: 1.x
react: 18.x
react-i18next: 11.x
swr: 2.x
languageName: unknown
linkType: soft

Expand All @@ -3763,10 +3765,10 @@ __metadata:
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/esm-patient-common-lib": 6.x
dayjs: ^1.8.16
react: ^18.2.0
react-i18next: ^11.7.0
webpack: ^5.74.0
dayjs: 1.x
react: 18.x
react-i18next: 11.x
swr: 2.x
languageName: unknown
linkType: soft

Expand All @@ -3779,9 +3781,10 @@ __metadata:
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/esm-patient-common-lib": 6.x
dayjs: ^1.8.16
react: ^18.2.0
react-i18next: ^11.18.6
dayjs: 1.x
react: 18.x
react-i18next: 11.x
swr: 2.x
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -3837,7 +3840,7 @@ __metadata:
rxjs: ^6.6.3
sass: ^1.54.3
swc-loader: ^0.1.15
swr: ^2.1.0
swr: ^2.2.4
systemjs-webpack-interop: ^2.3.7
turbo: ^1.5.5
typescript: ^4.6.3
Expand Down Expand Up @@ -8301,6 +8304,13 @@ __metadata:
languageName: node
linkType: hard

"client-only@npm:^0.0.1":
version: 0.0.1
resolution: "client-only@npm:0.0.1"
checksum: 0c16bf660dadb90610553c1d8946a7fdfb81d624adea073b8440b7d795d5b5b08beb3c950c6a2cf16279365a3265158a236876d92bce16423c485c322d7dfaf8
languageName: node
linkType: hard

"cliui@npm:^7.0.2":
version: 7.0.4
resolution: "cliui@npm:7.0.4"
Expand Down Expand Up @@ -19582,14 +19592,15 @@ __metadata:
languageName: node
linkType: hard

"swr@npm:^2.1.0":
version: 2.1.0
resolution: "swr@npm:2.1.0"
"swr@npm:^2.2.4":
version: 2.2.4
resolution: "swr@npm:2.2.4"
dependencies:
client-only: ^0.0.1
use-sync-external-store: ^1.2.0
peerDependencies:
react: ^16.11.0 || ^17.0.0 || ^18.0.0
checksum: 7de1799f319c7ebfb996cb843279169144b7087215ce7318dd6011590908341ac7d5bca93a197666557c2450b0297d9efbc610fd069b82dc3387130c619965fc
checksum: d1398f89fd68af0e0cb6100a5769b1e17c0dbe8a778898643ad28456acda64add43344754c7d919e3f2ca82854adf86ff7d465aba25a2d555bcb669e457138f8
languageName: node
linkType: hard

Expand Down

0 comments on commit ebc4940

Please sign in to comment.