]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commit
refactor: prefix store properties with $ (#254)
authorEduardo San Martin Morote <posva@users.noreply.github.com>
Fri, 9 Oct 2020 10:42:23 +0000 (12:42 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Oct 2020 10:42:23 +0000 (12:42 +0200)
commit751f2867b97f210488eb82bad1ec05af6ab6e72c
tree34c42cb9868e11c45168aea3d4d5abc82e49e58d
parent7c1899f2eb90bc516f9d779707ad265d713320dd
refactor: prefix store properties with $ (#254)

BREAKING CHANGE: all store properties (`id`, `state`, `patch`, `subscribe`, and `reset`) are now prefixed with `$` to allow properties defined with the same type and avoid types breaking. Tip: you can refactor your whole codebase with F2 (or right-click + Refactor) on each of the store's properties
14 files changed:
README.md
__tests__/actions.spec.ts
__tests__/pinia/stores/cart.ts
__tests__/pinia/stores/user.ts
__tests__/ssr.spec.ts
__tests__/store.patch.spec.ts
__tests__/store.spec.ts
__tests__/subscriptions.spec.ts
src/devtools.ts
src/rootStore.ts
src/store.ts
src/types.ts
test-dts/deprecated.test-d.ts
test-dts/store.test-d.ts