Comparing version 0.5.3 to 0.5.4
@@ -0,1 +1,11 @@ | ||
## [0.5.4](https://github.com/posva/pinia/compare/v0.5.3...v0.5.4) (2021-08-16) | ||
### Bug Fixes | ||
- **nuxt:** make `$nuxt` non enumerable ([df75778](https://github.com/posva/pinia/commit/df75778917ed1543a8be73d5bbfa32750f811ab2)), closes [#574](https://github.com/posva/pinia/issues/574) | ||
### Features | ||
- **nuxt:** resolve in mono repos ([4716b5e](https://github.com/posva/pinia/commit/4716b5ea0f335bd8a1d582c60e6ce7e49c6bca3e)) | ||
## [0.5.3](https://github.com/posva/pinia/compare/v0.5.2...v0.5.3) (2021-08-02) | ||
@@ -2,0 +12,0 @@ |
/*! | ||
* pinia v0.5.3 | ||
* pinia v0.5.4 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -4,0 +4,0 @@ * @license MIT |
/*! | ||
* pinia v0.5.3 | ||
* pinia v0.5.4 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -4,0 +4,0 @@ * @license MIT |
/*! | ||
* pinia v0.5.3 | ||
* pinia v0.5.4 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -4,0 +4,0 @@ * @license MIT |
/*! | ||
* pinia v0.5.3 | ||
* pinia v0.5.4 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -4,0 +4,0 @@ * @license MIT |
/*! | ||
* pinia v0.5.3 | ||
* pinia v0.5.4 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -4,0 +4,0 @@ * @license MIT |
/*! | ||
* pinia v0.5.3 | ||
* pinia v0.5.4 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -4,0 +4,0 @@ * @license MIT |
@@ -17,5 +17,8 @@ import path from 'path' | ||
this.options.build.transpile = this.options.build.transpile || [] | ||
// Define pinia resolution to ensure plugins register global context successfully | ||
this.options.alias['pinia'] = | ||
this.options.alias['pinia'] || this.nuxt.resolver.resolveModule('pinia') | ||
// transpile pinia if @vue/composition-api is transpiled because we must use the same instance | ||
this.options.build.transpile = this.options.build.transpile || [] | ||
if ( | ||
@@ -22,0 +25,0 @@ !this.options.dev && |
@@ -23,4 +23,6 @@ // @ts-check | ||
// we bypass warnings | ||
// @ts-expect-error | ||
pinia._p.push(() => ({ $nuxt: context })) | ||
pinia._p.push(({ store }) => { | ||
// non enumerable to avoid it being serialized or displayed in devtools | ||
Object.defineProperty(store, '$nuxt', { value: context }) | ||
}) | ||
@@ -27,0 +29,0 @@ if (process.server) { |
{ | ||
"name": "pinia", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Intuitive, type safe and flexible Store for Vue", | ||
@@ -5,0 +5,0 @@ "main": "dist/pinia.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200185
4025