]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/log
thirdparty/vuejs/pinia.git
3 years agodocs: typo
JustKirill [Tue, 26 Oct 2021 07:02:27 +0000 (12:02 +0500)] 
docs: typo

Fix typo

3 years agorelease: @pinia/nuxt@0.1.0 pinia@2.0.0-rc.15 @pinia/nuxt@0.1.0 pinia@2.0.0-rc.15
Eduardo San Martin Morote [Mon, 25 Oct 2021 15:47:35 +0000 (17:47 +0200)] 
release: @pinia/nuxt@0.1.0 pinia@2.0.0-rc.15

3 years agobuild: refactor exported files
Eduardo San Martin Morote [Mon, 25 Oct 2021 15:42:07 +0000 (17:42 +0200)] 
build: refactor exported files

3 years agodocs: typo
Eduardo San Martin Morote [Mon, 25 Oct 2021 14:55:11 +0000 (16:55 +0200)] 
docs: typo

3 years agodocs: hydrate example
Eduardo San Martin Morote [Mon, 25 Oct 2021 14:43:18 +0000 (16:43 +0200)] 
docs: hydrate example

3 years agorefactor: innerPatch -> mergeReactiveObjects
Eduardo San Martin Morote [Mon, 25 Oct 2021 14:43:05 +0000 (16:43 +0200)] 
refactor: innerPatch -> mergeReactiveObjects

3 years agorefactor(ssr): pass storeState instead of store to hydrate
Eduardo San Martin Morote [Mon, 25 Oct 2021 14:37:40 +0000 (16:37 +0200)] 
refactor(ssr): pass storeState instead of store to hydrate

BREAKING CHANGE: the `hydrate()` option for stores defined with the
options api no longers passes the whole store instance. Instead, it
passes the `storeState` so it can be directly modified. This is because
it was currently necessary to hydrate the store by setting properties
onto `store.$state`. This change makes it impossible to make the mistake
anymore.
```diff
 defineStore('main', {
   state: () => ({
     customRef: useLocalStorage('key', 0)
   }),
-  hydrate(store) {
-    store.$state.customRef = useLocalStorage('key', 0)
+  hydrate(storeState) {
+    storeState.customRef = useLocalStorage('key', 0)
   }
 })
```

3 years agofeat(ssr): add skipHydrate to skip hydration on specific refs
Eduardo San Martin Morote [Mon, 25 Oct 2021 14:36:26 +0000 (16:36 +0200)] 
feat(ssr): add skipHydrate to skip hydration on specific refs

3 years agofix(types): remove unused option hydrate for setup stores
Eduardo San Martin Morote [Mon, 25 Oct 2021 14:23:17 +0000 (16:23 +0200)] 
fix(types): remove unused option hydrate for setup stores

3 years agotest: fix warning text
Eduardo San Martin Morote [Mon, 25 Oct 2021 13:42:15 +0000 (15:42 +0200)] 
test: fix warning text

3 years agochore: split message in multiple lines
Eduardo San Martin Morote [Mon, 25 Oct 2021 12:42:22 +0000 (14:42 +0200)] 
chore: split message in multiple lines

3 years agochore: typo
Eduardo San Martin Morote [Mon, 25 Oct 2021 12:40:51 +0000 (14:40 +0200)] 
chore: typo

3 years agotest: add ssr test for hydrate custom refs
Eduardo San Martin Morote [Mon, 25 Oct 2021 12:40:44 +0000 (14:40 +0200)] 
test: add ssr test for hydrate custom refs

3 years agochore: regen lock
Eduardo San Martin Morote [Mon, 25 Oct 2021 12:40:20 +0000 (14:40 +0200)] 
chore: regen lock

3 years agochore(deps): update all non-major dependencies (#741)
renovate[bot] [Mon, 25 Oct 2021 09:32:17 +0000 (11:32 +0200)] 
chore(deps): update all non-major dependencies (#741)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years agotest: fix dts
Eduardo San Martin Morote [Mon, 25 Oct 2021 08:14:02 +0000 (10:14 +0200)] 
test: fix dts

3 years agodocs: show more api docs
Eduardo San Martin Morote [Fri, 22 Oct 2021 10:18:21 +0000 (12:18 +0200)] 
docs: show more api docs

3 years agorelease: @pinia/nuxt@0.0.9 @pinia/testing@0.0.4 @pinia/nuxt@0.0.9 @pinia/testing@0.0.4
Eduardo San Martin Morote [Thu, 21 Oct 2021 15:21:56 +0000 (17:21 +0200)] 
release: @pinia/nuxt@0.0.9 @pinia/testing@0.0.4

3 years agofix: should work with nuxt
Eduardo San Martin Morote [Thu, 21 Oct 2021 15:19:52 +0000 (17:19 +0200)] 
fix: should work with nuxt

3 years agofix: correct peer deps and deps
Eduardo San Martin Morote [Thu, 21 Oct 2021 13:05:43 +0000 (15:05 +0200)] 
fix: correct peer deps and deps

3 years agorefactor: still trying to get this working...
Eduardo San Martin Morote [Thu, 21 Oct 2021 12:53:29 +0000 (14:53 +0200)] 
refactor: still trying to get this working...

3 years agofix: correct deps in nuxt plugin
Eduardo San Martin Morote [Thu, 21 Oct 2021 09:44:34 +0000 (11:44 +0200)] 
fix: correct deps in nuxt plugin

3 years agorelease: @pinia/nuxt@0.0.8 @pinia/nuxt@0.0.8
Eduardo San Martin Morote [Wed, 20 Oct 2021 18:39:41 +0000 (20:39 +0200)] 
release: @pinia/nuxt@0.0.8

3 years agofix: expose the plugin in mjs
Eduardo San Martin Morote [Wed, 20 Oct 2021 18:38:49 +0000 (20:38 +0200)] 
fix: expose the plugin in mjs

3 years agochore: up readme demo
Eduardo San Martin Morote [Wed, 20 Oct 2021 14:51:14 +0000 (16:51 +0200)] 
chore: up readme demo

3 years agorelease: @pinia/nuxt@0.0.7 pinia@2.0.0-rc.14 @pinia/nuxt@0.0.7 pinia@2.0.0-rc.14
Eduardo San Martin Morote [Tue, 19 Oct 2021 17:05:53 +0000 (19:05 +0200)] 
release: @pinia/nuxt@0.0.7 pinia@2.0.0-rc.14

3 years agofix(nuxt3): Rename `app` to `vueApp` (#731)
Łukasz Florczak [Tue, 19 Oct 2021 17:02:55 +0000 (19:02 +0200)] 
fix(nuxt3): Rename `app` to `vueApp` (#731)

3 years agodocs: Fix typo (#726)
Roland Doda [Sun, 17 Oct 2021 22:27:04 +0000 (00:27 +0200)] 
docs: Fix typo (#726)

3 years agodocs: better testing docs
Eduardo San Martin Morote [Thu, 14 Oct 2021 13:11:47 +0000 (15:11 +0200)] 
docs: better testing docs

3 years agochore: better readme [skip ci]
Eduardo San Martin Morote [Thu, 14 Oct 2021 13:04:20 +0000 (15:04 +0200)] 
chore: better readme [skip ci]

3 years agochore: remove old script
Eduardo San Martin Morote [Thu, 14 Oct 2021 12:59:51 +0000 (14:59 +0200)] 
chore: remove old script

3 years agofix: transpile pinia for nuxt 2
Eduardo San Martin Morote [Thu, 14 Oct 2021 12:59:43 +0000 (14:59 +0200)] 
fix: transpile pinia for nuxt 2

3 years agochore: use prettier formatter
Eduardo San Martin Morote [Thu, 14 Oct 2021 12:59:26 +0000 (14:59 +0200)] 
chore: use prettier formatter

3 years agorelease: @pinia/nuxt@0.0.6 @pinia/nuxt@0.0.6
Eduardo San Martin Morote [Thu, 14 Oct 2021 10:18:38 +0000 (12:18 +0200)] 
release: @pinia/nuxt@0.0.6

3 years agofix: link to correct file [skip ci]
Eduardo San Martin Morote [Thu, 14 Oct 2021 10:18:10 +0000 (12:18 +0200)] 
fix: link to correct file [skip ci]

3 years agorelease: @pinia/nuxt@0.0.5 @pinia/nuxt@0.0.5
Eduardo San Martin Morote [Thu, 14 Oct 2021 10:16:49 +0000 (12:16 +0200)] 
release: @pinia/nuxt@0.0.5

3 years agochore: add notes [skip ci]
Eduardo San Martin Morote [Thu, 14 Oct 2021 10:16:06 +0000 (12:16 +0200)] 
chore: add notes [skip ci]

3 years agochore: up deps
Eduardo San Martin Morote [Thu, 14 Oct 2021 10:12:47 +0000 (12:12 +0200)] 
chore: up deps

3 years agofix(nuxt): inject state for nuxt 3
Eduardo San Martin Morote [Thu, 14 Oct 2021 09:59:03 +0000 (11:59 +0200)] 
fix(nuxt): inject state for nuxt 3

3 years agofix(nuxt): inject pinia after installing the plugin
Eduardo San Martin Morote [Thu, 14 Oct 2021 09:58:45 +0000 (11:58 +0200)] 
fix(nuxt): inject pinia after installing the plugin

3 years agofeat(nuxt): deprecate context.pinia in favor of context.$pinia
Eduardo San Martin Morote [Thu, 14 Oct 2021 09:58:25 +0000 (11:58 +0200)] 
feat(nuxt): deprecate context.pinia in favor of context.$pinia

3 years agofix(nuxt): point to the correct dist file
Eduardo San Martin Morote [Thu, 14 Oct 2021 09:57:19 +0000 (11:57 +0200)] 
fix(nuxt): point to the correct dist file

3 years agofix: typo (#720)
Lynn [Thu, 14 Oct 2021 06:32:37 +0000 (14:32 +0800)] 
fix: typo (#720)

3 years agorelease: @pinia/nuxt@0.0.4 pinia@2.0.0-rc.13 @pinia/nuxt@0.0.4 pinia@2.0.0-rc.13
Eduardo San Martin Morote [Tue, 12 Oct 2021 16:39:20 +0000 (18:39 +0200)] 
release: @pinia/nuxt@0.0.4 pinia@2.0.0-rc.13

3 years agofix(nuxt): use latest nuxt kit
Eduardo San Martin Morote [Tue, 12 Oct 2021 16:37:30 +0000 (18:37 +0200)] 
fix(nuxt): use latest nuxt kit

Close #717

3 years agodocs: Fix typo (#715)
Kushal Billaiya [Mon, 11 Oct 2021 13:13:43 +0000 (18:43 +0530)] 
docs: Fix typo (#715)

3 years agochore(deps): update all non-major dependencies
Renovate Bot [Mon, 11 Oct 2021 00:45:29 +0000 (00:45 +0000)] 
chore(deps): update all non-major dependencies

3 years agochore: better readme [skip ci]
Eduardo San Martin Morote [Fri, 8 Oct 2021 08:48:52 +0000 (10:48 +0200)] 
chore: better readme [skip ci]

3 years agochore: updated badge [skip ci]
Eduardo San Martin Morote [Fri, 8 Oct 2021 08:40:07 +0000 (10:40 +0200)] 
chore: updated badge [skip ci]

4 years agorelease: pinia@2.0.0-rc.12 pinia@2.0.0-rc.12
Eduardo San Martin Morote [Thu, 7 Oct 2021 10:08:34 +0000 (12:08 +0200)] 
release: pinia@2.0.0-rc.12

4 years agochore: regen lock
Eduardo San Martin Morote [Thu, 7 Oct 2021 08:46:16 +0000 (10:46 +0200)] 
chore: regen lock

4 years agodocs: next as latest (#706)
Eduardo San Martin Morote [Thu, 7 Oct 2021 08:05:08 +0000 (10:05 +0200)] 
docs: next as latest (#706)

4 years agodocs: remove link from SSR [skip ci]
Eduardo San Martin Morote [Thu, 7 Oct 2021 08:03:50 +0000 (10:03 +0200)] 
docs: remove link from SSR [skip ci]

Close #676

4 years agodocs: redeploy
Eduardo San Martin Morote [Wed, 6 Oct 2021 18:51:51 +0000 (20:51 +0200)] 
docs: redeploy

4 years agofeat(warn): log store id with class constructor warning (#702)
Shayne O'Sullivan [Wed, 6 Oct 2021 14:30:14 +0000 (09:30 -0500)] 
feat(warn): log store id with class constructor warning (#702)

4 years agochore: fix typing
Eduardo San Martin Morote [Wed, 6 Oct 2021 09:31:13 +0000 (11:31 +0200)] 
chore: fix typing

4 years agofeat(playground): handle videos
Eduardo San Martin Morote [Wed, 6 Oct 2021 09:29:16 +0000 (11:29 +0200)] 
feat(playground): handle videos

4 years agochore: up deps
Eduardo San Martin Morote [Tue, 5 Oct 2021 15:40:05 +0000 (17:40 +0200)] 
chore: up deps

4 years agofeat: proper check of computed requiring @vue/composition-api@1.2.3
Eduardo San Martin Morote [Tue, 5 Oct 2021 11:11:54 +0000 (13:11 +0200)] 
feat: proper check of computed requiring @vue/composition-api@1.2.3

4 years agochore(deps): update dependency @rollup/plugin-commonjs to v21 (#699)
renovate[bot] [Mon, 4 Oct 2021 09:01:08 +0000 (11:01 +0200)] 
chore(deps): update dependency @rollup/plugin-commonjs to v21 (#699)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
4 years agochore(deps): update all non-major dependencies
Renovate Bot [Mon, 4 Oct 2021 01:55:34 +0000 (01:55 +0000)] 
chore(deps): update all non-major dependencies

4 years agorelease: @pinia/nuxt@0.0.3 pinia@2.0.0-rc.11 @pinia/nuxt@0.0.3 pinia@2.0.0-rc.11
Eduardo San Martin Morote [Sun, 3 Oct 2021 11:21:39 +0000 (13:21 +0200)] 
release: @pinia/nuxt@0.0.3 pinia@2.0.0-rc.11

4 years agochore: remove unused import
Eduardo San Martin Morote [Sun, 3 Oct 2021 11:20:50 +0000 (13:20 +0200)] 
chore: remove unused import

4 years agofix(nuxt): correct build
Eduardo San Martin Morote [Sun, 3 Oct 2021 10:55:25 +0000 (12:55 +0200)] 
fix(nuxt): correct build

4 years agobuild: ignore mjs
Eduardo San Martin Morote [Sun, 3 Oct 2021 09:55:32 +0000 (11:55 +0200)] 
build: ignore mjs

4 years agofix(warn): avoid toRefs warning for Vue 2
Eduardo San Martin Morote [Sun, 3 Oct 2021 09:48:05 +0000 (11:48 +0200)] 
fix(warn): avoid toRefs warning for Vue 2

Fix #648

If this PR https://github.com/vuejs/composition-api/pull/821 gets fixed, this commit can be reverted

4 years agodocs: minor typo and grammar fixes (#697)
shasderias [Sun, 3 Oct 2021 09:02:21 +0000 (17:02 +0800)] 
docs: minor typo and grammar fixes (#697)

4 years agochore: comment for next version
Eduardo San Martin Morote [Fri, 1 Oct 2021 11:50:14 +0000 (13:50 +0200)] 
chore: comment for next version

4 years agofix(build): expose mjs correctly
Eduardo San Martin Morote [Fri, 1 Oct 2021 11:49:53 +0000 (13:49 +0200)] 
fix(build): expose mjs correctly

4 years agofix: export the module version in mjs
Eduardo San Martin Morote [Thu, 30 Sep 2021 16:43:26 +0000 (18:43 +0200)] 
fix: export the module version in mjs

4 years agochore: still show the correct badge
Eduardo San Martin Morote [Thu, 30 Sep 2021 14:27:28 +0000 (16:27 +0200)] 
chore: still show the correct badge

4 years agobuild: prepare for v2 a latest
Eduardo San Martin Morote [Thu, 30 Sep 2021 14:24:23 +0000 (16:24 +0200)] 
build: prepare for v2 a latest

4 years agodocs: update script check
Eduardo San Martin Morote [Thu, 30 Sep 2021 14:18:21 +0000 (16:18 +0200)] 
docs: update script check

4 years agodocs: better migration
Eduardo San Martin Morote [Thu, 30 Sep 2021 14:18:07 +0000 (16:18 +0200)] 
docs: better migration

4 years agofix(types): correctly type global extensions
Eduardo San Martin Morote [Thu, 30 Sep 2021 14:08:15 +0000 (16:08 +0200)] 
fix(types): correctly type global extensions

Fix #630

4 years agorelease: pinia@2.0.0-rc.10 pinia@2.0.0-rc.10
Eduardo San Martin Morote [Thu, 30 Sep 2021 09:13:24 +0000 (11:13 +0200)] 
release: pinia@2.0.0-rc.10

4 years agochore: document skip doc
Eduardo San Martin Morote [Thu, 30 Sep 2021 09:07:22 +0000 (11:07 +0200)] 
chore: document skip doc

4 years agochore: up vitepress
Eduardo San Martin Morote [Thu, 30 Sep 2021 09:04:33 +0000 (11:04 +0200)] 
chore: up vitepress

4 years agobuild: remove check of old file
Eduardo San Martin Morote [Thu, 30 Sep 2021 09:03:59 +0000 (11:03 +0200)] 
build: remove check of old file

4 years agobuild: refactor cjs + mjs (#694)
Eduardo San Martin Morote [Thu, 30 Sep 2021 08:29:27 +0000 (10:29 +0200)] 
build: refactor cjs + mjs (#694)

4 years agotest: fix
Eduardo San Martin Morote [Thu, 30 Sep 2021 08:24:33 +0000 (10:24 +0200)] 
test: fix

4 years agostyle: prettier
Eduardo San Martin Morote [Thu, 30 Sep 2021 08:20:56 +0000 (10:20 +0200)] 
style: prettier

4 years agobuild: tree shake devtools
Eduardo San Martin Morote [Thu, 30 Sep 2021 08:19:55 +0000 (10:19 +0200)] 
build: tree shake devtools

This change in order allows to correctly remove the devtools code

4 years agodocs: display migration guide v1
Eduardo San Martin Morote [Wed, 29 Sep 2021 12:28:11 +0000 (14:28 +0200)] 
docs: display migration guide v1

4 years agodocs: update PiniaVuePlugin usage [skip ci] (#628)
Eduardo San Martin Morote [Wed, 29 Sep 2021 12:28:57 +0000 (14:28 +0200)] 
docs: update PiniaVuePlugin usage [skip ci] (#628)

4 years agodocs: add getters method-style Access example [skip ci] (#633)
reslear [Wed, 29 Sep 2021 12:28:42 +0000 (15:28 +0300)] 
docs: add getters method-style Access example [skip ci] (#633)

* docs: add getters method-style Access example

from https://github.com/posva/pinia/issues/342

* Apply suggestions from code review

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
4 years agobuild(deps): bump prismjs from 1.24.1 to 1.25.0 (#688)
dependabot[bot] [Wed, 29 Sep 2021 10:12:44 +0000 (12:12 +0200)] 
build(deps): bump prismjs from 1.24.1 to 1.25.0 (#688)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agofeat(warn): incorrect state value #641 (#646)
Richard Banks [Wed, 29 Sep 2021 10:12:17 +0000 (20:12 +1000)] 
feat(warn): incorrect state value #641 (#646)

* docs: Add notes on mapState and undefined properties. #641

* feat: warn when constructor call detected in state initialization function

* refactor: revise regex used to detect constructor calls

* feat: warn when a class is used to intialize store state

* feat: warn when a class is used to intialize store state

* feat: warn when a class is used to intialize store state

* Apply suggestions from code review

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
4 years agofix: use assign to set $state
Eduardo San Martin Morote [Wed, 29 Sep 2021 09:34:04 +0000 (11:34 +0200)] 
fix: use assign to set $state

Fix #682

4 years agodocs: explicit imports
Eduardo San Martin Morote [Wed, 29 Sep 2021 09:12:33 +0000 (11:12 +0200)] 
docs: explicit imports

4 years agodocs: update DefineStoreOptions in plugin section
Eduardo San Martin Morote [Wed, 29 Sep 2021 09:08:04 +0000 (11:08 +0200)] 
docs: update DefineStoreOptions in plugin section

4 years agofix(ssr): always call setActivePinia
Eduardo San Martin Morote [Mon, 27 Sep 2021 22:55:22 +0000 (00:55 +0200)] 
fix(ssr): always call setActivePinia

Fix #665

4 years agodocs: typo (#691)
Salim Abubakar [Mon, 27 Sep 2021 22:51:09 +0000 (23:51 +0100)] 
docs: typo (#691)

Co-authored-by: Salim Abubakar <salimabubakar@Salims-MacBook-Pro.local>
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
4 years agochore: fix readme [skip ci]
Eduardo San Martin Morote [Mon, 27 Sep 2021 13:48:48 +0000 (15:48 +0200)] 
chore: fix readme [skip ci]

4 years agodocs: add sponsors
Eduardo San Martin Morote [Mon, 27 Sep 2021 13:45:12 +0000 (15:45 +0200)] 
docs: add sponsors

4 years agochore(deps): update all non-major dependencies
Renovate Bot [Sun, 26 Sep 2021 21:19:25 +0000 (21:19 +0000)] 
chore(deps): update all non-major dependencies

4 years agodocs: upgrade
Eduardo San Martin Morote [Sun, 26 Sep 2021 20:48:56 +0000 (22:48 +0200)] 
docs: upgrade

4 years agochore: up deps
Eduardo San Martin Morote [Sun, 26 Sep 2021 20:30:57 +0000 (22:30 +0200)] 
chore: up deps

4 years agobuild(deps): bump tmpl from 1.0.4 to 1.0.5 (#689)
dependabot[bot] [Tue, 21 Sep 2021 15:49:43 +0000 (17:49 +0200)] 
build(deps): bump tmpl from 1.0.4 to 1.0.5 (#689)

4 years agoUpdate code example in docs (#683)
Filip Sobol [Fri, 17 Sep 2021 18:56:59 +0000 (20:56 +0200)] 
Update code example in docs (#683)