Skip to content

Commit 59327d1

Browse files
authored
Uses jsonpath upgrade (#237)
Co-authored-by: Mark Katerberg <[email protected]>
1 parent 82d2a69 commit 59327d1

File tree

4 files changed

+32
-14
lines changed

4 files changed

+32
-14
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Fixed
2+
body: JSONPath version bump
3+
time: 2024-12-06T14:49:18.536588-06:00

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,16 @@ Open the `index.ts` file in the `packages/backend/src` subdirectory of your Back
4343
Add the following line after the end of the existing import statements:
4444

4545
```ts
46-
import opslevel from './plugins/opslevel';
46+
import { legacyPlugin } from '@backstage/backend-common';
4747
```
4848

4949
#### Step 3.2
5050

5151
Add the following statement to the cluster of similar statements near the top of the `main()` function:
5252

5353
```ts
54-
const opslevelEnv = useHotMemoize(module, () => createEnv('opslevel'));
55-
```
56-
57-
#### Step 3.3
58-
59-
Add the following statement to the cluster of similar statements a bit further down in the `main()` function:
60-
61-
```ts
62-
apiRouter.use('/opslevel', await opslevel(opslevelEnv));
54+
backend.add(import('@backstage/plugin-proxy-backend'));
55+
backend.add(legacyPlugin('opslevel', import('./plugins/opslevel')));
6356
```
6457

6558
### Step 4

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"supertest": "^7.0.0",
6262
"yalc": "^1.0.0-pre.53"
6363
},
64+
"resolutions": {
65+
"jsonpath-plus": "^10.1.0"
66+
},
6467
"files": [
6568
"dist",
6669
"/migrations/*"

yarn.lock

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3165,6 +3165,16 @@
31653165
"@jridgewell/resolve-uri" "^3.1.0"
31663166
"@jridgewell/sourcemap-codec" "^1.4.14"
31673167

3168+
"@jsep-plugin/assignment@^1.3.0":
3169+
version "1.3.0"
3170+
resolved "https://registry.yarnpkg.com/@jsep-plugin/assignment/-/assignment-1.3.0.tgz#fcfc5417a04933f7ceee786e8ab498aa3ce2b242"
3171+
integrity sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==
3172+
3173+
"@jsep-plugin/regex@^1.0.4":
3174+
version "1.0.4"
3175+
resolved "https://registry.yarnpkg.com/@jsep-plugin/regex/-/regex-1.0.4.tgz#cb2fc423220fa71c609323b9ba7f7d344a755fcc"
3176+
integrity sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==
3177+
31683178
"@keyv/memcache@^1.3.5":
31693179
version "1.4.1"
31703180
resolved "https://registry.yarnpkg.com/@keyv/memcache/-/memcache-1.4.1.tgz#5bd6187dc98fb543d442a9032b280d3dd730c46d"
@@ -10242,6 +10252,11 @@ jsdom@^20.0.0:
1024210252
ws "^8.11.0"
1024310253
xml-name-validator "^4.0.0"
1024410254

10255+
jsep@^1.4.0:
10256+
version "1.4.0"
10257+
resolved "https://registry.yarnpkg.com/jsep/-/jsep-1.4.0.tgz#19feccbfa51d8a79f72480b4b8e40ce2e17152f0"
10258+
integrity sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==
10259+
1024510260
jsesc@^2.5.1:
1024610261
version "2.5.2"
1024710262
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4"
@@ -10343,10 +10358,14 @@ jsonfile@^6.0.1:
1034310358
optionalDependencies:
1034410359
graceful-fs "^4.1.6"
1034510360

10346-
jsonpath-plus@^7.2.0:
10347-
version "7.2.0"
10348-
resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz#7ad94e147b3ed42f7939c315d2b9ce490c5a3899"
10349-
integrity sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==
10361+
jsonpath-plus@^10.1.0, jsonpath-plus@^7.2.0:
10362+
version "10.2.0"
10363+
resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-10.2.0.tgz#84d680544d9868579cc7c8f59bbe153a5aad54c4"
10364+
integrity sha512-T9V+8iNYKFL2n2rF+w02LBOT2JjDnTjioaNFrxRy0Bv1y/hNsqR/EBK7Ojy2ythRHwmz2cRIls+9JitQGZC/sw==
10365+
dependencies:
10366+
"@jsep-plugin/assignment" "^1.3.0"
10367+
"@jsep-plugin/regex" "^1.0.4"
10368+
jsep "^1.4.0"
1035010369

1035110370
jsonpath@^1.1.1:
1035210371
version "1.1.1"

0 commit comments

Comments
 (0)