posva
Repos
284
Followers
4573
Following
49

Next-gen file based typed routing for vue router

362
19

๐Ÿ Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support

9730
674

๐Ÿšฆ The official router for Vue.js

2677
855

๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

202124
32363

๐Ÿ”ฅ Firebase bindings for Vue.js

3467
288

๐Ÿฆฆ Insanely fast image printing in your terminal

C
1167
54

Events

Created at 15 hours ago
issue comment
[Vue2.7] A type error. method can't be called in option "data"

This might be the same issue of computed referencing other computed properties needing an explicit type annotation. Have you tried this:

defineComponent({
  data(): { data1: number } {
    return {
      data1: this.method1(),
    }
  },
  methods: {
    method1(): number {
      return 1
    }
  }
})
Created at 20 hours ago

docs(zh): sync with English version (#1911)

Co-authored-by: Yoshi Otobe 38850403+yoshiotobe@users.noreply.github.com Co-authored-by: Eduardo San Martin Morote posva13@gmail.com Co-authored-by: ๆž—ๆดต้”‹ linxunfeng@yeah.net Co-authored-by: Eduardo San Martin Morote posva@users.noreply.github.com

Created at 20 hours ago
pull request closed
docs(zh): sync with English version
Created at 20 hours ago
issue comment
docs(zh): sync with English version

I had to do solve some manual merge conflicts. I'm going to give this a look and try to merge it to the other branch to avoid any further issues ๐Ÿ˜…

Created at 21 hours ago

chore: up lock

Created at 21 hours ago

chore: up vue

docs: complete migration to vitepress 1

docs: fix slug generation api

chore: remove unused dep

docs: fix ids

docs(fix): api headers

chore: lock

chore: use vitepress updated

refactor: move docs folder

chore: unused font + sponsors update

docs(zh): update actions.md (#1937)

docs: old statement about actions

chore: comment

chore: update vitepress

refactor: type improvement

docs: add home links

docs: add guide to navbar

docs: use lighter green

docs: use script setup

docs: some warnings

Created at 21 hours ago

chore: remove cache file

Close #1972

chore: up vue

docs: complete migration to vitepress 1

docs: fix slug generation api

chore: remove unused dep

docs: fix ids

docs(fix): api headers

chore: lock

chore: use vitepress updated

refactor: move docs folder

chore: unused font + sponsors update

docs(zh): update actions.md (#1937)

docs: old statement about actions

chore: comment

chore: update vitepress

refactor: type improvement

docs: add home links

docs: add guide to navbar

docs: use lighter green

docs: use script setup

Created at 21 hours ago

chore: up vue

Created at 21 hours ago
pull request closed
chore(deps): update dependency vue to v3

Mend Renovate

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | vue (source) | ^2.7.14 -> ^3.2.47 | age | adoption | passing | confidence |


Release Notes

v3.2.47

Compare Source

Bug Fixes
  • build: enforce __esModule interop for cjs builds (4b70366)

v3.2.46

Compare Source

Bug Fixes

v3.2.45

Compare Source

Bug Fixes

v3.2.44

Compare Source

Bug Fixes

v3.2.43

Compare Source

Bug Fixes
  • watch: ensure oldValue in multi-source watcher is always an array (23e85e2), closes #โ€‹7070

v3.2.42

Compare Source

Bug Fixes

v3.2.41

Compare Source

Bug Fixes

v3.2.40

Compare Source

Bug Fixes

v3.2.39

Compare Source

Bug Fixes

v3.2.38

Compare Source

Bug Fixes
Features
  • custom-elements: automatically respect custom elements when compiling in browser (9f8f07e)
Performance Improvements

v3.2.37

Compare Source

Bug Fixes

v3.2.36

Compare Source

Bug Fixes
Performance Improvements

v3.2.35

Compare Source

Bug Fixes

v3.2.34

Compare Source

Bug Fixes

v3.2.33

Compare Source

Bug Fixes

v3.2.32

Compare Source

Bug Fixes

v3.2.31

Compare Source

Bug Fixes

v3.2.30

Compare Source

Features
  • ssr: support custom directive getSSRProps in optimized compilation (60cf175), closes #โ€‹5304
Performance Improvements
  • reactivity: optimize effect/effectScope active state tracking (2993a24)

v3.2.29

Compare Source

Bug Fixes

v3.2.28

Compare Source


Configuration

๐Ÿ“… Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

๐Ÿšฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.

โ™ป Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

๐Ÿ”• Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Created at 22 hours ago
issue comment
docs(zh): sync with English version

This file was included by accident

Created at 22 hours ago
pull request closed
fix EOL line
Created at 22 hours ago

chore: remove cache file

Close #1972

Created at 22 hours ago
issue comment
watchEffect within `effectScope()` stops working after navigating away from then back to component

Now I see that the import maps were version-fixed and had the wrong version of Vue ๐Ÿฅฒ

Created at 22 hours ago
closed issue
Inheritance of optional URL parameters not working

Version

4.1.6

Reproduction link

codesandbox.io

Steps to reproduce

  1. Go to /en/:
https://kotuh6-5173.preview.csb.app/en/
  1. Explore Navigation Links:
https://kotuh6-5173.preview.csb.app/en/
https://kotuh6-5173.preview.csb.app/en/about
  1. Select German language
  2. Explore Navigation Links:
https://kotuh6-5173.preview.csb.app/de/
https://kotuh6-5173.preview.csb.app/de/about
  1. Make the locale parameter optional:
"/:locale(de|en)" ---> "/:locale(de|en)?" (vite.config.js)
  1. Go to /en/:
https://kotuh6-5173.preview.csb.app/en/
  1. Explore Navigation Links:
https://kotuh6-5173.preview.csb.app/
https://kotuh6-5173.preview.csb.app/about
  1. Select German language
  2. Explore Navigation Links:
https://kotuh6-5173.preview.csb.app/
https://kotuh6-5173.preview.csb.app/about

What is expected?

I expect the locale parameter to be populated if passed in the URL

What is actually happening?

If the locale parameter is not required, it is not filled in even if passed in the URL


Perhaps I am doing something wrong? How can I fill in the locale parameter, automatically?

I understand that I can pass it manually:

<router-link
    :to="{
        name: 'index', params: { locale: $route.params.locale }
    }"
>
Home
</router-link>

Or use beforeEach to fetch the parameter from the previous route (in this case the locale will not be visible in the url and it doesn't make sense if I use SSR)

But, isn't there another way?

Created at 22 hours ago
issue comment
Inheritance of optional URL parameters not working

This is because the parameter is optional so not including it is the way to remove it. So yes, you have to manually pass it. Using a beforeEach() should also be a way to ensure the parameter is there:

router.beforeEach((to, from) => {
  if (!to.params.locale && from.params.locale) {
    return { ...to, params: { ...to.params, locale: from.params.locale }}
  }
})

Only required params are automatically preserved between navigations when the parameter matches but maybe this shouldn't be the default? I think the idea goes way beyond this though and has a big impact on the usage of vue router, so that should go in a proper RFC

Created at 22 hours ago
issue comment
Add ctrl n, p shortcuts, don't do anything with unknown control sequences

Thanks for taking the time to explain the situation. I understand the reluctance to merge new features without tests. Regarding this functionality being opinionated, I could be wrong but it seems to be a standard among shells to use ctrl p for previous and n for next (differently from using ctrl j or k which is a vim thing). Currently, doing a ctrl sequence still types that invisible ctrl sequence and backspace removes it. It should probably be ignored

Created at 1 day ago
issue comment
Production build targeting IE11 contains ES6 syntax

Ah i see. Yeah, given the state of IE, you will have to transpile pinia to use it with IE11

Created at 1 day ago
issue comment
Add ctrl n, p shortcuts, don't do anything with unknown control sequences

Hey @joeykilpatrick, do you know if the author of this package is still active? I noticed you merged the last PR but it hasn't been released

Created at 1 day ago
issue comment
Support the use of UNIX keyboard shortcuts for navigation

https://github.com/terkelg/prompts/pull/330 should implement this

Created at 1 day ago

chore: fix tsconfig paths

Created at 1 day ago

docs: update sponsors

release: pinia@2.0.30

docs: complete migration to vitepress 1

docs: fix slug generation api

chore: remove unused dep

docs: fix ids

docs(fix): api headers

chore: lock

chore: use vitepress updated

refactor: move docs folder

chore: unused font + sponsors update

docs(zh): update actions.md (#1937)

docs: old statement about actions

chore: comment

chore: update vitepress

refactor: type improvement

docs: add home links

docs: add guide to navbar

docs: use lighter green

docs: use script setup

Created at 1 day ago
closed issue
Production build targeting IE11 contains ES6 syntax (arrow functions)

Reproduction

https://github.com/maIIady/pinia-ie-reproduction

Steps to reproduce the bug

  1. clone repo
  2. npm i -> npm run build -> npx serve ./dist
  3. Try opening production build in IE11 and check errors

Expected behavior

There is no unsupported syntax in pinia.prod.cjs image

Actual behavior

Opening production build fails in IE11

Additional information

Reproduction repo also contains workarounds about https://github.com/vuejs/pinia/issues/1143. Production build will also fail if devtools are bundled. This issue resolves with manual traspilation of node_modules/pinia with babel-loader (as I did in project I'm currently working on). However I didn't find a way to make it work in IE even with transpileDependencies: true in vue.config.js in reproduction example.

Is there a way to remove ES6 syntax from pinia production build or I have to manually transpile it with babel?

PS. Gonna gladly open a PR if you provide some information about possibe fixes

Created at 1 day ago
issue comment
Production build targeting IE11 contains ES6 syntax (arrow functions)

I released a new version with the fix of the spread operator in devtools code but note IE11 is not targeted as a supported versions of the devtools code, only of the production build.

Created at 1 day ago
issue comment
Production build targeting IE11 contains ES6 syntax (arrow functions)

Duplicate of #1143

Created at 1 day ago

release: pinia@2.0.30

Created at 1 day ago
create tag
posva create tag pinia@2.0.30
Created at 1 day ago
issue comment
getRoutes() no show passing props on the use of addRoute

Did you search existing issues ๐Ÿ‘€ ? This seems like this one: https://github.com/vuejs/router/issues/600

Created at 1 day ago

docs: mention both useRoute and useRouter functions (#1680)

Created at 1 day ago