From 5de70ae45118c26a6ae7571c9ab0504d462ca1a0 Mon Sep 17 00:00:00 2001 From: Dennis von der Bey Date: Wed, 6 Mar 2024 12:55:06 +0100 Subject: [PATCH] chore: bump stripe version to 14.19.0 (#705) * chore: bump stripe version to 14.19.0 * fix: bump default Stripe API version --------- Co-authored-by: Dennis von der Bey --- packages/stripe/package.json | 4 ++-- packages/stripe/src/stripe.module.ts | 2 +- yarn.lock | 22 +++++++++++++++++----- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/packages/stripe/package.json b/packages/stripe/package.json index 3a1abfd16..6030bbcd9 100644 --- a/packages/stripe/package.json +++ b/packages/stripe/package.json @@ -41,10 +41,10 @@ "@golevelup/nestjs-modules": "^0.7.1" }, "devDependencies": { - "stripe": "^11.2.0" + "stripe": "^14.19.0" }, "peerDependencies": { - "stripe": "^11.12.0" + "stripe": "^14.19.0" }, "jest": { "moduleFileExtensions": [ diff --git a/packages/stripe/src/stripe.module.ts b/packages/stripe/src/stripe.module.ts index 649c70741..23cf942ce 100644 --- a/packages/stripe/src/stripe.module.ts +++ b/packages/stripe/src/stripe.module.ts @@ -48,7 +48,7 @@ export class StripeModule useFactory: ({ apiKey, typescript = true, - apiVersion = '2022-11-15', + apiVersion = '2023-10-16', webhookConfig, ...options }: StripeModuleConfig): Stripe => { diff --git a/yarn.lock b/yarn.lock index c135b5218..6eb498346 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2376,11 +2376,18 @@ resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c" integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ== -"@types/node@*", "@types/node@>= 8", "@types/node@>=12", "@types/node@>=8.1.0": +"@types/node@*", "@types/node@>= 8", "@types/node@>=12": version "20.3.3" resolved "https://registry.yarnpkg.com/@types/node/-/node-20.3.3.tgz#329842940042d2b280897150e023e604d11657d6" integrity sha512-wheIYdr4NYML61AjC8MKj/2jrR/kDQri/CIpVoZwldwhnIrD/j9jIU5bJ8yBKuB2VhpFV7Ab6G2XkBjv9r9Zzw== +"@types/node@>=8.1.0": + version "20.11.24" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.24.tgz#cc207511104694e84e9fb17f9a0c4c42d4517792" + integrity sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long== + dependencies: + undici-types "~5.26.4" + "@types/node@^18.16.19": version "18.16.19" resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.19.tgz#cb03fca8910fdeb7595b755126a8a78144714eea" @@ -10303,10 +10310,10 @@ strip-literal@^2.0.0: dependencies: js-tokens "^8.0.2" -stripe@^11.2.0: - version "11.18.0" - resolved "https://registry.yarnpkg.com/stripe/-/stripe-11.18.0.tgz#2b99ac712e81a5232f88568327d001960b454465" - integrity sha512-OUA32uhNoSoM6wOodyFbV+3IBCoO140uzdXmBArQ0S88D4EbH91xl2v+Ml1sKalcFKUBadHLeHfU/p9AbsOfGw== +stripe@^14.19.0: + version "14.19.0" + resolved "https://registry.yarnpkg.com/stripe/-/stripe-14.19.0.tgz#d254024620a61029fbf50667205f720844645d78" + integrity sha512-Je2USTpUib3hApIgoHXViLoYkDLp+AXdUJvJ6aMQ/AcvZK1PcC7N8nTceh+0gpdotX8izlWN4QyVdMcptubHBQ== dependencies: "@types/node" ">=8.1.0" qs "^6.11.0" @@ -10874,6 +10881,11 @@ undefsafe@^2.0.5: resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.5.tgz#38733b9327bdcd226db889fb723a6efd162e6e2c" integrity sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA== +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + union-value@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847"