-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #459 from Shopify/remove_node_14_support
Remove node 14 support
- Loading branch information
Showing
17 changed files
with
57 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
'@shopify/shopify-app-remix': major | ||
'@shopify/shopify-app-express': major | ||
'@shopify/shopify-app-session-storage': major | ||
'@shopify/shopify-app-session-storage-dynamodb': major | ||
'@shopify/shopify-app-session-storage-kv': major | ||
'@shopify/shopify-app-session-storage-memory': major | ||
'@shopify/shopify-app-session-storage-mongodb': major | ||
'@shopify/shopify-app-session-storage-mysql': major | ||
'@shopify/shopify-app-session-storage-postgresql': major | ||
'@shopify/shopify-app-session-storage-prisma': major | ||
'@shopify/shopify-app-session-storage-redis': major | ||
'@shopify/shopify-app-session-storage-sqlite': major | ||
'@shopify/shopify-app-session-storage-test-utils': patch | ||
--- | ||
|
||
### Removed support for Node 14 | ||
|
||
Node 14 has reached it's [EOL](https://endoflife.date/nodejs), and dependencies to this package no longer work on Node 14. | ||
Because of that, we can no longer support that version. | ||
|
||
If your app is running on Node 14, you'll need to update to a more recent version before upgrading this package. | ||
|
||
This upgrade does not require any code changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
packages/shopify-app-session-storage-kv/src/__tests__/kv.test.actual.ts
This file was deleted.
Oops, something went wrong.
26 changes: 19 additions & 7 deletions
26
packages/shopify-app-session-storage-kv/src/__tests__/kv.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
import semver from 'semver'; | ||
import {Miniflare} from 'miniflare'; | ||
import {batteryOfTests} from '@shopify/shopify-app-session-storage-test-utils'; | ||
|
||
// eslint-disable-next-line no-warning-comments | ||
// TODO Remove this file and rename kv.test.actual.ts to kv.test.ts when we drop support for Node 14 | ||
if (semver.gte(process.version, '15.0.0')) { | ||
require('./kv.test.actual'); | ||
} | ||
import {KVSessionStorage} from '../kv'; | ||
|
||
test('dummy test', () => expect(1).toEqual(1)); | ||
describe('KVSessionStorage', () => { | ||
let storage: KVSessionStorage | undefined; | ||
beforeAll(async () => { | ||
const mf = new Miniflare({ | ||
scriptPath: | ||
'packages/shopify-app-session-storage-kv/src/__tests__/kv-namespace-dummy-worker.ts', | ||
kvNamespaces: ['KV_TEST_NAMESPACE'], | ||
}); | ||
|
||
storage = new KVSessionStorage( | ||
await mf.getKVNamespace('KV_TEST_NAMESPACE'), | ||
); | ||
}); | ||
|
||
batteryOfTests(async () => storage!); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters