@sbc-connect/nuxt-pay 0.5.3 → 0.6.0

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,16 @@
1
1
  # @sbc-connect/nuxt-pay
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`4e25088`](https://github.com/bcgov/connect-nuxt/commit/4e250886da973eda99044ff1c34383604b05d718)]:
12
+ - @sbc-connect/nuxt-auth@0.15.0
13
+
3
14
  ## 0.5.3
4
15
 
5
16
  ### 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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sbc-connect/nuxt-pay",
3
3
  "type": "module",
4
- "version": "0.5.3",
4
+ "version": "0.6.0",
5
5
  "repository": "github:bcgov/connect-nuxt",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "./nuxt.config.ts",
@@ -16,7 +16,7 @@
16
16
  "@sbc-connect/vitest-config": "0.2.0"
17
17
  },
18
18
  "dependencies": {
19
- "@sbc-connect/nuxt-auth": "0.14.0"
19
+ "@sbc-connect/nuxt-auth": "0.15.0"
20
20
  },
21
21
  "scripts": {
22
22
  "preinstall": "npx only-allow pnpm",