]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/log
thirdparty/vuejs/pinia.git
4 years agofeat: allow strict option feat/strict-mode 493/head
Eduardo San Martin Morote [Wed, 12 May 2021 16:44:12 +0000 (18:44 +0200)] 
feat: allow strict option

Close #58

4 years agofeat(devtools): add more data to actions
Eduardo San Martin Morote [Wed, 12 May 2021 15:33:25 +0000 (17:33 +0200)] 
feat(devtools): add more data to actions

4 years agodocs: testing actions devtools
Eduardo San Martin Morote [Wed, 12 May 2021 15:32:46 +0000 (17:32 +0200)] 
docs: testing actions devtools

4 years agodocs: note about subscribe in plugins
Eduardo San Martin Morote [Wed, 12 May 2021 14:55:49 +0000 (16:55 +0200)] 
docs: note about subscribe in plugins

4 years agofeat(types): infer args and returned value for onAction
Eduardo San Martin Morote [Wed, 12 May 2021 14:54:25 +0000 (16:54 +0200)] 
feat(types): infer args and returned value for onAction

4 years agorefactor(types): use Store with defaults, deprecate GenericStore
Eduardo San Martin Morote [Wed, 12 May 2021 14:33:31 +0000 (16:33 +0200)] 
refactor(types): use Store with defaults, deprecate GenericStore

4 years agotest: remove unused code
Eduardo San Martin Morote [Wed, 12 May 2021 12:19:49 +0000 (14:19 +0200)] 
test: remove unused code

4 years agotest: lifespan with ref
Eduardo San Martin Morote [Wed, 12 May 2021 12:19:08 +0000 (14:19 +0200)] 
test: lifespan with ref

4 years agotest(onAction): add tests
Eduardo San Martin Morote [Wed, 12 May 2021 10:06:57 +0000 (12:06 +0200)] 
test(onAction): add tests

4 years agorefactor: pass resolved value in types onAction
Eduardo San Martin Morote [Wed, 12 May 2021 09:30:05 +0000 (11:30 +0200)] 
refactor: pass resolved value in types onAction

4 years agofix(types): patch should unwrap refs
Eduardo San Martin Morote [Wed, 12 May 2021 09:29:07 +0000 (11:29 +0200)] 
fix(types): patch should unwrap refs

4 years agotest(state): test patch with ref
Eduardo San Martin Morote [Wed, 12 May 2021 09:28:31 +0000 (11:28 +0200)] 
test(state): test patch with ref

4 years agotest: refactor property name to avoid collisions
Eduardo San Martin Morote [Wed, 12 May 2021 09:27:55 +0000 (11:27 +0200)] 
test: refactor property name to avoid collisions

4 years agotest(actions): test rejects and throw
Eduardo San Martin Morote [Wed, 12 May 2021 09:27:26 +0000 (11:27 +0200)] 
test(actions): test rejects and throw

4 years agofix(types): unwrap refs passed to state
Eduardo San Martin Morote [Wed, 12 May 2021 07:52:22 +0000 (09:52 +0200)] 
fix(types): unwrap refs passed to state

Fix #491

4 years agostyle: reformat
Eduardo San Martin Morote [Wed, 12 May 2021 07:28:57 +0000 (09:28 +0200)] 
style: reformat

4 years agochore: up deps
Eduardo San Martin Morote [Wed, 12 May 2021 07:28:26 +0000 (09:28 +0200)] 
chore: up deps

4 years agorefactor: remove circular dep
Eduardo San Martin Morote [Tue, 11 May 2021 20:53:20 +0000 (22:53 +0200)] 
refactor: remove circular dep

4 years agorefactor(devtools): simplify with proxy
Eduardo San Martin Morote [Tue, 11 May 2021 20:35:48 +0000 (22:35 +0200)] 
refactor(devtools): simplify with proxy

4 years agofeat(devtools): group action and their changes
Eduardo San Martin Morote [Tue, 11 May 2021 20:23:40 +0000 (22:23 +0200)] 
feat(devtools): group action and their changes

4 years agofeat: subscribe to actions with `$onAction`
Eduardo San Martin Morote [Tue, 11 May 2021 20:21:02 +0000 (22:21 +0200)] 
feat: subscribe to actions with `$onAction`

Implements #240. In alpha, for testing first

4 years agofeat: wip devtools action
Eduardo San Martin Morote [Mon, 10 May 2021 20:42:18 +0000 (22:42 +0200)] 
feat: wip devtools action

4 years agofeat(devtools): allow editing state
Eduardo San Martin Morote [Mon, 10 May 2021 19:59:40 +0000 (21:59 +0200)] 
feat(devtools): allow editing state

4 years agodocs: use more stores for testting
Eduardo San Martin Morote [Mon, 10 May 2021 19:58:26 +0000 (21:58 +0200)] 
docs: use more stores for testting

4 years agofeat!(devtools): group patch changes
Eduardo San Martin Morote [Fri, 7 May 2021 15:42:01 +0000 (17:42 +0200)] 
feat!(devtools): group patch changes

mutation.type in $subscribe is now an enum

4 years agorefactor(types): use isolatedModules
Eduardo San Martin Morote [Fri, 7 May 2021 13:41:39 +0000 (15:41 +0200)] 
refactor(types): use isolatedModules

this allows using the lib directly with vite

4 years agodocs: wip testing devtools
Eduardo San Martin Morote [Fri, 7 May 2021 13:25:11 +0000 (15:25 +0200)] 
docs: wip testing devtools

4 years agorefactor(devtools): devtools as a plugin
Eduardo San Martin Morote [Fri, 7 May 2021 13:24:23 +0000 (15:24 +0200)] 
refactor(devtools): devtools as a plugin

4 years agodocs: add links
Eduardo San Martin Morote [Tue, 11 May 2021 20:58:09 +0000 (22:58 +0200)] 
docs: add links

4 years agorefactor(devtools): only use one inspector state/tree
Eduardo San Martin Morote [Mon, 10 May 2021 14:45:26 +0000 (16:45 +0200)] 
refactor(devtools): only use one inspector state/tree

4 years agorefactor(devtools): rename const variables
Eduardo San Martin Morote [Mon, 10 May 2021 14:44:56 +0000 (16:44 +0200)] 
refactor(devtools): rename const variables

4 years agodocs: fix icon in safari
Eduardo San Martin Morote [Mon, 10 May 2021 14:39:20 +0000 (16:39 +0200)] 
docs: fix icon in safari

4 years agochore(deps): update dependency @rollup/plugin-commonjs to v19 (#487)
renovate[bot] [Mon, 10 May 2021 08:04:25 +0000 (10:04 +0200)] 
chore(deps): update dependency @rollup/plugin-commonjs to v19 (#487)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
4 years agochore(deps): update dependency lint-staged to v11 (#488)
renovate[bot] [Mon, 10 May 2021 08:04:16 +0000 (10:04 +0200)] 
chore(deps): update dependency lint-staged to v11 (#488)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
4 years agobuild: add code analysis
Eduardo San Martin Morote [Sun, 9 May 2021 09:42:59 +0000 (11:42 +0200)] 
build: add code analysis

4 years agochore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#483)
dependabot[bot] [Sun, 9 May 2021 09:41:46 +0000 (11:41 +0200)] 
chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#483)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agochore(deps): bump handlebars from 4.7.6 to 4.7.7 (#479)
dependabot[bot] [Fri, 7 May 2021 15:42:49 +0000 (17:42 +0200)] 
chore(deps): bump handlebars from 4.7.6 to 4.7.7 (#479)

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agochore: up deps
Eduardo San Martin Morote [Fri, 7 May 2021 12:05:18 +0000 (14:05 +0200)] 
chore: up deps

4 years agorelease: v2.0.0-alpha.16 v2.0.0-alpha.16
Eduardo San Martin Morote [Tue, 4 May 2021 19:14:24 +0000 (21:14 +0200)] 
release: v2.0.0-alpha.16

4 years agofeat(devtools): display getters in components
Eduardo San Martin Morote [Tue, 4 May 2021 19:13:06 +0000 (21:13 +0200)] 
feat(devtools): display getters in components

4 years agofix(devtools): add all stores
Eduardo San Martin Morote [Tue, 4 May 2021 19:12:49 +0000 (21:12 +0200)] 
fix(devtools): add all stores

Fix #472

4 years agorelease: v2.0.0-alpha.15
Eduardo San Martin Morote [Tue, 4 May 2021 16:49:08 +0000 (18:49 +0200)] 
release: v2.0.0-alpha.15

4 years agofix(devtools): fix devtools attach
Eduardo San Martin Morote [Tue, 4 May 2021 16:48:35 +0000 (18:48 +0200)] 
fix(devtools): fix devtools attach

4 years agodocs: typo (#469)
Pascal Germain [Mon, 3 May 2021 19:52:52 +0000 (21:52 +0200)] 
docs: typo (#469)

4 years agodocs: missing "function" code example (#468)
Philippe Da Silva [Mon, 3 May 2021 15:59:51 +0000 (17:59 +0200)] 
docs: missing "function" code example (#468)

Just a quick fix in the plugin documentation.

4 years agodocs: action instead of getter (#467)
Julian Martin [Mon, 3 May 2021 12:37:15 +0000 (14:37 +0200)] 
docs: action instead of getter (#467)

4 years agorelease: v2.0.0-alpha.14 v2.0.0-alpha.14
Eduardo San Martin Morote [Mon, 3 May 2021 10:56:17 +0000 (12:56 +0200)] 
release: v2.0.0-alpha.14

4 years agorefactor(types): expose types
Eduardo San Martin Morote [Mon, 3 May 2021 10:51:46 +0000 (12:51 +0200)] 
refactor(types): expose types

4 years agorefactor(types): expose types as needed
Eduardo San Martin Morote [Mon, 3 May 2021 10:43:56 +0000 (12:43 +0200)] 
refactor(types): expose types as needed

4 years agodocs: DefineStoreOptions
Eduardo San Martin Morote [Mon, 3 May 2021 10:23:14 +0000 (12:23 +0200)] 
docs: DefineStoreOptions

4 years agofeat(devtools): work with stores added before app.use (#444)
Marshall Thompson [Mon, 3 May 2021 08:21:19 +0000 (02:21 -0600)] 
feat(devtools): work with stores added before app.use (#444)

* feat: Stores add to devtools before app.use(pinia)
* fix(view): Remove watcher from getClientApp
* fix(view): must resolve the original promise

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
4 years agochore(deps): update all non-major dependencies
Renovate Bot [Mon, 3 May 2021 01:25:08 +0000 (01:25 +0000)] 
chore(deps): update all non-major dependencies

4 years agorefactor: remove unused code
Eduardo San Martin Morote [Sun, 2 May 2021 19:25:59 +0000 (21:25 +0200)] 
refactor: remove unused code

4 years agorefactor: use correct type import
Eduardo San Martin Morote [Sun, 2 May 2021 19:25:50 +0000 (21:25 +0200)] 
refactor: use correct type import

4 years agodocs: typo [skip ci]
Eduardo San Martin Morote [Sun, 2 May 2021 18:48:57 +0000 (20:48 +0200)] 
docs: typo [skip ci]

4 years agodocs: links
Eduardo San Martin Morote [Sun, 2 May 2021 18:32:24 +0000 (20:32 +0200)] 
docs: links

4 years agodocs: better color for diff
Eduardo San Martin Morote [Sun, 2 May 2021 18:28:06 +0000 (20:28 +0200)] 
docs: better color for diff

4 years agochore: changelog note on getters change
Eduardo San Martin Morote [Sun, 2 May 2021 18:27:56 +0000 (20:27 +0200)] 
chore: changelog note on getters change

4 years agodocs: add migration 0.0.7
Eduardo San Martin Morote [Sun, 2 May 2021 18:27:44 +0000 (20:27 +0200)] 
docs: add migration 0.0.7

4 years agochore: remove unused statement
Eduardo San Martin Morote [Sun, 2 May 2021 13:26:21 +0000 (15:26 +0200)] 
chore: remove unused statement

4 years agorefactor: force type when using `this` in getters
Eduardo San Martin Morote [Thu, 29 Apr 2021 12:52:10 +0000 (14:52 +0200)] 
refactor: force type when using `this` in getters

4 years agochore: remove unused import
Eduardo San Martin Morote [Thu, 29 Apr 2021 11:45:43 +0000 (13:45 +0200)] 
chore: remove unused import

4 years agofeat: wip pass state to getters
Eduardo San Martin Morote [Tue, 27 Apr 2021 12:52:27 +0000 (14:52 +0200)] 
feat: wip pass state to getters

4 years agofeat(devtools): add getters to devtools
Eduardo San Martin Morote [Sun, 2 May 2021 13:20:28 +0000 (15:20 +0200)] 
feat(devtools): add getters to devtools

4 years agodocs(getters): ts limitation
Eduardo San Martin Morote [Fri, 30 Apr 2021 15:36:38 +0000 (17:36 +0200)] 
docs(getters): ts limitation

4 years agodocs: import exports
Eduardo San Martin Morote [Fri, 30 Apr 2021 09:12:52 +0000 (11:12 +0200)] 
docs: import exports

4 years agodocs: latest nuxt composition api
Eduardo San Martin Morote [Fri, 30 Apr 2021 09:10:22 +0000 (11:10 +0200)] 
docs: latest nuxt composition api

Close #463

4 years agochore: coverage
Eduardo San Martin Morote [Thu, 29 Apr 2021 14:22:47 +0000 (16:22 +0200)] 
chore: coverage

4 years agorefactor(types): better getter types
Eduardo San Martin Morote [Thu, 29 Apr 2021 14:21:17 +0000 (16:21 +0200)] 
refactor(types): better getter types

4 years agofeat: mark getters as readonly
Eduardo San Martin Morote [Thu, 29 Apr 2021 12:45:02 +0000 (14:45 +0200)] 
feat: mark getters as readonly

4 years agofeat(plugins): allow chaining
Eduardo San Martin Morote [Thu, 29 Apr 2021 12:40:07 +0000 (14:40 +0200)] 
feat(plugins): allow chaining

4 years agofeat: reuse store instances when possible
Eduardo San Martin Morote [Thu, 29 Apr 2021 12:37:09 +0000 (14:37 +0200)] 
feat: reuse store instances when possible

4 years agodocs: Typo (#461)
Jordy [Thu, 29 Apr 2021 11:29:49 +0000 (13:29 +0200)] 
docs: Typo (#461)

4 years agotest: Store suffix customization
Eduardo San Martin Morote [Wed, 28 Apr 2021 17:41:11 +0000 (19:41 +0200)] 
test: Store suffix customization

4 years agofeat(mapHelpers): warn on array mapStores
Eduardo San Martin Morote [Wed, 28 Apr 2021 17:21:22 +0000 (19:21 +0200)] 
feat(mapHelpers): warn on array mapStores

4 years agorefactor: any type to correctly infer
Eduardo San Martin Morote [Wed, 28 Apr 2021 17:03:41 +0000 (19:03 +0200)] 
refactor: any type to correctly infer

4 years agochore: lock update
Eduardo San Martin Morote [Wed, 28 Apr 2021 16:46:22 +0000 (18:46 +0200)] 
chore: lock update

4 years agodocs(plugins): small fixes
Eduardo San Martin Morote [Wed, 28 Apr 2021 16:31:27 +0000 (18:31 +0200)] 
docs(plugins): small fixes

4 years agotest: use @sucrase/jest instead of ts-jest
Eduardo San Martin Morote [Fri, 16 Apr 2021 11:02:37 +0000 (13:02 +0200)] 
test: use @sucrase/jest instead of ts-jest

4 years agotest(types): test options
Eduardo San Martin Morote [Thu, 15 Apr 2021 15:19:56 +0000 (17:19 +0200)] 
test(types): test options

4 years agofeat: pass options to context in plugins
Eduardo San Martin Morote [Thu, 15 Apr 2021 15:19:42 +0000 (17:19 +0200)] 
feat: pass options to context in plugins

4 years agodocs: add unwrapping behavior
Eduardo San Martin Morote [Fri, 2 Apr 2021 14:08:54 +0000 (16:08 +0200)] 
docs: add unwrapping behavior

4 years agofeat(types): expose PiniaPluginContext
Eduardo San Martin Morote [Thu, 1 Apr 2021 15:28:52 +0000 (17:28 +0200)] 
feat(types): expose PiniaPluginContext

4 years agodocs: add plugins to sidebar
Eduardo San Martin Morote [Thu, 1 Apr 2021 15:23:42 +0000 (17:23 +0200)] 
docs: add plugins to sidebar

4 years agodocs(plugins): more about plugins
Eduardo San Martin Morote [Thu, 1 Apr 2021 15:23:11 +0000 (17:23 +0200)] 
docs(plugins): more about plugins

4 years agodocs: wip
Eduardo San Martin Morote [Mon, 29 Mar 2021 12:17:26 +0000 (14:17 +0200)] 
docs: wip

4 years agofeat: add plugin api wip
Eduardo San Martin Morote [Wed, 24 Mar 2021 16:00:08 +0000 (17:00 +0100)] 
feat: add plugin api wip

4 years agochore: missing Ref import
Eduardo San Martin Morote [Wed, 28 Apr 2021 14:50:50 +0000 (16:50 +0200)] 
chore: missing Ref import

4 years agodocs: add watching the store
Eduardo San Martin Morote [Wed, 28 Apr 2021 14:43:34 +0000 (16:43 +0200)] 
docs: add watching the store

4 years agorefactor: remove old warning
Eduardo San Martin Morote [Tue, 27 Apr 2021 12:53:06 +0000 (14:53 +0200)] 
refactor: remove old warning

4 years agodocs: typography (#455)
Simon Legner [Tue, 27 Apr 2021 10:53:47 +0000 (12:53 +0200)] 
docs: typography (#455)

4 years agofeat(plugins): allow void return
Eduardo San Martin Morote [Tue, 27 Apr 2021 08:46:52 +0000 (10:46 +0200)] 
feat(plugins): allow void return

4 years agotest: use faster test
Eduardo San Martin Morote [Mon, 26 Apr 2021 22:05:38 +0000 (00:05 +0200)] 
test: use faster test

4 years agochore: up deps
Eduardo San Martin Morote [Mon, 26 Apr 2021 22:03:20 +0000 (00:03 +0200)] 
chore: up deps

4 years agodocs: ts note
Eduardo San Martin Morote [Mon, 26 Apr 2021 21:57:31 +0000 (23:57 +0200)] 
docs: ts note

See #453

4 years agochore(deps): update all non-major dependencies
Renovate Bot [Mon, 26 Apr 2021 01:05:04 +0000 (01:05 +0000)] 
chore(deps): update all non-major dependencies

4 years agodocs: correct options API action access (#445)
emesenge [Mon, 19 Apr 2021 10:20:11 +0000 (12:20 +0200)] 
docs: correct options API action access (#445)

4 years agorefactor: remove unused types
Eduardo San Martin Morote [Thu, 15 Apr 2021 14:51:05 +0000 (16:51 +0200)] 
refactor: remove unused types

4 years agorefactor: use assign
Eduardo San Martin Morote [Thu, 15 Apr 2021 14:46:22 +0000 (16:46 +0200)] 
refactor: use assign

4 years agofeat(plugins): pass a context object to plugins instead of app
Eduardo San Martin Morote [Thu, 15 Apr 2021 14:43:14 +0000 (16:43 +0200)] 
feat(plugins): pass a context object to plugins instead of app

BREAKING CHANGE: To improve the plugin api capabilities, `pinia.use()`
now receives a context object instead of just `app`:
```js
// replace
pinia.use((app) => {})
// with
pinia.use(({ app }) => {})
```