]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/log
thirdparty/vuejs/pinia.git
3 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

3 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)

3 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

3 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

3 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

3 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

3 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

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

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

3 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

3 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

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

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

3 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

3 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)

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

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

3 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

3 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

3 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)

3 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>
3 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>
3 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>
3 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

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

3 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

3 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

3 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>
3 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]

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

3 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

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

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

3 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)

3 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)

3 years agoUpdate introduction.md (#680)
AlmarAubel [Thu, 16 Sep 2021 15:52:08 +0000 (17:52 +0200)] 
Update introduction.md (#680)

3 years agodocs: add action example in setup mode (#661)
coyotte508 [Sun, 12 Sep 2021 10:51:00 +0000 (12:51 +0200)] 
docs: add action example in setup mode (#661)

* feat(docs): add action example in setup mode

As a first time user, a lot of things that are now obvious were not to me. Like the fact that you don't need to call `this.$patch` when defining an action in setup mode.

* docs: Same functionalities in setup / options examples

* Apply suggestions from code review

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
3 years agorelease: pinia@2.0.0-rc.9 pinia@2.0.0-rc.9
Eduardo San Martin Morote [Sun, 12 Sep 2021 10:47:29 +0000 (12:47 +0200)] 
release: pinia@2.0.0-rc.9

3 years agorefactor: damn
Eduardo San Martin Morote [Sun, 12 Sep 2021 10:43:31 +0000 (12:43 +0200)] 
refactor: damn

3 years agofix(vue2): delay getters until stores are ready when cross using them
Eduardo San Martin Morote [Sun, 12 Sep 2021 10:15:36 +0000 (12:15 +0200)] 
fix(vue2): delay getters until stores are ready when cross using them

3 years agotest: test cross usage of stores for getters
Eduardo San Martin Morote [Sat, 11 Sep 2021 16:50:14 +0000 (18:50 +0200)] 
test: test cross usage of stores for getters

3 years agobuild: use cjs and mjs extensions in dist
Eduardo San Martin Morote [Fri, 10 Sep 2021 13:57:12 +0000 (15:57 +0200)] 
build: use cjs and mjs extensions in dist

3 years agochore: up deps
Eduardo San Martin Morote [Fri, 10 Sep 2021 09:10:08 +0000 (11:10 +0200)] 
chore: up deps

3 years agofix: correct store in getters vue 2
Eduardo San Martin Morote [Wed, 8 Sep 2021 14:42:14 +0000 (16:42 +0200)] 
fix: correct store in getters vue 2

3 years agofix(vue2): fix isComputed check for getters
Eduardo San Martin Morote [Mon, 6 Sep 2021 15:53:34 +0000 (17:53 +0200)] 
fix(vue2): fix isComputed check for getters

3 years agorelease: pinia@2.0.0-rc.8 pinia@2.0.0-rc.8
Eduardo San Martin Morote [Mon, 6 Sep 2021 08:22:33 +0000 (10:22 +0200)] 
release: pinia@2.0.0-rc.8

3 years agochore(deps): update all non-major dependencies
Renovate Bot [Mon, 6 Sep 2021 03:32:32 +0000 (03:32 +0000)] 
chore(deps): update all non-major dependencies

3 years agofix: correctly set the store properties in Vue 2
Eduardo San Martin Morote [Sun, 5 Sep 2021 18:18:08 +0000 (20:18 +0200)] 
fix: correctly set the store properties in Vue 2

Fix #657

3 years agorelease: @pinia/nuxt@0.0.2 pinia@2.0.0-rc.7 @pinia/testing@0.0.3 @pinia/nuxt@0.0.2 @pinia/testing@0.0.3 pinia@2.0.0-rc.7
Eduardo San Martin Morote [Fri, 3 Sep 2021 14:32:34 +0000 (16:32 +0200)] 
release: @pinia/nuxt@0.0.2 pinia@2.0.0-rc.7 @pinia/testing@0.0.3

3 years agobuild: fix variables
Eduardo San Martin Morote [Fri, 3 Sep 2021 14:29:18 +0000 (16:29 +0200)] 
build: fix variables

3 years agorefactor: avoid double hydration in setup stores
Eduardo San Martin Morote [Fri, 3 Sep 2021 14:25:25 +0000 (16:25 +0200)] 
refactor: avoid double hydration in setup stores

3 years agochore: regen lock
Eduardo San Martin Morote [Fri, 3 Sep 2021 13:56:29 +0000 (15:56 +0200)] 
chore: regen lock

3 years agochore(deps): update all non-major dependencies
Renovate Bot [Fri, 3 Sep 2021 11:53:47 +0000 (11:53 +0000)] 
chore(deps): update all non-major dependencies

3 years agobuild(deps): bump tar from 4.4.17 to 4.4.19 (#644)
dependabot[bot] [Fri, 3 Sep 2021 10:56:17 +0000 (12:56 +0200)] 
build(deps): bump tar from 4.4.17 to 4.4.19 (#644)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years agofeat: support TS 4.4 (#656)
Eduardo San Martin Morote [Fri, 3 Sep 2021 10:55:56 +0000 (12:55 +0200)] 
feat: support TS 4.4 (#656)

3 years agochore: up vue
Eduardo San Martin Morote [Fri, 3 Sep 2021 09:15:51 +0000 (11:15 +0200)] 
chore: up vue

3 years agotest: add test for storeToRefs
Eduardo San Martin Morote [Fri, 3 Sep 2021 08:36:52 +0000 (10:36 +0200)] 
test: add test for storeToRefs

See #654

3 years agodocs: api title
Eduardo San Martin Morote [Wed, 1 Sep 2021 12:08:42 +0000 (14:08 +0200)] 
docs: api title

3 years agochore: up typedoc
Eduardo San Martin Morote [Wed, 1 Sep 2021 08:08:53 +0000 (10:08 +0200)] 
chore: up typedoc

3 years agochore: up test deps
Eduardo San Martin Morote [Wed, 1 Sep 2021 07:58:13 +0000 (09:58 +0200)] 
chore: up test deps

3 years agochore: up vue versions
Eduardo San Martin Morote [Wed, 1 Sep 2021 07:55:14 +0000 (09:55 +0200)] 
chore: up vue versions

3 years agochore: up vitepress deps
Eduardo San Martin Morote [Wed, 1 Sep 2021 07:52:03 +0000 (09:52 +0200)] 
chore: up vitepress deps

3 years agodocs: fix api build
Eduardo San Martin Morote [Tue, 31 Aug 2021 21:37:04 +0000 (23:37 +0200)] 
docs: fix api build

3 years agodocs: add generated api docs
Eduardo San Martin Morote [Tue, 31 Aug 2021 21:29:57 +0000 (23:29 +0200)] 
docs: add generated api docs

3 years agodocs: fix table colors
Eduardo San Martin Morote [Tue, 31 Aug 2021 11:09:23 +0000 (13:09 +0200)] 
docs: fix table colors

3 years agodocs: use arrow function for state (#643)
Tom Locke [Tue, 31 Aug 2021 09:21:52 +0000 (10:21 +0100)] 
docs: use arrow function for state (#643)

3 years agodocs: fixed dead link to docs (#638)
Soviut [Sun, 29 Aug 2021 19:20:27 +0000 (15:20 -0400)] 
docs: fixed dead link to docs (#638)

3 years agodocs: typo
Tom Locke [Sun, 29 Aug 2021 19:17:59 +0000 (20:17 +0100)] 
docs: typo

3 years agofix(ssr): properly hydrate setup stores
Eduardo San Martin Morote [Fri, 27 Aug 2021 16:34:58 +0000 (18:34 +0200)] 
fix(ssr): properly hydrate setup stores

3 years agotest: remove unused import
Eduardo San Martin Morote [Fri, 27 Aug 2021 15:25:51 +0000 (17:25 +0200)] 
test: remove unused import

3 years agotest: refactor pinia creation
Eduardo San Martin Morote [Fri, 27 Aug 2021 15:24:03 +0000 (17:24 +0200)] 
test: refactor pinia creation

3 years agotest(hmr): more tests for setup
Eduardo San Martin Morote [Fri, 27 Aug 2021 13:52:43 +0000 (15:52 +0200)] 
test(hmr): more tests for setup

3 years agotest: refactor
Eduardo San Martin Morote [Fri, 27 Aug 2021 13:41:01 +0000 (15:41 +0200)] 
test: refactor

3 years agotest: add tests and increase coverage
Eduardo San Martin Morote [Fri, 27 Aug 2021 13:17:16 +0000 (15:17 +0200)] 
test: add tests and increase coverage

3 years agofeat: allow stores to be cross used
Eduardo San Martin Morote [Fri, 27 Aug 2021 13:16:57 +0000 (15:16 +0200)] 
feat: allow stores to be cross used

3 years agodocs: better api
Eduardo San Martin Morote [Fri, 27 Aug 2021 08:15:50 +0000 (10:15 +0200)] 
docs: better api

3 years agodocs: deploy api
Eduardo San Martin Morote [Thu, 26 Aug 2021 16:34:00 +0000 (18:34 +0200)] 
docs: deploy api

3 years agofeat: add typedoc
Eduardo San Martin Morote [Wed, 25 Aug 2021 16:01:22 +0000 (18:01 +0200)] 
feat: add typedoc

3 years agodocs: remove codestream
Eduardo San Martin Morote [Wed, 25 Aug 2021 09:24:09 +0000 (11:24 +0200)] 
docs: remove codestream

3 years agochore: up sponsors [skip ci]
Eduardo San Martin Morote [Wed, 25 Aug 2021 09:11:07 +0000 (11:11 +0200)] 
chore: up sponsors [skip ci]

3 years agodocs: add store destructure guide (#621)
TomatoGuy0502 [Wed, 25 Aug 2021 08:40:26 +0000 (16:40 +0800)] 
docs: add store destructure guide (#621)

* docs: add store destructure guide

* Apply suggestions from code review

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
3 years agochore: remove comment
Eduardo San Martin Morote [Tue, 24 Aug 2021 08:27:57 +0000 (10:27 +0200)] 
chore: remove comment

3 years agodocs: add vue cli plugin link
Eduardo San Martin Morote [Tue, 24 Aug 2021 07:51:58 +0000 (09:51 +0200)] 
docs: add vue cli plugin link

Close #42

3 years agochore: add security policy
Eduardo San Martin Morote [Tue, 24 Aug 2021 07:39:41 +0000 (09:39 +0200)] 
chore: add security policy

3 years agorefactor: use PiniaVuePlugin
Eduardo San Martin Morote [Tue, 24 Aug 2021 07:36:37 +0000 (09:36 +0200)] 
refactor: use PiniaVuePlugin

3 years agofeat: deprecate PiniaPlugin in favor of PiniaVuePlugin
Eduardo San Martin Morote [Tue, 24 Aug 2021 07:33:45 +0000 (09:33 +0200)] 
feat: deprecate PiniaPlugin in favor of PiniaVuePlugin

3 years agodocs: document pinia plugins for nuxt
Eduardo San Martin Morote [Tue, 24 Aug 2021 07:31:36 +0000 (09:31 +0200)] 
docs: document pinia plugins for nuxt

See #622

3 years agodocs: remove buggy theme toggle
Eduardo San Martin Morote [Mon, 23 Aug 2021 12:40:59 +0000 (14:40 +0200)] 
docs: remove buggy theme toggle

3 years agochore: minor updates
Eduardo San Martin Morote [Mon, 23 Aug 2021 12:40:46 +0000 (14:40 +0200)] 
chore: minor updates

3 years agochore(deps): update all non-major dependencies
Renovate Bot [Mon, 23 Aug 2021 00:50:38 +0000 (00:50 +0000)] 
chore(deps): update all non-major dependencies

4 years agodocs: migration v1 nuxt
Eduardo San Martin Morote [Fri, 20 Aug 2021 15:23:46 +0000 (17:23 +0200)] 
docs: migration v1 nuxt

4 years agochore: start vue 2 test package
Eduardo San Martin Morote [Fri, 20 Aug 2021 15:23:24 +0000 (17:23 +0200)] 
chore: start vue 2 test package

4 years agodocs: fix changelog link
Eduardo San Martin Morote [Fri, 20 Aug 2021 15:03:53 +0000 (17:03 +0200)] 
docs: fix changelog link

4 years agodocs: add migration guide v1
Eduardo San Martin Morote [Fri, 20 Aug 2021 15:03:39 +0000 (17:03 +0200)] 
docs: add migration guide v1

4 years agodocs: fix usedark usage
Eduardo San Martin Morote [Fri, 20 Aug 2021 12:18:39 +0000 (14:18 +0200)] 
docs: fix usedark usage

4 years agoci: fix link [skip ci]
Eduardo San Martin Morote [Thu, 19 Aug 2021 17:33:55 +0000 (19:33 +0200)] 
ci: fix link [skip ci]

4 years agobuild: fix build script [skip ci]
Eduardo San Martin Morote [Thu, 19 Aug 2021 17:25:35 +0000 (19:25 +0200)] 
build: fix build script [skip ci]

4 years agorelease: pinia@2.0.0-rc.6 @pinia/testing@0.0.2 @pinia/testing@0.0.2 pinia@2.0.0-rc.6
Eduardo San Martin Morote [Thu, 19 Aug 2021 17:19:11 +0000 (19:19 +0200)] 
release: pinia@2.0.0-rc.6 @pinia/testing@0.0.2

4 years agofix: add back dts files
Eduardo San Martin Morote [Thu, 19 Aug 2021 17:18:01 +0000 (19:18 +0200)] 
fix: add back dts files

4 years agodocs: instructions for nuxt
Eduardo San Martin Morote [Thu, 19 Aug 2021 17:17:17 +0000 (19:17 +0200)] 
docs: instructions for nuxt