@sbc-connect/nuxt-pay 0.5.3 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @sbc-connect/nuxt-pay
2
2
 
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`7319c2e`](https://github.com/bcgov/connect-nuxt/commit/7319c2ec4da24854e67fab7446dac11e3f936b8f)]:
8
+ - @sbc-connect/nuxt-auth@0.16.0
9
+
10
+ ## 0.6.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [#180](https://github.com/bcgov/connect-nuxt/pull/180) [`4e25088`](https://github.com/bcgov/connect-nuxt/commit/4e250886da973eda99044ff1c34383604b05d718) Thanks [@deetz99](https://github.com/deetz99)! - Force type resolutions via nuxt config prepare:types hook.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`4e25088`](https://github.com/bcgov/connect-nuxt/commit/4e250886da973eda99044ff1c34383604b05d718)]:
19
+ - @sbc-connect/nuxt-auth@0.15.0
20
+
3
21
  ## 0.5.3
4
22
 
5
23
  ### Patch Changes
@@ -0,0 +1,9 @@
1
+ import type { $Fetch } from 'ofetch'
2
+
3
+ declare module '#app' {
4
+ interface NuxtApp {
5
+ $payApi: $Fetch
6
+ }
7
+ }
8
+
9
+ export {}
package/nuxt.config.ts CHANGED
@@ -45,5 +45,17 @@ export default defineNuxtConfig({
45
45
  payApiVersion: '',
46
46
  paymentPortalUrl: ''
47
47
  }
48
+ },
49
+
50
+ // Nuxt 4 tsconfig `references` context workaround for type augmentation
51
+ // Forces type augmentations into the correct context
52
+ // https://nuxt.com/docs/4.x/guide/modules/recipes-advanced#extend-typescript-config
53
+ // Can also force sharedReferences, nodeReferences - and nitro references using the 'nitro:prepare:types' hook
54
+ hooks: {
55
+ 'prepare:types': ({ references }) => {
56
+ references.push(
57
+ { path: resolve('./app/types/pay-plugins.d.ts') }
58
+ )
59
+ }
48
60
  }
49
61
  })
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@sbc-connect/nuxt-pay",
3
3
  "type": "module",
4
- "version": "0.5.3",
4
+ "version": "0.6.1",
5
5
  "repository": "github:bcgov/connect-nuxt",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "./nuxt.config.ts",
8
8
  "devDependencies": {
9
9
  "@axe-core/playwright": "4.11.3",
10
10
  "dotenv": "17.4.2",
11
- "nuxt": "4.4.6",
11
+ "nuxt": "4.4.8",
12
12
  "typescript": "6.0.3",
13
13
  "vue-tsc": "3.3.1",
14
14
  "@sbc-connect/eslint-config": "0.0.8",
15
- "@sbc-connect/playwright-config": "0.2.0",
16
- "@sbc-connect/vitest-config": "0.2.0"
15
+ "@sbc-connect/vitest-config": "0.2.0",
16
+ "@sbc-connect/playwright-config": "0.2.0"
17
17
  },
18
18
  "dependencies": {
19
- "@sbc-connect/nuxt-auth": "0.14.0"
19
+ "@sbc-connect/nuxt-auth": "0.16.0"
20
20
  },
21
21
  "scripts": {
22
22
  "preinstall": "npx only-allow pnpm",