instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
vtex__react-hook-form-jsonschema__14 | vtex/react-hook-form-jsonschema | 14 | defect | d5ab532a649814af5e25d76b762f46e7f1f816e1 | 3b08ddc2ee289ee7df37e0ba8db22af0b23ba612 | Fix/enum error message | #### What problem is this solving?
This PR solves the `ErrorMessage` not returning the expected values of the error type `notInEnum`
#### Checklist/Reminders
- [ ] Updated `README.md`.
- [x] Updated `CHANGELOG.md`.
- [ ] Linked this PR to a Clubhouse story (if applicable).
- [x] Updated/created tests (impor... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d7b37fd6..a7715359 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fix
+
+- `notInEnum` to return expected value in `expected` field of the `ErrorMessag... | 1 | 1 | 0 | [{"id": "G0", "claim": "The inline enum-to-string map should be moved to a module with a descriptive name so readers understand the code and the repetition across useCheckbox, useRadio and useSelect is avoided.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vue-gl__vue-gl__554 | vue-gl/vue-gl | 554 | defect | 25f64b800e8e3c503a44fc877addd3afbac6dad5 | a66819f6566902f5e3ff540559f1410b7ad01af9 | Add component wrapper for THREE.ShaderMaterial | This PR adds a `VglShaderMaterial` component that wraps [THREE.ShaderMaterial](https://threejs.org/docs/index.html#api/en/materials/ShaderMaterial), allowing users to write custom shaders for their objects.
I left out some of the props that seemed more specialized (mainly because I wasn't sure how to test them). I'... | diff --git a/README.md b/README.md
index 64bf109a..684b8ce6 100644
--- a/README.md
+++ b/README.md
@@ -183,7 +183,7 @@ When you open the html above in the browser, you'll see below.
Corresponding to [THREE.PointsMaterial](https://threejs.org/docs/index.html#api/materials/PointsMaterial)
- [ ] **[VglRawShade... | 2 | 2 | 2 | [{"id": "G0", "claim": "Make the props that cannot affect the material after instantiation (fog, lights) reactive by setting them in the `inst` computed function so the instance is recreated when props change, accepting a performance cost.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
vuejs__composition-api__447 | vuejs/composition-api | 447 | defect | 7fa805c4322db39219694cb125db0d44d9b5bc8a | 4feffec6960ee627f0a3c80bf107c5613d18889a | feat(shallowReadonly): add shallowReadonly and set computed to be shallowReadonly | Adding `shallowReadonly` and setting the `computed` to behave as `shallowReadonly`.
This will allow to check if we are allowed to set the value on the computed.
fix https://github.com/vuejs/composition-api/issues/445
This behaviour has not been approved nor in vue-next.
https://github.com/vuejs/vue-next/pul... | diff --git a/src/apis/computed.ts b/src/apis/computed.ts
index baa2f659..a3753e70 100644
--- a/src/apis/computed.ts
+++ b/src/apis/computed.ts
@@ -42,15 +42,18 @@ export function computed<T>(
vm && vm.$on('hook:destroyed', () => computedHost.$destroy())
- return createRef<T>({
- get: () => (computedHost as a... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new 'Write operation failed: computed value is readonly.' warning may mislead users because computed is not always read-only, and the previous 'Computed property was assigned to but it has no setter.' warning told users more about the problem.", "category": "design", "verdict": "opposed", "p... | null |
vuejs__composition-api__502 | vuejs/composition-api | 502 | defect | 026a78aab73df4f1c601a085dc8aa2cbe9e8bcb4 | b1cb01761ebf6daae3b91408c8fef6d7b285525b | feat: improve reactive checks | Instead of changing `reactive` object we just use a weak set to keep track on what objects are reactive
This allows to have `arrays` as `reactive`, bringing it closer to vue 3
Still need to:
- Extensive testing
Close #501, close #219 | diff --git a/README.md b/README.md
index 11d0fcf6..6ea81f29 100644
--- a/README.md
+++ b/README.md
@@ -152,33 +152,6 @@ b.list[0].count.value === 0 // true
</details>
-<details>
-<summary>
-✅ <b>Should</b> always use <code>ref</code> in a <code>reactive</code> when working with <code>Array</code>
-</summary>
-
-``... | 2 | 2 | 1 | [{"id": "G0", "claim": "The two assertions this PR uncommented still carry the stale trailing comment '//not supported by vue2', which now contradicts the code, and the suggestion asks to drop it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "New... | null |
vuejs__composition-api__520 | vuejs/composition-api | 520 | defect | d2df8423e6fee87aab6c59f75427f14eb510fef8 | 7d6f23ed464dbbb4595d2447177e948f6557f6e8 | feat(getCurrentInstance): Aligning with vue3 | fix #499
BREAKING CHANGE: The internal vm can be accessed with `getCurrentInstance().proxy`
```js
const vm = getCurrentInstance()
// becomes
const vm = getCurrentInstance().proxy
``` | diff --git a/src/apis/computed.ts b/src/apis/computed.ts
index 3aab9f78..d2042dea 100644
--- a/src/apis/computed.ts
+++ b/src/apis/computed.ts
@@ -26,7 +26,7 @@ export function computed<T>(options: Option<T>): WritableComputedRef<T>
export function computed<T>(
options: Option<T>['get'] | Option<T>
): ComputedRef<... | 2 | 1 | 0 | [{"id": "G0", "claim": "The functions could be renamed to `getCurrentVue2Instance` and `toVue3Instance`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`root` and `parent` could also be included in the specialProps mapping.", "category": "design... | null |
vuejs__composition-api__655 | vuejs/composition-api | 655 | defect | be9de86a248c8f5e8f52aec1beeee78cc2e3519a | 3d44c293e987d225b2cc6e71f7ce9654d3493089 | fix(types): RequiredKeys type | Closes #654 | diff --git a/src/component/componentProps.ts b/src/component/componentProps.ts
index d01ee3ed..85199e79 100644
--- a/src/component/componentProps.ts
+++ b/src/component/componentProps.ts
@@ -27,7 +27,7 @@ type PropConstructor<T> =
| { new (...args: string[]): Function }
type RequiredKeys<T> = {
- [K in keyof T]:... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request's type tests do not pass after the RequiredKeys change, and the author should make the tests pass.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
vuejs__composition-api__723 | vuejs/composition-api | 723 | defect | d30a45abcc7cda411f97b1987d4fa24765843cf7 | 765a56d17cbb7330c351bbb7951fbc35b4f3843d | fix(observe): solve the Ref not unwrapping on the ssr side issue with recursive way. | Solving #721 with #722:
```
it('result of #722', () => {
const state = { old: ref(false) }
set(state, 'new', ref(true))
expect(JSON.stringify(state)).toBe(
'{"old":{"value":false},"new":true}' // 'old' is different from 'new'
)
})
```
the form of value of `old` key is different from... | diff --git a/src/reactivity/reactive.ts b/src/reactivity/reactive.ts
index 38469e2e..034e6450 100644
--- a/src/reactivity/reactive.ts
+++ b/src/reactivity/reactive.ts
@@ -118,11 +118,30 @@ export function observe<T>(obj: T): T {
// in SSR, there is no __ob__. Mock for reactivity check
if (!hasOwn(observed, '__ob_... | 1 | 1 | 1 | [{"id": "G0", "claim": "The recursive walk added in observe needs a seen map (a WeakMap parameter) to avoid infinite recursion on circular references.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__devtools__419 | vuejs/devtools | 419 | defect | a852c2e0eb2f4dba29a78e7f62f594fbcdcb3e5b | 8dafa45f9033a5557d2e02ab4a5a12913801bb1f | feat(applet): improve long-string display in components panel | closes #417 | diff --git a/packages/applet/uno.config.ts b/packages/applet/uno.config.ts
index 0aad3e1fd..e85be0b07 100644
--- a/packages/applet/uno.config.ts
+++ b/packages/applet/uno.config.ts
@@ -44,6 +44,8 @@ export default defineConfig(mergeConfigs([unoConfig, {
'bg-active': 'bg-gray:5',
'border-base': 'border-gray/20... | 1 | 1 | 1 | [{"id": "G0", "claim": "UnoCSS classes should not be hardcoded in `@vue/devtools-kit`'s `formatInspectorStateValue`, since the kit must stay compatible with other projects that consume it without UnoCSS.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__language-tools__4634 | vuejs/language-tools | 4,634 | defect | dc6f943c6ccb26778906a49532966aaf69fdc5a5 | 8379263ecc99ef550cc61f9567d70467633a8131 | feat(language-core): inlay hints for destructured props | resolve #4622
It will look like:

| diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json
index 908bc07e50..60315bcb01 100644
--- a/extensions/vscode/package.json
+++ b/extensions/vscode/package.json
@@ -383,6 +383,11 @@
"default": true,
"description": "Auto add space between double curly brackets: {{|}} -> {{ | }}"
... | 6 | 5 | 2 | [{"id": "G0", "claim": "Use a named tuple type instead of `[ts.Identifier, boolean /* isShorthand */]` for destructuredReferences.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Indent the new test file with tabs instead of spaces.", "category":... | null |
vuejs__language-tools__4796 | vuejs/language-tools | 4,796 | defect | bdf5d410b4ab51c78253193bc3c37854ea157f12 | be1257819790739e6d97f574806a71e74e3a86e7 | feat(language-service): JSDoc display support when typing props on component template | resolve #4663 | diff --git a/packages/language-service/lib/ideFeatures/nameCasing.ts b/packages/language-service/lib/ideFeatures/nameCasing.ts
index 4201d27b54..a80eb8526f 100644
--- a/packages/language-service/lib/ideFeatures/nameCasing.ts
+++ b/packages/language-service/lib/ideFeatures/nameCasing.ts
@@ -86,7 +86,7 @@ export async fu... | 1 | 1 | 0 | [{"id": "G0", "claim": "The manual empty-string/break handling in generateCommentMarkdown can be replaced with `[parsedComment, parsedJsDoc].join('\\n\\n')` since the content is trimmed automatically.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vuejs__language-tools__5761 | vuejs/language-tools | 5,761 | defect | 3a84ff602e336316e11f4e83abfaa9d7ef909ff6 | 392b46f9723e03157bff16e3c24cbc0c7df8f0f7 | feat(vscode): supports format with selected range | Resolve #5274
https://github.com/user-attachments/assets/3ca6f814-7bee-4345-a3ae-ed641b67b3fd | diff --git a/extensions/vscode/index.ts b/extensions/vscode/index.ts
index 8e82270904..06ecdb02a0 100644
--- a/extensions/vscode/index.ts
+++ b/extensions/vscode/index.ts
@@ -18,6 +18,7 @@ import * as vscode from 'vscode';
import { config } from './lib/config';
import * as focusMode from './lib/focusMode';
import * ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Due to the condition at line 34, the `editStart < selectionStart || editStart > selectionEnd` early return inside `getTrimmedNewText` (lines 61-63) is dead code and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
vuejs__pinia__1356 | vuejs/pinia | 1,356 | defect | 2eb123d8114ceb4fad46ac019844a1967d9a9135 | 2f959e1de7219161e4de5114986b193e115cab1e | feat: warn when a getter conflicts with the state | ### Description:
This allows Pinia store to warn user if they are using the same getter and state property name in a store.
### Related Issue:
close #1331
### Testing Notes:
Passed all tests, didn't add any new test
### Side Note:
I think showing the message using `consloe.error` is more understandable th... | diff --git a/packages/pinia/src/store.ts b/packages/pinia/src/store.ts
index 9987608a21..35a0406537 100644
--- a/packages/pinia/src/store.ts
+++ b/packages/pinia/src/store.ts
@@ -149,6 +149,17 @@ function createOptionsStore<
localState,
actions,
Object.keys(getters || {}).reduce((computedGetters, n... | 5 | 5 | 1 | [{"id": "G0", "claim": "Iterating Object.keys(pinia.state.value[id]) is slower than checking the name in localState, which would be much faster.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The conflict notice should be logged with console.warn in... | null |
vuejs__pinia__1562 | vuejs/pinia | 1,562 | defect | 0f99104561b9d21522df018ce4dc26fa926021a9 | 7e6b8446e3b811d245df45eb6306e7ebbe7c8a1e | test(nuxt): add e2e test | <!--
Please make sure to include a test! If this is closing an
existing issue, reference that issue as well.
-->
| diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 754794cf26..fe2c43ee01 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -27,6 +27,7 @@ jobs:
- run: pnpm install
- run: pnpm run lint
- run: pnpm run test:types
+ - run: pnpm run -r dev:prepar... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `pnpm run -r dev:prepare` step should also be added to the root package.json `test` script, not only to the CI workflow.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__pinia__2167 | vuejs/pinia | 2,167 | defect | 27d490eb9cdb662591f41e590df0a75ccc21caaa | edb83853e5b14ebe6f18e2079969839218f98c49 | feat(dx): throw an error if store id is missing | Calling `defineStore` without an id appears to succeed, but it fails when calling `useStore`:
```
Cannot read properties of undefined (reading 'startsWith')
at devtoolsPlugin (pinia.mjs:925:19)
at pinia.mjs:1631:48
at EffectScope.run (reactivity.esm-bundler.js:37:24)
at pinia.mjs:1631:38
at... | diff --git a/packages/pinia/__tests__/store.spec.ts b/packages/pinia/__tests__/store.spec.ts
index 4e0a21ad7e..a9561cb0de 100644
--- a/packages/pinia/__tests__/store.spec.ts
+++ b/packages/pinia/__tests__/store.spec.ts
@@ -379,4 +379,10 @@ describe('Store', () => {
`[🍍]: A getter cannot have the same name as an... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error message should read \"[🍍]: \\\"defineStore()\\\" must be passed a store id as its first argument.\" instead of mentioning the \"id\" option, since the reviewer might deprecate the \"id\" option in the future and prefers to recommend only passing the store id as the first argument.", "... | null |
vuejs__pinia__2847 | vuejs/pinia | 2,847 | defect | ea14e53fdfc0d0f4cd80d5242572f87714a77e3b | d0bdacb786046e1b8ad3b1bc356a6f7c714f4c08 | feat: writable `computed`s to be picked up by `mapWritableState` | resolve #2823
| diff --git a/packages/pinia/__tests__/mapHelpers.spec.ts b/packages/pinia/__tests__/mapHelpers.spec.ts
index 11a5b415f2..6c532857ef 100644
--- a/packages/pinia/__tests__/mapHelpers.spec.ts
+++ b/packages/pinia/__tests__/mapHelpers.spec.ts
@@ -10,7 +10,7 @@ import {
setMapStoreSuffix,
} from '../src'
import { mount... | 3 | 3 | 1 | [{"id": "G0", "claim": "`_ExtractStateFromSetupStore_Keys` should not include computed (even writable ones); instead, the types related to `mapWritableState` should be the ones changed so they include writable computed alongside state properties.", "category": "design", "verdict": "supported", "priority": "P1", "scope"... | null |
vuejs__pinia__3040 | vuejs/pinia | 3,040 | defect | 57bec95d45da9b9c3fb5ae90b7a9b1a70d533862 | e40f96914a031fa34678e248502431a1280feeeb | feat: add selective action stubbing support | feat(testing): add selective action stubbing support
- Add support for include/exclude options in stubActions parameter
- Allow stubbing only specific actions or excluding specific actions from stubbing
- Maintain backward compatibility with boolean stubActions values
- Add comprehensive tests for all selective s... | diff --git a/packages/docs/cookbook/testing.md b/packages/docs/cookbook/testing.md
index 4c1a2a0f54..67a5d43268 100644
--- a/packages/docs/cookbook/testing.md
+++ b/packages/docs/cookbook/testing.md
@@ -166,6 +166,70 @@ store.someAction()
expect(store.someAction).toHaveBeenCalledTimes(1)
```
+### Selective action s... | 6 | 2 | 0 | [{"id": "G0", "claim": "Remove the lingering '@pinia/playground' package from the workspace - delete or rename packages/playground (or update its package.json) and clear any remaining references to the old name so only the renamed package remains.", "category": "maintainability", "verdict": "supported", "priority": "P2... | null |
vuejs__pinia__745 | vuejs/pinia | 745 | defect | 1b397f1c90df8dcfbbe2f1c7c706912644fb4f7b | 1fb09a26b54f10db86ef47f45dc4301c56f4b243 | fix(plugins): ensure plugins are used only once | Fix #744 | diff --git a/packages/pinia/__tests__/storePlugins.spec.ts b/packages/pinia/__tests__/storePlugins.spec.ts
index cc484b4fe8..fdbb33a30c 100644
--- a/packages/pinia/__tests__/storePlugins.spec.ts
+++ b/packages/pinia/__tests__/storePlugins.spec.ts
@@ -247,4 +247,21 @@ describe('store plugins', () => {
store.n++
... | 2 | 2 | 0 | [{"id": "G0", "claim": "Instead of emptying the array in place with splice, redeclare toBeInstalled as a let and reassign toBeInstalled = [].", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the new test, use a jest spy added with pinia.use(spy) and ass... | null |
vuejs__router__2491 | vuejs/router | 2,491 | defect | 1dfb38f283a85e494e30e8aaf9c61837247201a4 | 48fa9e8097a3a42951f0c5169e5a9f8693379e23 | feat: memory history stores state | Memory history now stores the `state` property through navigations. | diff --git a/packages/router/__tests__/history/memory.spec.ts b/packages/router/__tests__/history/memory.spec.ts
index 6a6b19d25..5745c8043 100644
--- a/packages/router/__tests__/history/memory.spec.ts
+++ b/packages/router/__tests__/history/memory.spec.ts
@@ -1,11 +1,15 @@
import { createMemoryHistory } from '../../s... | 2 | 2 | 0 | [{"id": "G0", "claim": "Rename the queue tuple's elements with named tuple labels (historyLocation: HistoryLocation, state: HistoryState) so the types are self-documenting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the replace() (and... | null |
vuejs__router__2604 | vuejs/router | 2,604 | defect | a705f4f7e477fa99255a6aa550bb65f9de5914df | 53a641da20de5974368baa57d16ad7834371333d | fix: trigger navigation guards when keep-alive component is reactivated for different route | fixes https://github.com/vuejs/router/issues/2601
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Bug Fixes**
* Improved route-guard registration and lifecycle with kept-alive/shared components so guards are associated with the correct active route, re-registe... | diff --git a/packages/router/__tests__/guards/onBeforeRouteLeave.spec.ts b/packages/router/__tests__/guards/onBeforeRouteLeave.spec.ts
index a244874f9..eb1b82a9b 100644
--- a/packages/router/__tests__/guards/onBeforeRouteLeave.spec.ts
+++ b/packages/router/__tests__/guards/onBeforeRouteLeave.spec.ts
@@ -5,8 +5,10 @@ im... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Step 2 comment in onBeforeRouteLeave.spec.ts says the component navigates to /a/123, but the test actually navigates to /other, so the comment should be fixed to match.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
vuejs__vitepress__1687 | vuejs/vitepress | 1,687 | defect | 655bca1d7081fc618ce00a28253e1dcf172b8d73 | e42c2f58fcc8d228be5046cd942e936797223e4c | fix(snippet): dedent of a single-line region, close #1686 | I had to `export dedent` function in order to cover it with unit tests. However, it would be much better to leverage [in-source testing](https://vitest.dev/guide/in-source.html) in this case.
Closes #1686
| diff --git a/__tests__/unit/node/markdown/plugins/snippet.test.ts b/__tests__/unit/node/markdown/plugins/snippet.test.ts
new file mode 100644
index 000000000000..93adf4b5d4b5
--- /dev/null
+++ b/__tests__/unit/node/markdown/plugins/snippet.test.ts
@@ -0,0 +1,43 @@
+import { dedent } from 'node/markdown/plugins/snippet'... | 1 | 1 | 1 | [{"id": "G0", "claim": "The dedent line scan in snippet.ts does not treat tab characters as indentation, so a line indented with tabs stops the minimum-indent computation and tab-indented code blocks are not dedented.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vitepress__25 | vuejs/vitepress | 25 | defect | 7519f1f6e356a5521404116aba57009d123d6572 | 2a53752ec2dcac286b4490120363d5ef12d3ee99 | Initialize tests | This PR initializes and adds the first tests for the `container` plugin. There's no CI configured yet as I'm not sure which one you're planning to use, but the tests should be green.
Let me know if there's anything I should change. Also, if tests are not among the high priorities in the current phase, feel free to ... | diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000000..2903dffb37cd
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,9 @@
+[*]
+charset = utf-8
+insert_final_newline = true
+indent_size = 2
+indent_style = space
+trim_trailing_whitespace = true
+
+[*.md]
+trim_trailing_whitespace = false
diff -... | 5 | 5 | 1 | [{"id": "G0", "claim": "The newly added jest-related devDependencies sit on the previous major — ts-jest ^25.5.1 and @types/jest ^25.2.2 alongside jest ^26.0.1 — and should be bumped to their 26.x versions.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
vuejs__vitepress__2502 | vuejs/vitepress | 2,502 | defect | 0c4210bb5ed114fb8597786230cb145790578071 | 66454de0e436b96c47513d641c71f480fb447ab5 | feat: support selecting line range when importing md file | closes https://github.com/vuejs/vitepress/issues/2086 | diff --git a/docs/guide/markdown.md b/docs/guide/markdown.md
index bd213f3029d9..e20e864f3964 100644
--- a/docs/guide/markdown.md
+++ b/docs/guide/markdown.md
@@ -738,6 +738,42 @@ Some getting started stuff.
Can be created using `.foorc.json`.
```
+It also supports selecting a line range:
+
+**Input**
+
+```md
+# D... | 1 | 1 | 1 | [{"id": "G0", "claim": "The start/end line values parsed from the range will be NaN rather than falsy when the user omits them, so the `if (!startLine)` / `if (!endLine)` defaults in processIncludes may not work as intended.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vitepress__3237 | vuejs/vitepress | 3,237 | defect | 60fc8fd24460eede1dc73768ad0aa53616da746f | dedd9cfdd9b3a507144f04a29e249392f154dfcb | feat: migrate to shikiji | Benefits:
- Smaller client payload size, as the code is no longer duplicated in HTML (https://github.com/antfu/shikiji#lightdark-dual-themes)
- Shikiji is [hast](https://github.com/syntax-tree/hast) based, which makes it much easier to transform and customize. A lot of things can be done more robustly without RegEx... | diff --git a/__tests__/e2e/markdown-extensions/markdown-extensions.test.ts b/__tests__/e2e/markdown-extensions/markdown-extensions.test.ts
index aa1f6ff2a195..42a8989140ab 100644
--- a/__tests__/e2e/markdown-extensions/markdown-extensions.test.ts
+++ b/__tests__/e2e/markdown-extensions/markdown-extensions.test.ts
@@ -1... | 7 | 3 | 3 | [{"id": "G0", "claim": "The postprocess in docs/.vitepress/config.ts replaces the escaped demo notation with the identical string `[!!code`, so it never reverts it back to `[!code`, and it should replace it with `'[!code'` as the reviewer suggests.", "category": "correctness", "verdict": "supported", "priority": "P1", ... | null |
vuejs__vitepress__4507 | vuejs/vitepress | 4,507 | defect | 74a0222f9a3d66f5942ed84a5cae4f0265a5160f | 231fbb02d86a325607a40e60c72ac4b8ccbdf4a6 | feat: use `markdown-it-async`, remove `synckit` | ### Description
Changed `markdown-it` to [`markdown-it-async`](https://github.com/antfu/markdown-it-async), to eliminate the sync limitation. This makes Shiki able to load languages on-demand without `synckit`, which would block the thread. In the long run, make `markdown-it` work with async would also unlocks more ... | diff --git a/__tests__/e2e/.vitepress/config.ts b/__tests__/e2e/.vitepress/config.ts
index 65f845ab364d..43dbfa84ef70 100644
--- a/__tests__/e2e/.vitepress/config.ts
+++ b/__tests__/e2e/.vitepress/config.ts
@@ -165,8 +165,8 @@ export default defineConfig({
search: {
provider: 'local',
options: {
- ... | 4 | 1 | 1 | [{"id": "G0", "claim": "When building the client types, markdown-it is resolved to cjs and doesn't export the types (only the default export); adding tsconfig: 'tsconfig.json' to the client types dts plugin should fix the build, though 3 warnings then appear.", "category": "correctness", "verdict": "supported", "priori... | null |
vuejs__vitepress__5140 | vuejs/vitepress | 5,140 | defect | d019acd3ca0a9f1588f085bd1ebb5421e4566508 | e915f28497a869b0e40a412171621c45c5c836e0 | feat: support text-fragments | ### Description
Fix markdown link hash normalization to preserve [text fragments](https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment/Text_fragments) (`#:~:...`) instead of slugifying them.
Before this change, links like `/resources/server/user#:~:text=...` were transformed into heading-style anch... | diff --git a/__tests__/unit/node/markdown/plugins/link.test.ts b/__tests__/unit/node/markdown/plugins/link.test.ts
new file mode 100644
index 000000000000..452699d35f13
--- /dev/null
+++ b/__tests__/unit/node/markdown/plugins/link.test.ts
@@ -0,0 +1,34 @@
+import { MarkdownItAsync } from 'markdown-it-async'
+import { l... | 4 | 3 | 3 | [{"id": "G0", "claim": "The new test's assertion is too specific about whether spaces appear as literal spaces or %20, and should instead assert that the #:~:text= fragment is kept and not slugified without depending on the exact encoding.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "int... | null |
vuejs__vitepress__5158 | vuejs/vitepress | 5,158 | defect | 4fc1db83d7c7af53a2dd6f6ec9686fce2ba7df7c | cf6b280ede7d201ea698b2b6bf7f6d02c2caabe6 | fix: keep translation links in the current tab | ## Summary
- let translation links opt out of external-link handling in `VPLink`
- use that override for navbar and mobile translation menus so localized docs links stay in the current tab
- add unit coverage for the new external-link override logic | diff --git a/__tests__/unit/client/theme-default/support/utils.test.ts b/__tests__/unit/client/theme-default/support/utils.test.ts
index 880d4232c274..aefc9b8e5691 100644
--- a/__tests__/unit/client/theme-default/support/utils.test.ts
+++ b/__tests__/unit/client/theme-default/support/utils.test.ts
@@ -1,4 +1,7 @@
-impo... | 1 | 1 | 1 | [{"id": "G0", "claim": "VPNavBarExtra.vue also renders the translations flyout but still uses the default external-link handling, so translation links may continue to open in a new tab at the 768-1279px breakpoints; apply the same `external=false` override to the translation links in VPNavBarExtra.vue as well to fully ... | null |
vuejs__vue-cli__2787 | vuejs/vue-cli | 2,787 | defect | 6708063addc0f9c88128f8296490bd805ffbff55 | 9f564da61820719af82837b69335288304a58db7 | Don't reread the input file on ts linting | This fixes #2786. | diff --git a/packages/@vue/cli-plugin-typescript/lib/tslint.js b/packages/@vue/cli-plugin-typescript/lib/tslint.js
index d14d0d8d9b..fb5af94658 100644
--- a/packages/@vue/cli-plugin-typescript/lib/tslint.js
+++ b/packages/@vue/cli-plugin-typescript/lib/tslint.js
@@ -29,6 +29,7 @@ module.exports = function lint (args = ... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test case should be added for the bug this PR fixes, in case it is run into again.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vue-cli__3130 | vuejs/vue-cli | 3,130 | defect | 2ab93e797008aee9e36dfb8cc2015c8a9354dd6c | be1612ad23e9f583e9ba4a7185c188311e0e1c85 | fix(cli-service): Fix copy plugin's ignore pattern (fix #3119) | don't skip files named `index.html` `/public` when nested in a subfolder. We only need to ignore the index.html directly under `/public/index.html`, which is used by html-webpack-plugin as a template.
close #3119 | diff --git a/packages/@vue/cli-service/__tests__/build.spec.js b/packages/@vue/cli-service/__tests__/build.spec.js
index 2a68ddeb0d..f87ca362f3 100644
--- a/packages/@vue/cli-service/__tests__/build.spec.js
+++ b/packages/@vue/cli-service/__tests__/build.spec.js
@@ -13,6 +13,8 @@ test('build', async () => {
// tes... | 1 | 1 | 0 | [{"id": "G0", "claim": "The redundant '/index.html' pattern could simply be deleted from publicCopyIgnore, since it doesn't match any files and html-webpack-plugin's output overwrites copy-webpack-plugin's anyway.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vuejs__vue-cli__388 | vuejs/vue-cli | 388 | defect | 8772aa519ba810c91dc49c4426feb0400ec6c885 | 4d6bab2e8c24dea35cc0b2f6766963a00a87dcb3 | Escape double quotes in string prompts | This fixes #382.
It checks if the answer type is `string`, and if it is, `replace`s `"` with `\"`, so it can be parsed as valid JSON. | diff --git a/lib/ask.js b/lib/ask.js
index f2c3c9ef60..88650b8aac 100644
--- a/lib/ask.js
+++ b/lib/ask.js
@@ -57,6 +57,8 @@ function prompt (data, key, prompt, done) {
answers[key].forEach(function (multiChoiceAnswer) {
data[key][multiChoiceAnswer] = true
})
+ } else if (typeof answers[key] =... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a test case for the double-quote escaping, reusing one of the existing tests and verifying the generated package.json is correct by parsing it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Simplify the test by asserting exp... | null |
vuejs__vue-cli__4261 | vuejs/vue-cli | 4,261 | defect | 348e36eedbf77337e372cb7c226509114a1d6f5b | 08a8ed83d90a52ca25407258b9ad255908b71dd2 | Add `--inline-vue` flag for `build` command to avoid externalization of Vue in lib & wc mode | This PR resolves an issue when build is targeting Lib, but for whatever reason Vue instance should be preserved in final bundle.
I followed @seteam1 original suggestion. And also added test case and updated docs. With recommendations by @sodatea.
Option is only used for `--target lib`, but might be useful for `--... | diff --git a/docs/guide/build-targets.md b/docs/guide/build-targets.md
index 04d61a9483..b707381d2a 100644
--- a/docs/guide/build-targets.md
+++ b/docs/guide/build-targets.md
@@ -15,6 +15,12 @@ App is the default build target. In this mode:
::: tip Note on Vue Dependency
In lib mode, Vue is *externalized*. This mea... | 2 | 2 | 0 | [{"id": "G0", "claim": "The conditional spread that optionally externalizes Vue in resolveWcConfig.js can be written more concisely as `{ ...(inlineVue || { vue: 'Vue' }) }`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The conditional spread ... | null |
vuejs__vue-cli__4532 | vuejs/vue-cli | 4,532 | defect | 9c5097102170c6da4c9fbe4b51a23f5e179d360a | abc98bcc87a166dc0e1a1f00c5ebc7853314baf0 | Enforces require.resolve for loaders | **What kind of change does this PR introduce?** (check at least one)
- [x] Bugfix
**Does this PR introduce a breaking change?** (check one)
- [x] No
**Other information:**
This PR enforces `require.resolve` when adding new loaders to the Webpack configuration. Doing this is strongly advised, as otherwise... | diff --git a/packages/@vue/babel-preset-app/package.json b/packages/@vue/babel-preset-app/package.json
index 186d61604a..96758591ae 100644
--- a/packages/@vue/babel-preset-app/package.json
+++ b/packages/@vue/babel-preset-app/package.json
@@ -36,5 +36,8 @@
"babel-plugin-module-resolver": "^3.2.0",
"core-js": ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The @babel/core entry that the PR adds under peerDependencies in @vue/babel-preset-app should be a dev dependency instead of a peer dependency.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Until the npm registry issue is reso... | null |
vuejs__vue-cli__5189 | vuejs/vue-cli | 5,189 | defect | 130bcfb730a86ceb6cef8219c665c34c3ff7f207 | bfbd16270e13dc2574ae92e2c040fff62b7f55f7 | chore: Minor typographical fix | <!-- Please don't delete this template -->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [ ] Underlying tools
- [x] Other, ... | diff --git a/packages/@vue/cli/lib/promptModules/e2e.js b/packages/@vue/cli/lib/promptModules/e2e.js
index 09bc05bece..cf1df2ee5a 100644
--- a/packages/@vue/cli/lib/promptModules/e2e.js
+++ b/packages/@vue/cli/lib/promptModules/e2e.js
@@ -14,7 +14,7 @@ module.exports = cli => {
name: 'e2e',
when: answers => a... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request's tests are failing because the test expectations in e2e.spec.js still assert the old message string 'Pick a E2E testing solution', and M002 notes one test expectation (the cypress one) was still left unupdated at S2.", "category": "testing", "verdict": "supported", "priority": ... | null |
vuejs__vue-cli__5293 | vuejs/vue-cli | 5,293 | defect | c8e64507ba8ef2d6e8620346a83253377cecd3ba | a7fe5833bd4edb01d022e56c32c292e04c8daf8a | support vue.config.cjs | if `"type": "module"` was set in package.json, the vue service will emit error.
```
ERROR Error loading vue.config.js:
ERROR Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: .../vue.config.js
require() of ES modules is not supported.
.../vue.config.js from .../node_modules/@vue/cli-service/lib/Servi... | diff --git a/packages/@vue/cli-service/__tests__/Service.spec.js b/packages/@vue/cli-service/__tests__/Service.spec.js
index 7212c0d014..166c6b0a02 100644
--- a/packages/@vue/cli-service/__tests__/Service.spec.js
+++ b/packages/@vue/cli-service/__tests__/Service.spec.js
@@ -1,5 +1,6 @@
jest.mock('fs')
jest.mock('/vue... | 2 | 1 | 1 | [{"id": "G0", "claim": "Sync with the dev branch, where the config loading and testing logic was refactored in #5305, and fix the Windows testing following that PR.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A different solution that loads the confi... | null |
vuejs__vue-cli__6006 | vuejs/vue-cli | 6,006 | defect | 203911728f9aedd2c97bb345760088b00f0c7cc5 | 0b220a159bf0589a647ccd86395eb0df7d3176dc | fix(unit-jest, unit-mocha): ensure EOL in existing tsconfig.json | <!-- Please don't delete this template -->
Fixes #5948
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [x] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [ ] Underlying tools... | diff --git a/packages/@vue/cli-plugin-unit-jest/__tests__/jestGenerator.spec.js b/packages/@vue/cli-plugin-unit-jest/__tests__/jestGenerator.spec.js
index 0166aae893..adcadc4dc0 100644
--- a/packages/@vue/cli-plugin-unit-jest/__tests__/jestGenerator.spec.js
+++ b/packages/@vue/cli-plugin-unit-jest/__tests__/jestGenerat... | 1 | 1 | 0 | [{"id": "G0", "claim": "The e2e-webdriverio generator writes tsconfig.json without a trailing EOL too, and it should be made consistent with the PR's fix for unit-jest/unit-mocha.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
vuejs__vue-cli__6059 | vuejs/vue-cli | 6,059 | defect | 05c010e83aa5e62f45286640419fb5b5c4cdd37b | 558f5f60593b02e11c6d1d01d5c4b3415ceacb97 | feat(eslint): support eslint7 and @babel/eslint-parser | <!-- Please don't delete this template -->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [ ] Bugfix
- [x] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [ ] Underlying tools
- [ ] Other, ... | diff --git a/package.json b/package.json
index a0727c8652..b6fc21ad07 100644
--- a/package.json
+++ b/package.json
@@ -45,6 +45,7 @@
},
"devDependencies": {
"@babel/core": "^7.11.6",
+ "@babel/eslint-parser": "^7.12.1",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": ... | 2 | 2 | 2 | [{"id": "G0", "claim": "It seems @vue/cli-plugin-eslint/lint.js breaks in the test suite (it can run correctly by executing `vue invoke eslint` manually), apparently related to how @babel/core loadConfig resolves configuration.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"... | null |
vuejs__vue-cli__6520 | vuejs/vue-cli | 6,520 | defect | aaa7eb05874ee8edd3d97b95c44779b8055a3c3d | 90a0517339227d9ce67bf999ff450fd00d591c0c | feat: Upgraded Nightwatch to 2.0, updated distribued config | <!-- Please don't delete this template -->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [ ] Bugfix
- [x] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [ ] Underlying tools
- [ ] Other, ... | diff --git a/packages/@vue/cli-plugin-e2e-nightwatch/__tests__/nightwatchPlugin.spec.js b/packages/@vue/cli-plugin-e2e-nightwatch/__tests__/nightwatchPlugin.spec.js
index a27daf6ac4..a7716f7627 100644
--- a/packages/@vue/cli-plugin-e2e-nightwatch/__tests__/nightwatchPlugin.spec.js
+++ b/packages/@vue/cli-plugin-e2e-nig... | 2 | 1 | 1 | [{"id": "G0", "claim": "The cucumber-js example block in nightwatch.conf.js should be removed because that example is not available in nightwatch 1.7.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The nightwatch version in package.json is not updated... | null |
vuejs__vue-cli__6714 | vuejs/vue-cli | 6,714 | defect | 3f0b782bca7df17740b72509c42e5e2ea6562ac9 | eed5633655ea1a67ca3dc411e33fc40ea9ecafa9 | feat(cli-plugin-eslint): use ESLint class instead of CLIEngine | <!-- Please don't delete this template -->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
This PR replaces CLIEngine with the ESLint class.
CLIEngine will be removed in eslint v8 and must be replaced with the ESLint class to support eslint v8.
**What kind of change does this P... | diff --git a/packages/@vue/cli-plugin-eslint/__tests__/eslintPlugin.spec.js b/packages/@vue/cli-plugin-eslint/__tests__/eslintPlugin.spec.js
index 6245a034c0..ead8df83da 100644
--- a/packages/@vue/cli-plugin-eslint/__tests__/eslintPlugin.spec.js
+++ b/packages/@vue/cli-plugin-eslint/__tests__/eslintPlugin.spec.js
@@ -2... | 2 | 1 | 1 | [{"id": "G0", "claim": "With env/global mapped to ['overrideConfig', 'env'/'globals'], `--env browser --global window` is normalized to top-level `env` and `globals` keys alongside an empty `overrideConfig: {}`, instead of being put under `overrideConfig`.", "category": "correctness", "verdict": "supported", "priority"... | null |
vuejs__vue-router__1387 | vuejs/vue-router | 1,387 | defect | c021235212dc12ca33380e7bdd9500eb052881f7 | dbce097985fad074265c0266f19b3bbebb379528 | Prevent unnecessary Exception with non-existent links | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
Closes #1386 | diff --git a/src/create-matcher.js b/src/create-matcher.js
index 0fca72199..b00a8c321 100644
--- a/src/create-matcher.js
+++ b/src/create-matcher.js
@@ -33,8 +33,9 @@ export function createMatcher (
if (name) {
const record = nameMap[name]
- if (process.env.NODE_ENV !== 'production') {
- warn(... | 1 | 1 | 1 | [{"id": "G0", "claim": "Behavior should be consistent between production and development, so the NODE_ENV check should be moved to apply only to the warning rather than gating the whole nonexistent-record branch.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vue-router__2591 | vuejs/vue-router | 2,591 | defect | 2191ee136b455d29a17733728697af7ea2c08efb | b1c178c0c4cad319dfdb905b67a478f6803f221a | Warn about root paths without a leading slash (fix #2550) | close #2550
<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
This PR creates the following warning message when a root route exists without a leading slash:
<img width="583" alt="screen shot 2019-01-22 at 3 12 ... | diff --git a/src/create-matcher.js b/src/create-matcher.js
index 07987c431..3381afaf2 100644
--- a/src/create-matcher.js
+++ b/src/create-matcher.js
@@ -18,6 +18,11 @@ export function createMatcher (
router: VueRouter
): Matcher {
const { pathList, pathMap, nameMap } = createRouteMap(routes)
+ const pathsMissin... | 3 | 3 | 2 | [{"id": "G0", "claim": "The pull request requires a test case showing the warning versus not showing it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The warning should only be executed in development mode.", "category": "correctness", "verdict": "sup... | null |
vuejs__vue-router__2738 | vuejs/vue-router | 2,738 | defect | e1378fc3a890a43bfc8d9744b0168b6696cc8f80 | 736c2ce0bd6ad651b6d22d04cadb6dc01de6a527 | fix: make callback of next in beforeRouterEnter more consistent | Improve #2728. Make callback of `next` to be called as same order as `beforeRouterEnter`.
<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
| diff --git a/src/history/base.js b/src/history/base.js
index 5b6f199c6..fbdf25696 100644
--- a/src/history/base.js
+++ b/src/history/base.js
@@ -297,7 +297,6 @@ function bindEnterGuard (
): NavigationGuard {
return function routeEnterGuard (to, from, next) {
return guard(to, from, cb => {
- next(cb)
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request changes the beforeRouteEnter next-callback behaviour without any test; the reviewer asks for an e2e test covering it, suggesting checking that a string grows to a specific value to verify the order.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "int... | null |
vuejs__vue-router__2862 | vuejs/vue-router | 2,862 | defect | 44c63a963f05ede229d8658a45b2388e244ce00b | 358758d7d77a09e0ab6d99b2743cedb6ccb87978 | feat: return a promise with push and replace | Closing(#1769)
Changing behaviour of `push` `replace` to return promise when no callback is provided.
| diff --git a/src/index.js b/src/index.js
index b3eb25dd3..e0c30c387 100644
--- a/src/index.js
+++ b/src/index.js
@@ -151,11 +151,25 @@ export default class VueRouter {
}
push (location: RawLocation, onComplete?: Function, onAbort?: Function) {
- this.history.push(location, onComplete, onAbort)
+ // $flow-... | 4 | 4 | 2 | [{"id": "G0", "claim": "The push/replace typings should keep two overloaded signatures (one returning void when callbacks are passed, one returning Promise<Route>) instead of a single Promise<Route> | void return union.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
vuejs__vue-router__3073 | vuejs/vue-router | 3,073 | defect | 479510b2bf6342cf083299da28334c6925ae465a | f9167b0fea7dd6d39d21280ceeb3b516694d6805 | feat(core): add aria-current to active links (close #2116) | Hi! First contributor + pretty new to Vue 👋 😄
This PR adds `aria-current="page"` to active links, and resolves #2116. I made the following two choices:
1. Use `aria-current="page"` over other token values
The original issue mentions allowing custom token values, or future `<router-link>` extension possibiliti... | diff --git a/src/components/link.js b/src/components/link.js
index 817bf8e04..b7e6d4d9c 100644
--- a/src/components/link.js
+++ b/src/components/link.js
@@ -67,6 +67,8 @@ export default {
? classes[exactActiveClass]
: isIncludedRoute(current, compareTarget)
+ const ariaCurrentValue = classes[exactAct... | 3 | 3 | 3 | [{"id": "G0", "claim": "The aria-current default should apply to exact-active links rather than active links, since the spec recommends a single element marked aria-current=\"page\".", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Replace the in-loop nega... | null |
vuejs__vue-router__3111 | vuejs/vue-router | 3,111 | defect | 256cf3edfc126411febe4573d427949d273a38b8 | 50dabbfc90ff1d7e39f1a3b35f82e65a0995a798 | fix: correctly calculate `path` when `pathMatch` is empty string (fix #3106) | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
--> | diff --git a/src/util/params.js b/src/util/params.js
index e54866ed7..fcd9b1cda 100644
--- a/src/util/params.js
+++ b/src/util/params.js
@@ -20,7 +20,8 @@ export function fillParams (
(regexpCompileCache[path] = Regexp.compile(path))
// Fix #2505 resolving asterisk routes { name: 'not-found', params: { pa... | 3 | 3 | 0 | [{"id": "G0", "claim": "Use a typeof check instead of the truthiness-plus-empty-string test when deciding whether params.pathMatch overrides params[0].", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the new test to the shorter 'allows an ... | null |
vuejs__vue-router__3199 | vuejs/vue-router | 3,199 | defect | ca68c6b71cafc2056f666b19f55f79303c0bb5fa | 3240a62c672b0d83bd2ce6414ac97887f04759ab | fix(scroll): run scrollBehavior on initial load (fix #3196) | fix #3196 by adding handleScroll to the callback of the first call to history.transitionTo | diff --git a/src/index.js b/src/index.js
index d0fb34b7b..1157520e2 100644
--- a/src/index.js
+++ b/src/index.js
@@ -8,6 +8,7 @@ import { cleanPath } from './util/path'
import { createMatcher } from './create-matcher'
import { normalizeLocation } from './util/location'
import { supportsPushState } from './util/push-... | 2 | 2 | 1 | [{"id": "G0", "claim": "The redundant onLoad e2e tests beyond the first one should be removed because they all end up calling the same scroll handler.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The initial location should be obtained outside of hand... | null |
vuejs__vue-router__3220 | vuejs/vue-router | 3,220 | defect | 1f3aea660804bd9dfba3020e2d112d9bd510e518 | f979a856e49e14656e4c83729f20600ba1588920 | docs: add navigation failures | Based on https://github.com/vuejs/rfcs/pull/150
<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
| diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js
index 636f2a240..365261eb6 100644
--- a/docs/.vuepress/config.js
+++ b/docs/.vuepress/config.js
@@ -26,23 +26,39 @@ module.exports = {
description: 'Vue.js 공식 라우터'
},
'/fr/': {
- lang: 'fr',
- title: 'Vue Router',
- d... | 17 | 16 | 2 | [{"id": "G0", "claim": "The phrase \"a regular `router-link`\" is confusing (there is no special router-link); it should read \"a `router-link` component\" instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Promise explanation contains a ... | null |
vuejs__vue-router__3232 | vuejs/vue-router | 3,232 | defect | bee5d73a065a27bfa5de8492cd828d4cc00b7f34 | a764b090136f1c9994b9c6f8b34b577af6460ef2 | fix(query): Fix query props should be casted into string (fix #2131) | Greetings,
This PR is for fixing [#2131]('https://github.com/vuejs/vue-router/issues/2131')
### What I've added?
query props now is casted into String, applying stringify on programmatic navigation (next, this.$router.push etc.)
Closes #2131
Thanks | diff --git a/src/util/query.js b/src/util/query.js
index b9abc211f..029fbd772 100644
--- a/src/util/query.js
+++ b/src/util/query.js
@@ -29,7 +29,7 @@ export function resolveQuery (
parsedQuery = {}
}
for (const key in extraQuery) {
- parsedQuery[key] = extraQuery[key]
+ parsedQuery[key] = extraQuery[k... | 4 | 4 | 2 | [{"id": "G0", "claim": "The new test should assert the cast value is the string '1' instead of only checking its type with expect(typeof query.baz).toBe('string').", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test that array values in extraQuery... | null |
vuejs__vue-router__3251 | vuejs/vue-router | 3,251 | defect | f0d9c2d93cf06b5b2202bd77df6281cf47970b20 | e07d4b9239ed79248c269c38d77dcb416f52e0b4 | feat(errors): capture errors thrown in redirect callback in onError | Resolves #3201
This PR allows exceptions to be caught in router.onError. | diff --git a/src/history/base.js b/src/history/base.js
index 4bfa0722b..5e54f739c 100644
--- a/src/history/base.js
+++ b/src/history/base.js
@@ -77,46 +77,55 @@ export class History {
onComplete?: Function,
onAbort?: Function
) {
- const route = this.router.match(location, this.current)
- this.confir... | 1 | 1 | 1 | [{"id": "G0", "claim": "Wrapping the whole navigation (match plus confirmTransition) in try/catch is too much; try-catching only this.router.match should be enough.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vue-router__3298 | vuejs/vue-router | 3,298 | defect | fda70673397a18f45c9423ee9f4a775ca6096c44 | c779bbc9dffa7d30c76715a145f639f7390540a9 | feat(history): Reset history.current when all apps are destroyed | This resolves #3294
<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
| diff --git a/examples/index.html b/examples/index.html
index f9fbf1b9a..5f2cd4f32 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -29,6 +29,7 @@ <h1>Vue Router Examples</h1>
<li><a href="nested-router">Nested Routers</a></li>
<li><a href="keepalive-view">Keepalive View</a></li>
<li><a href=... | 2 | 1 | 1 | [{"id": "G0", "claim": "Since the pull request renames `teardownListeners` to `teardown`, it might make sense to rename the `setupListeners` method too for naming symmetry.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `teardown` should... | null |
vuejs__vue-router__3592 | vuejs/vue-router | 3,592 | defect | 73459565c4c64bfe9b41341875a84c87bc8b931c | 860b007b108da67d5af4d0ddc8d0606ca87b937f | fix(scrollBehavior): trigger scroll behavior if same route with hash | close #1668
This will make clicks on already active anchor links work. | diff --git a/src/history/base.js b/src/history/base.js
index 5f2bad870..6035cae70 100644
--- a/src/history/base.js
+++ b/src/history/base.js
@@ -20,6 +20,7 @@ import {
isNavigationFailure,
NavigationFailureType
} from '../util/errors'
+import { handleScroll } from '../util/scroll'
export class History {
ro... | 2 | 2 | 2 | [{"id": "G0", "claim": "Make sure `handleScroll` is only called if there is a hash when the navigation is to the same route.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add an e2e test covering the scroll behavior when navigating to the same rout... | null |
vuejs__vue-router__641 | vuejs/vue-router | 641 | defect | 3c7f007280cdf4a1330159dc6c9c6c855d03f765 | a8ef35b8948321dd9de63eec60ff13202e8af7e9 | Fix #629 - add warning when named route has a default child route. | ### What does this PR do?
This change will log a warning to the console when the developer has defined a named route that also has a default child route. The warning reads like this:
> [vue-router] Named Route 'bar' has a default child route.
> When navigating to this named route (:to="{name: 'bar'}"), the default ... | diff --git a/npm-debug.log b/npm-debug.log
new file mode 100644
index 000000000..b5e7d9821
--- /dev/null
+++ b/npm-debug.log
@@ -0,0 +1,48 @@
+0 info it worked if it ends with ok
+1 verbose cli [ '/usr/local/bin/node',
+1 verbose cli '/usr/local/bin/npm',
+1 verbose cli 'run',
+1 verbose cli 'test:unit' ]
+2 info... | 6 | 4 | 3 | [{"id": "G0", "claim": "The warning fires in production builds too, so the PR should check the environment (as Vue does) and not show the warning on production.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The npm-debug.log file was accidentally c... | null |
vuejs__vue-router__910 | vuejs/vue-router | 910 | defect | d0c21b197331ce87ec0b13b61d7728b0ef633c65 | ab0a779ba6f09f5b28138c9445ce84d7263daef6 | Remove extras from old params in named routes | Fixes #906 | diff --git a/src/create-matcher.js b/src/create-matcher.js
index 1850c5284..789ff4443 100644
--- a/src/create-matcher.js
+++ b/src/create-matcher.js
@@ -14,6 +14,10 @@ const regexpCache: {
}
} = Object.create(null)
+const regexpParamsCache: {
+ [key: string]: Array<string>
+} = Object.create(null)
+
const regex... | 4 | 4 | 1 | [{"id": "G0", "claim": "getParams should not call Regexp(path) again without using the cache; the existing cached keys/regexp code should be extracted into a separate helper taking a path and returning a {keys, regexp} object, with keys obtained via ES6 destructuring.", "category": "maintainability", "verdict": "suppor... | null |
vuejs__vue-router__917 | vuejs/vue-router | 917 | defect | 339dc8e93fca96b7d5a9ab009b815434fc05f72f | c3ec53191647d5a4dfb7481ea3c4d088f2c6c6d7 | Don't use old optional params in routes | Fixes #906
Related #910 | diff --git a/examples/nested-routes/app.js b/examples/nested-routes/app.js
index 9f35e3064..926068627 100644
--- a/examples/nested-routes/app.js
+++ b/examples/nested-routes/app.js
@@ -37,6 +37,7 @@ const Quy = {
`
}
const Quux = { template: '<div>quux</div>' }
+const Zap = { template: '<div><h3>zap</h3><pre>{{ $r... | 1 | 1 | 0 | [{"id": "G0", "claim": "The getParams helper's name is ambiguous and should be renamed to getRequiredParams, or the function removed and its expression inlined at the named-route call site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vuejs__vue-test-utils__1188 | vuejs/vue-test-utils | 1,188 | defect | b5b511ef2eedcce083cb5ef628fe6b8795c0a17a | 5dfed2756598b680ea6c21fbea4b56450fee003e | feat(wrapper): allow destroy() method to work with functional components | Currently when calling `wrapper.destroy()`, only non-functional components are removed from the DOM.
This PR allows functional components to be removed from the DOM as well.
xref #1185 https://github.com/vuejs/vue-test-utils/issues/1185#issuecomment-473569291
| diff --git a/docs/api/options.md b/docs/api/options.md
index 39ac9178d..9ab5206dd 100644
--- a/docs/api/options.md
+++ b/docs/api/options.md
@@ -206,6 +206,9 @@ expect(wrapper.vm.$route).toBeInstanceOf(Object)
Component will be attached to DOM when rendered if set to `true`.
+When attaching to the DOM, you should ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The added line in docs/api/options.md misspells \"instance\" as \"insatance\" and should read \"destroy the component instance.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added line in docs/api/wrapper/destroy.md... | null |
vuejs__vue-test-utils__1248 | vuejs/vue-test-utils | 1,248 | defect | 99336c44c9379a03e1e466279b564526f82f744a | a33039ba0124918fe42deb2546fa5c62f0000d1b | feat: Store selector in Wrapper.find() / .findAll() | Stores the selector that is passed to `Wrapper.find()` / `Wrapper.findAll()` as a property in the newly created `Wrapper` / `WrapperArray` instance.
closes https://github.com/vuejs/vue-test-utils/issues/1135 | diff --git a/flow/wrapper.flow.js b/flow/wrapper.flow.js
index 176a9c05c..d0d492ff6 100644
--- a/flow/wrapper.flow.js
+++ b/flow/wrapper.flow.js
@@ -28,6 +28,7 @@ declare interface BaseWrapper {
name(): string | void;
props(key?: string): { [name: string]: any } | any | void;
text(): string | void;
+ selector... | 6 | 5 | 4 | [{"id": "G0", "claim": "Error messages could use the component name instead of the generic 'Component' fallback in at least some cases, which the author wants to keep as a follow-up.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Building the selector ... | null |
vuejs__vue-test-utils__129 | vuejs/vue-test-utils | 129 | defect | d3846a8d7db0e54e8cc5bbbb24a7207ae906852b | 096fb34a0c6853e3ff45f1f911065768de8009f6 | Feat destroy wrapper method | This PR adds
- `.destroy()` to `Wrapper`.
Heavily inspired from avoriaz :)
| diff --git a/flow/wrapper.flow.js b/flow/wrapper.flow.js
index 9cf25f48e..9cbf94fec 100644
--- a/flow/wrapper.flow.js
+++ b/flow/wrapper.flow.js
@@ -28,7 +28,8 @@ declare interface BaseWrapper { // eslint-disable-line no-undef
setMethods(methods: Object): void,
setProps(data: Object): void,
trigger(type:... | 5 | 5 | 5 | [{"id": "G0", "claim": "The new destroy() method needs a page in the API documentation.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "destroy() on WrapperArray needs a test in wrapper-array.spec.js.", "category": "testing", "verdict": "supported"... | null |
vuejs__vue-test-utils__1473 | vuejs/vue-test-utils | 1,473 | defect | ee3a93f55ca511740367059f5002805acc339fae | 34aadf238426f751c102509123b933a2058ff78b | fix #1377 string stubs dropping props | **What kind of change does this PR introduce?** (check at least one)
- [X] Bugfix
- [ ] Feature
- [ ] Code style update
- [X] Refactor
- [ ] Build-related changes
- [ ] Other, please describe:
**Does this PR introduce a breaking change?** (check one)
- [ ] Yes
- [X] No
If yes, please describe the impa... | diff --git a/docs/api/mount.md b/docs/api/mount.md
index 6744186e5..c057160c4 100644
--- a/docs/api/mount.md
+++ b/docs/api/mount.md
@@ -116,7 +116,7 @@ describe('Foo', () => {
it('renders a div', () => {
const wrapper = mount(Foo, {
stubs: {
- Bar: '<div class="stubbed" />',
+ Bar: '<div c... | 3 | 2 | 0 | [{"id": "G0", "claim": "Since the string-stub syntax is deprecated, its example in the mount docs should be removed from the documentation rather than annotated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The stubs documentation should present... | null |
vuejs__vue-test-utils__1476 | vuejs/vue-test-utils | 1,476 | defect | e2a6986de597558d231e8602e3e99f46d942869e | d9e2027d47446591f3b13cf84cd94f6ca7d0abe9 | feat: support object class binding in stubbed functional components | fixes https://github.com/vuejs/vue-test-utils/issues/1474 | diff --git a/packages/create-instance/create-component-stubs.js b/packages/create-instance/create-component-stubs.js
index b82addd99..d6b1cecd9 100644
--- a/packages/create-instance/create-component-stubs.js
+++ b/packages/create-instance/create-component-stubs.js
@@ -60,10 +60,25 @@ function getCoreProperties(componen... | 3 | 2 | 1 | [{"id": "G0", "claim": "The variable name \"evalutedDynamicClass\" is misspelled and should be \"evaluatedDynamicClass\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reduce should check for a truthy value instead of strictly `=== true`, s... | null |
vuejs__vue-test-utils__154 | vuejs/vue-test-utils | 154 | defect | 4fae8da3931e94a8a3df1fd59bebd06037231a21 | 54af49b5676086807a0ec7df9ce60160d92250fe | Propogate thrown errors by configuring error handler and attaching in… | … mount function resolves #147
### High level overview
Creates an errorHandler function which we assign to Vue's config.errorHandler. This errorHandler will be called with the error, the vm and additional info from vue. The error handler handles
- thrown Error objects `throw(new Error('error'))`
- thrown s... | diff --git a/src/lib/error-handler.js b/src/lib/error-handler.js
new file mode 100644
index 000000000..19b44172a
--- /dev/null
+++ b/src/lib/error-handler.js
@@ -0,0 +1,28 @@
+function errorMessage(msg, info) {
+ if (info) {
+ return `${msg} : additional info ${info}`
+ }
+
+ return msg;
+}
+
+function setVueErro... | 5 | 4 | 1 | [{"id": "G0", "claim": "Remove the nested describe blocks from test/unit/specs/lib/error-handler.spec.js, since describe blocks are not nested anywhere else.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Export errorHandler as a default export ... | null |
vuejs__vue-test-utils__1554 | vuejs/vue-test-utils | 1,554 | defect | e5b0f00b87c525ce022158ee26fae5d9a0c0314a | 44c3dddeecf972ba5c97ad00fa19a2ab3c4f6f1e | allow array for multiselect .setValue() method | enables Wrapper.setValue() method to accept array value for select elements (requires select to have an attribute 'multiple' or 'multiple="true"')
fix #1505
**What kind of change does this PR introduce?** (check at least one)
- [ ] Bugfix
- [X] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Build-rel... | diff --git a/docs/api/wrapper/setValue.md b/docs/api/wrapper/setValue.md
index 3822d0bf0..f74e0c3dd 100644
--- a/docs/api/wrapper/setValue.md
+++ b/docs/api/wrapper/setValue.md
@@ -19,6 +19,10 @@ textInput.setValue('some value')
const select = wrapper.find('select')
select.setValue('option value')
+
+// requires <s... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test title should be \"sets element of multiselect value\" (drop \"when array\").", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The second test's title should be \"overrides elements of multiselect\".", "category": "... | null |
vuejs__vue-test-utils__1618 | vuejs/vue-test-utils | 1,618 | defect | ef6f16621a794460eda6f32d75b8acc0d0a2b940 | ca5645640cd9bbd16217d3c95c6faa0bcd542079 | fix(setprops): allowed for setProps to be synced with nextTick intervals | setProps in certain cases was being blown away by nextTick intervals. If the property is not up to
date, setProps will be called again to sync the changes.
fix #1419
<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue-test-utils/blob/dev/.github/CONTRIBUTING.md#pull-request-... | diff --git a/packages/test-utils/src/wrapper.js b/packages/test-utils/src/wrapper.js
index 6ea73b2cf..73a9b0247 100644
--- a/packages/test-utils/src/wrapper.js
+++ b/packages/test-utils/src/wrapper.js
@@ -711,7 +711,15 @@ export default class Wrapper implements BaseWrapper {
// $FlowIgnore : Problem with possi... | 5 | 1 | 0 | [{"id": "G0", "claim": "The author was unsure whether the reference equality check of vm values against the set data was necessary, noting value comparison might be needed for safety.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Nothing is rejecte... | null |
vuejs__vue-test-utils__1817 | vuejs/vue-test-utils | 1,817 | defect | 62dec1c8b6cce1c255706af459b574ebc2c9e586 | 96a649822d7e1c709a509e8bbf0fe10bfbcf70d7 | fix #1813 | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue-test-utils/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
... | diff --git a/packages/test-utils/src/matches.js b/packages/test-utils/src/matches.js
index 8f11a2d33..959613472 100644
--- a/packages/test-utils/src/matches.js
+++ b/packages/test-utils/src/matches.js
@@ -10,7 +10,7 @@ function vmMatchesName(vm, name) {
// We want to mirror how Vue resolves component names in SFCs:
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The line removed in matches.js existed for Vue <2.3 back compatibility and its removal leaves a failing test, so the PR should be updated and the failing test fixed (possibly by skipping it).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
vuejs__vue-test-utils__1857 | vuejs/vue-test-utils | 1,857 | defect | 9efab9053ffc04b938f3237d8b6f046a27ff5014 | 3849203b93ce5d2229997e0c987f0117d2c521d4 | fix #1845: add functional component check in component name match | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue-test-utils/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
The following PR introduced a bug for finding components that contain a name prop themselves: https://github.com/vuejs/vue-test-utils/commit/3cd81d0593f56... | diff --git a/packages/test-utils/src/matches.js b/packages/test-utils/src/matches.js
index 477d66cd1..6acba7661 100644
--- a/packages/test-utils/src/matches.js
+++ b/packages/test-utils/src/matches.js
@@ -3,16 +3,20 @@ import {
COMPONENT_SELECTOR,
FUNCTIONAL_OPTIONS
} from 'shared/consts'
-import { isConstructor... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new fixture component-with-name-prop.vue should perhaps be a functional component, since the patch is related to functional component name matching.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author should verify that t... | null |
vuejs__vue-test-utils__243 | vuejs/vue-test-utils | 243 | defect | 5da682152959d0ed644cfeaa3e9e50ddb06ecb14 | 08c7f209bf05faf0229ae4fdfd02e3fa85f9564d | Fix event capturing in beforeCreate lifecycle hook | The event capturing was installed in the wrapper constructor, after the component (vm) was created and mounted, which is too late to catch events emitted in lifecycle hooks like `beforeCreate`.
Two additional tests were written, in `emitted.spec.js` and `emittedByOrder.spec.js`, and an existing one was adjusted. Not... | diff --git a/flow/wrapper.flow.js b/flow/wrapper.flow.js
index 3062f4867..4e571b17d 100644
--- a/flow/wrapper.flow.js
+++ b/flow/wrapper.flow.js
@@ -34,5 +34,11 @@ declare interface BaseWrapper { // eslint-disable-line no-undef
declare type WrapperOptions = { // eslint-disable-line no-undef
attachedToDocument: ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The commented-out logEvents call line can simply be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Event logging should be attached per component (via this.__emitted set in the mixin) instead of passing a shared ... | null |
vuejs__vue-test-utils__359 | vuejs/vue-test-utils | 359 | defect | 756913a60ffe69facc2aef088e03ddd7ea9acd4c | 1d636779bc488fd9ef0b7fba9fd2049f3c3cf71f | Hotfix: Fix error being thrown with `Vue.extend` when functional | If using `functional` component with `Vue.extend` an error is thrown,
this is avoided by checking the options object | diff --git a/src/lib/create-instance.js b/src/lib/create-instance.js
index 1f44dad10..f347cb6e2 100644
--- a/src/lib/create-instance.js
+++ b/src/lib/create-instance.js
@@ -27,7 +27,7 @@ export default function createConstructor (
addMocks(mountingOptions.mocks, vue)
}
- if (component.functional) {
+ if ((c... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `.only` on the new `describe('context', ...)` call should be removed before merging.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vue-test-utils__445 | vuejs/vue-test-utils | 445 | defect | 85e976511b7552dc57aa7d05da6c2c0ed51c2484 | 9730f0da950db8cb1a17a7dbef7634690964f950 | fix classes() for svg elements | Hello I had a problem using classes function on svg elements (same as #362).
This pull request should fix it as className returns a SVGAnimatedString object for svg elements instead of a simple string.
See notes in [(https://developer.mozilla.org/fr/docs/Web/API/Element/className)]
| diff --git a/src/wrappers/wrapper.js b/src/wrappers/wrapper.js
index 309c6690f..8b8ca3780 100644
--- a/src/wrappers/wrapper.js
+++ b/src/wrappers/wrapper.js
@@ -69,7 +69,9 @@ export default class Wrapper implements BaseWrapper {
* Returns an Array containing all the classes on the element
*/
classes (): Arra... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a unit test to check that classes() works for svg elements.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vuejs__vue-test-utils__531 | vuejs/vue-test-utils | 531 | defect | 27bcee702e71e5214fb26bc326dab664cef01d66 | 44f7798770fe32633f997b4a63ac6141ca054a72 | Allow mocks to be set in config object | First try at #325 .
I am sure this is not the best way to write the test, though.
Initially I was using `$store` instead of `$t`, which caused a test related to installing vuex on `createLocalVue` to fail. I wonder why?
| diff --git a/packages/shared/merge-options.js b/packages/shared/merge-options.js
index d5fdb4ae1..0c94cf03b 100644
--- a/packages/shared/merge-options.js
+++ b/packages/shared/merge-options.js
@@ -16,12 +16,29 @@ function getStubs (optionStubs, config) {
}
}
+function getMocks (optionMocks, config) {
+ if (optio... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new getMocks function is nearly the same as getStubs, so split them into a single generic getOptions function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add `methods` to mergeOptions so that methods, like mocks, ... | null |
vuejs__vue-test-utils__555 | vuejs/vue-test-utils | 555 | defect | db5e07edc31f0a77280e435b492bbd3ddcbf73f4 | c293cf1e72840c599ed47a90d2066202a10cf342 | feat: Adds `provide` to the global config. | While working on our current project, we noticed that mocking global provides (usually provided by the root Vue instance) is quite painful because it needs to be added to every single mount()/shallow() in the tests.
This implements the config abilities that the mocks, stubs and methods also have.
The only featur... | diff --git a/docs/en/api/config.md b/docs/en/api/config.md
index 9f7c51feb..a84befb06 100644
--- a/docs/en/api/config.md
+++ b/docs/en/api/config.md
@@ -60,3 +60,22 @@ VueTestUtils.config.methods['errors'] = () => {
any: () => false
}
```
+
+### `provide`
+
+- type: `Object`
+- default: `{}`
+
+Like `stubs` or `mo... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new provide tests should be skipped on Vue versions that do not support inject/provide (Vue < 2.2) by using the itDoNotRunIf and injectSupported helpers.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vue-test-utils__557 | vuejs/vue-test-utils | 557 | defect | db5e07edc31f0a77280e435b492bbd3ddcbf73f4 | b600bbc8467a3bef3605ef9150a195341b5c4061 | feat: Add setValue method | #530
First contribution, wanted to know if I am following the correct path.
Its not finished yet.
Thanks | diff --git a/packages/test-utils/src/wrapper.js b/packages/test-utils/src/wrapper.js
index 790904ce3..828119392 100644
--- a/packages/test-utils/src/wrapper.js
+++ b/packages/test-utils/src/wrapper.js
@@ -531,6 +531,14 @@ export default class Wrapper implements BaseWrapper {
this.vnode = this.vm._vnode
}
+ /... | 5 | 4 | 3 | [{"id": "G0", "claim": "setValue must be added to flow/wrapper.flow.js and given a type in packages/test-utils/types/index.d.ts, with a test added in packages/test-utils/types/wrapper.ts.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "setValue shoul... | null |
vuejs__vue-test-utils__56 | vuejs/vue-test-utils | 56 | defect | 3cd8ba1ae4cf43517961a84c15159783513e3005 | d1fb05c4e7d13f3f879bced2e5ee6ec9696504e6 | fix bug | the bug is : when you test the style a arbitrary name,like "margin-top333", the old function will return true, because the value of 'elStyle' and 'mockNodeStyle' are all ''undefined" | diff --git a/src/wrappers/wrapper.js b/src/wrappers/wrapper.js
index 84ecd0fc4..e40baf505 100644
--- a/src/wrappers/wrapper.js
+++ b/src/wrappers/wrapper.js
@@ -133,7 +133,7 @@ export default class Wrapper implements BaseWrapper {
const elStyle = window.getComputedStyle(this.element)[style]
const mockNodeSt... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add a test for the bug fixed by this PR to tests/unit/specs/Wrapper/hasStyle.spec.js in this PR, so regressions can be caught.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The hasStyle return statement should be wrapped in pare... | null |
vuejs__vue-test-utils__580 | vuejs/vue-test-utils | 580 | defect | 01686a0732f25c754c42eb19cde7302c9ca890bf | aa810f9035e12f1647686a5590879229e66e19f4 | fix: function names | I think this make it easy to read and `git blame`. | diff --git a/packages/create-instance/add-slots.js b/packages/create-instance/add-slots.js
index 82a1c4391..3565b35a8 100644
--- a/packages/create-instance/add-slots.js
+++ b/packages/create-instance/add-slots.js
@@ -1,18 +1,20 @@
// @flow
import { compileToFunctions } from 'vue-template-compiler'
+import { throwEr... | 2 | 1 | 0 | [{"id": "G0", "claim": "The inline union type on addSlotToVm's slotValue parameter should be moved into its own type alias: type SlotValue = Component | string | Array<Component> | Array<string>.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tr... | null |
vuejs__vue-test-utils__68 | vuejs/vue-test-utils | 68 | defect | fe5170398cb2ba5eaa42756f27212bee66718762 | 06ada74bef81a46e84660f39a007e66b96a7dd48 | Wrapper: find/findAll accepts ref options object | This PR relates to https://github.com/vuejs/vue-test-utils/issues/67
It adds the `.ref('someRefName')` method to the main `wrapper`.
This returns a `WrapperArray` with wrappers for any `vnode`s that have the specified ref. Additionally, `.ref` will only match `vnodes` with refs that exist on the `wrapper.vm.$refs... | diff --git a/flow/wrapper.js b/flow/wrapper.js
index 9ec8709bc..d578742a0 100644
--- a/flow/wrapper.js
+++ b/flow/wrapper.js
@@ -32,3 +32,7 @@ declare type WrapperOptions = { // eslint-disable-line no-undef
attachedToDocument: boolean,
error?: string
}
+
+declare type FindOptions = { // eslint-disable-line n... | 5 | 3 | 1 | [{"id": "G0", "claim": "eddyerburgh is unsure about the API and says that ideally find and findAll would be extended to handle refs, to be discussed in issue #67.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "eddyerburgh says something more, in context ... | null |
vuejs__vue-test-utils__748 | vuejs/vue-test-utils | 748 | defect | fccb3cb42da744173ba6e60dd053df0f06505b27 | 01bbb7d84cd46dcc268de9ba0629c37400e1c602 | feat: element, vnode, vm, and options are read-only | Since vm, element and options are read-only in the type definition, this changes them to read-only.
Since the element property is read-only, this removes unnecessary checks.
This is related to #725. | diff --git a/docs/api/wrapper/README.md b/docs/api/wrapper/README.md
index 78910e581..b4765b6f4 100644
--- a/docs/api/wrapper/README.md
+++ b/docs/api/wrapper/README.md
@@ -8,21 +8,21 @@ A `Wrapper` is an object that contains a mounted component or vnode and methods
### `vm`
-`Component`: This is the `Vue` instanc... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the `freezedOptions` variable to `frozenOptions`, because \"freezed\" is non-standard English.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vuejs__vue-test-utils__749 | vuejs/vue-test-utils | 749 | defect | b801c256f9a32817c37ee6c5f9e5b5b4b30bb6da | 5950f50a96f75372ed2e57d29eda00aa5f34cadc | feat: throw error if the read-only property is tried to change | This makes the read-only property to throw error if the read-only property is tried to change.
This is related to #747.
| diff --git a/docs/api/wrapper-array/README.md b/docs/api/wrapper-array/README.md
index 9ad5dbde0..fa6c745cf 100644
--- a/docs/api/wrapper-array/README.md
+++ b/docs/api/wrapper-array/README.md
@@ -4,13 +4,13 @@ A `WrapperArray` is an object that contains an array of [`Wrappers`](../wrapper/
## Properties
-### `wra... | 1 | 1 | 1 | [{"id": "G0", "claim": "The read-only property setters silently ignore writes; they should throw an error to tell users the property is read-only, and the same should be done for vnode and element.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vue-test-utils__771 | vuejs/vue-test-utils | 771 | defect | 71a2ac4e6aa5edcee1c562a426e2bcab83bed443 | 976bbe7af01bb30a8dc6907d8702e6be8ac4d5c1 | fix: fix tagName in setValue() and setChecked() | This fixes `tagName` in `setSelected()` and `setChecked()`. | diff --git a/packages/test-utils/src/wrapper.js b/packages/test-utils/src/wrapper.js
index 77ed8c2c7..53d822d69 100644
--- a/packages/test-utils/src/wrapper.js
+++ b/packages/test-utils/src/wrapper.js
@@ -748,7 +748,7 @@ export default class Wrapper implements BaseWrapper {
this.trigger('change')
}
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Tests should be added for the tagName fix in setChecked()/setSelected().", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vue-test-utils__791 | vuejs/vue-test-utils | 791 | defect | 221038bface759687d7fa73d844682016e9abc63 | f1a4d547260b6260c9631b790e374b1bb55ac37a | fix: setProps() throws an error if the property is the same reference | Related: #761, #787
Changes
- setProps() throws an error if the property is the same reference
- Added test that props are the same reference
Please tell me if there is a better error message. | diff --git a/packages/test-utils/src/wrapper.js b/packages/test-utils/src/wrapper.js
index db4180acd..836c4bbca 100644
--- a/packages/test-utils/src/wrapper.js
+++ b/packages/test-utils/src/wrapper.js
@@ -657,6 +657,17 @@ export default class Wrapper implements BaseWrapper {
`is not defined on the component`... | 1 | 1 | 0 | [{"id": "G0", "claim": "The setProps same-reference error message should be reworded to: `wrapper.setProps() called with the same object of the existing ${key} property. You must call wrapper.setProps() with a new object to trigger reactivity`.", "category": "maintainability", "verdict": "supported", "priority": "P2", ... | null |
vuejs__vue-test-utils__808 | vuejs/vue-test-utils | 808 | defect | 96f1e39478be06fbe6cee58eaacabfdccd0da966 | 7b7e40ed899dd35bda506a3d6a08e3bc9717e7e1 | fix: improve scopedSlots option | This resolves #706.
| diff --git a/packages/create-instance/create-instance.js b/packages/create-instance/create-instance.js
index ea0cc8af3..6b6fbddb9 100644
--- a/packages/create-instance/create-instance.js
+++ b/packages/create-instance/create-instance.js
@@ -10,6 +10,7 @@ import extractInstanceOptions from './extract-instance-options'
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The function should be renamed to `createScopedSlots`, to be in line with createComponentStubs, createSlotVNodes, etc.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case for the example in the issue, a scoped ... | null |
vuejs__vue-test-utils__871 | vuejs/vue-test-utils | 871 | defect | 26e7710d07dc80d501626645e8949ddb04afaf94 | 36e30323cebaf08a4b1419a351e0bcc872b0fb67 | feat: add support for JSX and strings without a slot-scope attribute | - remove window dependency from scoped slots
- allow template tags as root node
cc @38elements
Closes #657 | diff --git a/packages/create-instance/create-scoped-slots.js b/packages/create-instance/create-scoped-slots.js
index 6211fd320..d77ba2ab2 100644
--- a/packages/create-instance/create-scoped-slots.js
+++ b/packages/create-instance/create-scoped-slots.js
@@ -36,25 +36,12 @@ function getVueTemplateCompilerHelpers (): { [n... | 4 | 4 | 1 | [{"id": "G0", "claim": "The scopedSlots documentation (docs/api/options.md#scopedslots) needs to be changed to describe the new behaviour.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The vueVersion < 2.5 limitation in validateEnvironment is not... | null |
vuejs__vue__11906 | vuejs/vue | 11,906 | defect | 5255841aaff441d275122b4abfb099b881de7cb5 | ef65ec8202710eef05724e6b79d2b99e1773cc7f | fix(types): async Component types | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [x] Bugf... | diff --git a/types/options.d.ts b/types/options.d.ts
index 323c7630986..243d19b8e00 100644
--- a/types/options.d.ts
+++ b/types/options.d.ts
@@ -25,13 +25,18 @@ export type AsyncComponentPromise<Data=DefaultData<never>, Methods=DefaultMethod
reject: (reason?: any) => void
) => Promise<Component | EsModuleComponent>... | 3 | 3 | 2 | [{"id": "G0", "claim": "A test should be added for the changed async component types; a type test case under types/test would suffice.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The closing brace of the AsyncComponentFactory type literal should be `... | null |
vuejs__vue__12789 | vuejs/vue | 12,789 | defect | 60d268c4261a0b9c5125f308468b31996a8145ad | f2781750f1ff736957362babe7b5998c55ef6491 | fix(types):fix Spreading data functional components TSX type error (fix #12778) | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [x] Bugf... | diff --git a/types/test/vue-test.ts b/types/test/vue-test.ts
index b792cec583d..d07a2003c4d 100644
--- a/types/test/vue-test.ts
+++ b/types/test/vue-test.ts
@@ -42,7 +42,7 @@ class Test extends Vue {
this.$delete({}, 'key')
this.$watch('a', (val: number, oldVal: number) => {}, {
immediate: true,
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the unrelated trailing-comma style changes from types/test/vue-test.ts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vuejs__vue__4731 | vuejs/vue | 4,731 | defect | 12ecce5b4dd97e1cb14343501fdfb5f9300077e9 | 0f8d374b35e5e008c5e1365ae2d31b602c7aecd9 | add types for Vue 1.x | Hi.
This is a PR to add TypeScript definition files for Vue.js 1.x into this repository.
Since Vue decided to bundle its definition files, they were hosted on DefinitelyTyped.
* https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13230
* https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13235
* https... | diff --git a/package.json b/package.json
index 1c312d4c155..3973cc0e088 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,7 @@
"bugs": "https://github.com/vuejs/vue/issues",
"homepage": "http://vuejs.org",
"scripts": {
- "test": "npm run lint && npm run cover && npm run build && npm run e2e",
+ "... | 3 | 2 | 1 | [{"id": "G0", "claim": "The `vuejs` global namespace is missing the `FilterOption` and `VueConfig` type aliases.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `ComputedOption` alias could parameterize `ComputedOptions` with `V.Vue` instead of `... | null |
vuejs__vue__6856 | vuejs/vue | 6,856 | defect | a433b16588412980b4ab51924de1ef91b5226f56 | 4abc845a5b054c2c431a6151986c5092e8e04911 | feat: add Prop to main type declaration file [#6850] | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [ ] Bugf... | diff --git a/types/index.d.ts b/types/index.d.ts
index da58517f42f..92593a7c53d 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -12,6 +12,7 @@ export {
ComponentOptions,
FunctionalComponentOptions,
RenderContext,
+ Prop,
PropOptions,
ComputedOptions,
WatchHandler,
diff --git a/types/test/opti... | 3 | 2 | 2 | [{"id": "G0", "claim": "The reviewer asks how the change impacts union props like `union: [User, Number]` and says the PR should ship only if it also fixes that union case of issue #6841.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The exported P... | null |
vuejs__vue__7712 | vuejs/vue | 7,712 | defect | cd334070f3b82d3f5892c4999cc290ccd4f56fd8 | 626a1c6e47a05a9c0338b40998ebb93763043fd0 | fix(types): fix wrong errorCaptured type | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [x] Bugf... | diff --git a/types/options.d.ts b/types/options.d.ts
index a54993fff5d..aeecbbfdaf7 100644
--- a/types/options.d.ts
+++ b/types/options.d.ts
@@ -80,7 +80,7 @@ export interface ComponentOptions<
updated?(): void;
activated?(): void;
deactivated?(): void;
- errorCaptured?(): boolean | void;
+ errorCaptured?(er... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `vm` parameter of `errorCaptured` should be typed `Vue` instead of `V`, because errors can propagate up so the instance is not usually the one defined by the option.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vue__8003 | vuejs/vue | 8,003 | defect | 38d5459e109a83b4992168c673403503278ff3c1 | 7ee7738f8787993e9cd3c1cb75c53fd73875bd81 | fix(types): make VNodeDirective properties optional, fix #8013 | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [x] Bugf... | diff --git a/types/options.d.ts b/types/options.d.ts
index cc58affe6a1..00ac467d9b5 100644
--- a/types/options.d.ts
+++ b/types/options.d.ts
@@ -160,9 +160,20 @@ export interface WatchOptionsWithHandler<T> extends WatchOptions {
handler: WatchHandler<T>;
}
+export interface DirectiveBinding {
+ readonly name: st... | 1 | 1 | 1 | [{"id": "G0", "claim": "Since VNodeDirective now has optional properties, the PR cannot guarantee that DirectiveFunction receives a non-nullable DirectiveBinding argument, so changing VNodeDirective alone is OK (the separate all-required DirectiveBinding interface should be dropped).", "category": "correctness", "verdi... | null |
vuejs__vue__8946 | vuejs/vue | 8,946 | defect | 0737d11a146818d975266953ee547a12a63a1a41 | 4de014319ef91bc6c43cabb245a0d33cd98ef629 | Typings: Improve $slots and $scopedSlots type to prevent unchecked access to undefined | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [x] Bugf... | diff --git a/types/test/options-test.ts b/types/test/options-test.ts
index 17a54fd360b..dc334b0f31e 100644
--- a/types/test/options-test.ts
+++ b/types/test/options-test.ts
@@ -296,8 +296,8 @@ Vue.component('component-with-scoped-slot', {
child: {
render (this: Vue, h: CreateElement) {
return h('di... | 3 | 1 | 1 | [{"id": "G0", "claim": "Declaring the `$scopedSlots` value type as `ScopedSlot | undefined` is inaccurate, because an index signature on `{ [key: string]: ScopedSlot }` already yields `undefined` for a missing key, so the value type should not include `undefined`.", "category": "correctness", "verdict": "opposed", "pri... | null |
vuejs__vue__9563 | vuejs/vue | 9,563 | defect | 59d8579fbd3a3450ab684d6a596f1853f2257d08 | 46e7115e357f70bad08a11e5cc2305a95bb18b79 | fix(types): allow scoped slots to return a single VNode | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [x] Bugf... | diff --git a/types/test/options-test.ts b/types/test/options-test.ts
index 166d8806108..2c67efe0665 100644
--- a/types/test/options-test.ts
+++ b/types/test/options-test.ts
@@ -323,6 +323,10 @@ Vue.component('component-with-scoped-slot', {
item: (props: ScopedSlotProps) => [h('span', [props.msg])]
}... | 1 | 1 | 1 | [{"id": "G0", "claim": "The ScopedSlot return type should have a type similar to VNodeChildren (covering string, boolean, null and recursive arrays) because scoped slot returns are normalized the same way as vnode children.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vue__9733 | vuejs/vue | 9,733 | defect | 3433ba5beef9a6dd97705943c3441ebbee222afd | 7e8c3d08678f3974374e52247b73f90d925a29d8 | fix(types): allow using functions on the PropTypes (#9692) | <!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**What kind of change does this PR introduce?** (check at least one)
- [x] Bugf... | diff --git a/types/options.d.ts b/types/options.d.ts
index dcb38614ed3..75616f5d5a5 100644
--- a/types/options.d.ts
+++ b/types/options.d.ts
@@ -144,7 +144,7 @@ export interface RenderContext<Props=DefaultProps> {
injections: any
}
-export type Prop<T> = { (): T } | { new(...args: any[]): T & object }
+export typ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added `Prop<T>` union member should follow the existing code style: `{ new(...args: string[]): Function }` instead of `{new(...args: string[]): Function;}`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
vuejs__vuefire__225 | vuejs/vuefire | 225 | defect | 3e3128dd521a18a29dc660324b2ea2072b6a8c7c | e9270875a8d4343892bf67544c252c7c8cd119b2 | Add types of VuexFire | Reference issue: https://github.com/vuejs/vuefire/issues/224
| diff --git a/packages/vuexfire/package.json b/packages/vuexfire/package.json
index 55d31ffd..4279f2d4 100644
--- a/packages/vuexfire/package.json
+++ b/packages/vuexfire/package.json
@@ -6,6 +6,7 @@
"module": "dist/vuexfire.esm.js",
"unpkg": "dist/vuexfire.js",
"browser": "dist/vuexfire.esm.js",
+ "types": "t... | 1 | 1 | 1 | [{"id": "G0", "claim": "The declared return type of bindFirebaseRef (Promise<void>) should give better hints for the promise, as depending on the type of ref it resolves to an array (collection) or a document (document reference), as in the $bind typings of the vuefire package.", "category": "correctness", "verdict": "... | null |
vuejs__vuepress__1509 | vuejs/vuepress | 1,509 | defect | 3cc805d9a231bda00a91b253716e0882a4a2bb4a | 610c733f8c230d977c18664631e075cd290f1253 | Fix #1505 - Snippets should not split path on space | <!-- Please don't delete this template -->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**Summary**
**What kind of change does this PR introduce?** (check at least one)
- [x] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [ ] Build-related ch... | diff --git a/lib/markdown/snippet.js b/lib/markdown/snippet.js
index b21c0df93a..4e8ff9d552 100644
--- a/lib/markdown/snippet.js
+++ b/lib/markdown/snippet.js
@@ -24,7 +24,7 @@ module.exports = function snippet (md, options = {}) {
const start = pos + 3
const end = state.skipSpacesBack(max, pos)
const ra... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new filename extraction must add a `.trim()` because rawPath may take the form `@/path/to/file {1}`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vuepress__1546 | vuejs/vuepress | 1,546 | defect | 23b0ce3efc69df06d3d2ac70c987348b3c06078a | a7933121be8ae1fe760e85ddb97f4aa59955373e | feat(options): make enhancers async ready without breaking changes | <!-- Please don't delete this template -->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**Summary**
**What kind of change does this PR introduce?** (check at least one)
- [ ] Bugfix
- [x] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [ ] Build-related ch... | diff --git a/packages/@vuepress/core/lib/node/Page.js b/packages/@vuepress/core/lib/node/Page.js
index 5172dbd716..03154f2bb3 100644
--- a/packages/@vuepress/core/lib/node/Page.js
+++ b/packages/@vuepress/core/lib/node/Page.js
@@ -142,7 +142,7 @@ module.exports = class Page {
this._computed = computed
this._l... | 1 | 1 | 1 | [{"id": "G0", "claim": "The documentation should be updated so users know that `extendPageData` also works as an async function.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vuepress__1564 | vuejs/vuepress | 1,564 | defect | 41b5cfba3f0aa6e0d6b0df9a31c1eb7d3d76faa8 | 1a08de2cbc46a4e37e13cfbc22df9bb9b678358d | Fix "ENOTDIR: not a directory" error | <!-- Please don't delete this template -->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**Summary**
**What kind of change does this PR introduce?** (check at least one)
- [x] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [ ] Build-related ch... | diff --git a/packages/@vuepress/core/lib/node/loadTheme.js b/packages/@vuepress/core/lib/node/loadTheme.js
index 3cba5c0dbe..11d9d295a5 100755
--- a/packages/@vuepress/core/lib/node/loadTheme.js
+++ b/packages/@vuepress/core/lib/node/loadTheme.js
@@ -56,17 +56,7 @@ module.exports = function loadTheme (ctx) {
function ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Test cases should be added to cover the pull request's changed theme-resolution behaviour in loadTheme.js.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vuepress__1958 | vuejs/vuepress | 1,958 | defect | bc4032ddf8f4b0b11a3c6845d95b74f327afc532 | 000021f9bb1a07a639f18a5b61eb3423524263a3 | fix($markdown): Fix four spaces codeblocks rendering (Closes #1921) | <!-- Please don't delete this template -->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**Summary**
Fix #1921
**What kind of change does this PR introduce?** (check at least one)
- [X] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [ ] Bu... | diff --git a/packages/@vuepress/markdown/__tests__/__snapshots__/preWrapper.spec.js.snap b/packages/@vuepress/markdown/__tests__/__snapshots__/preWrapper.spec.js.snap
new file mode 100644
index 0000000000..562cc6c467
--- /dev/null
+++ b/packages/@vuepress/markdown/__tests__/__snapshots__/preWrapper.spec.js.snap
@@ -0,0... | 1 | 1 | 0 | [{"id": "G0", "claim": "The renderer rule assignment could be consolidated by destructuring `const { fence, code_block: codeBlock } = md.renderer.rules` and wrapping both fence and code_block with the shared wrap helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vuejs__vuepress__2163 | vuejs/vuepress | 2,163 | defect | f083d8d74d4b7fd71b248e9e5c4a41edf96bdf2a | 169cc05d9e1b4cb8a7b7e90bf95f800f7c530865 | feat($core): Improve VuePress build time | **Summary**
These optimisations make sense on projects that contains a huge amount of pages to render.
Related to #1560
**What kind of change does this PR introduce?** (check at least one)
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [ ] Build-related changes
- [x] ... | diff --git a/packages/@vuepress/core/lib/node/Page.js b/packages/@vuepress/core/lib/node/Page.js
index 99cb6d4eaa..54da049b68 100644
--- a/packages/@vuepress/core/lib/node/Page.js
+++ b/packages/@vuepress/core/lib/node/Page.js
@@ -286,13 +286,20 @@ module.exports = class Page {
*/
async enhance (enhancers) {
-... | 5 | 3 | 0 | [{"id": "G0", "claim": "Improvement 1 was discussed long ago in #315, and it should be checked whether it would break the CLI output in the current version.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "No benchmark has been provided to back the cl... | null |
vuejs__vuepress__2225 | vuejs/vuepress | 2,225 | defect | 01cd096307b55c920f6eb2eb1af9e0f8f2b153ac | da909e8ca3ac6a51eb21e3ba4a664e8865f52e07 | feat(markdown): snippet partial import | Only import a portion of a code file delimited by [VS Code custom regions markers](https://code.visualstudio.com/docs/editor/codebasics#_folding), based on the region key you set via a fragment identifier (`#`):
_<project root>/docs/hello-world.md_
```md
# Hello World
<<< @/src/hello-world.js#function-def{1-2}
... | diff --git a/packages/@vuepress/markdown/__tests__/__snapshots__/snippet.spec.js.snap b/packages/@vuepress/markdown/__tests__/__snapshots__/snippet.spec.js.snap
index 6514898292..59629e895b 100644
--- a/packages/@vuepress/markdown/__tests__/__snapshots__/snippet.spec.js.snap
+++ b/packages/@vuepress/markdown/__tests__/... | 2 | 1 | 1 | [{"id": "G0", "claim": "Line highlighting does not work as expected when the highlight line number is greater than 10 (e.g. `<<< @/docs/.vuepress/config.js{11}`), and the reviewer asks the author to fix this and add a test covering the case.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
vuejs__vuepress__2441 | vuejs/vuepress | 2,441 | defect | 20e732937f18e1515653429caa4bb788fd54c5e6 | 077a0ffd70d53a3ca4b28c8c7c65623646d9cadb | fix($markdown): line highlighting not working correctly when importing code snippets | <!-- Please don't delete this template -->
<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->
**Summary**
When importing code snippets with the `<<<` syntax, you could only either specify a single range (`{34-37}`) or a maximum of two lines to be highlighted (`{3,6}`).
This PR f... | diff --git a/packages/@vuepress/markdown/lib/snippet.js b/packages/@vuepress/markdown/lib/snippet.js
index 037498d336..cc0366242f 100644
--- a/packages/@vuepress/markdown/lib/snippet.js
+++ b/packages/@vuepress/markdown/lib/snippet.js
@@ -137,7 +137,7 @@ module.exports = function snippet (md, options = {}) {
*
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a unit test (in markdown/__tests__/snippet.spec.js) covering the line-highlighting regex change this PR makes to snippet.js.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vuejs__vuepress__2674 | vuejs/vuepress | 2,674 | defect | 45b4ba6d5dcb8bc72988936346d311b082b5599b | 124c67937fea6118af9bfa0e1407a2c75de38dcb | feat($markdown): make page suffix configurable (close #2452) | **Summary**
Extends the markdown link plugin with an option for the page suffix, which is currently hardcoded to `.html`.
This fixes broken links in the markup (and hence non-js version) when using the clean urls plugin. See #2452 for details.
Fixes #2452.
**What kind of change does this PR introduce?** (ch... | diff --git a/packages/@vuepress/markdown/__tests__/link.spec.js b/packages/@vuepress/markdown/__tests__/link.spec.js
index ee144bc16d..703a83a70a 100644
--- a/packages/@vuepress/markdown/__tests__/link.spec.js
+++ b/packages/@vuepress/markdown/__tests__/link.spec.js
@@ -2,10 +2,11 @@ import { Md } from './util'
import... | 2 | 1 | 0 | [{"id": "G0", "claim": "Wrap the test's mdL construction (Md().use(link, ...) plus dataReturnable) in a reusable setup function so it can be shared by the test cases instead of being repeated inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
vuejs__vuepress__538 | vuejs/vuepress | 538 | defect | 637f63403c83bf962922ff9b544bf2d030c4d823 | 29978bf1625448bffd0cec890177f62a64996a67 | feat: Add support to import files as code fence | Add rule to import code snippets:
``` md
...
## Minimal
rollup-plugin-vue ships as zero config solution to package `.vue` files.
<<< @/cookbook/minimal/rollup.config.js{1,10}
```

const hoistScriptStyle = require('./hoist')
const convertRouterLink = require('./link')
const containers = re... | 7 | 5 | 1 | [{"id": "G0", "claim": "The exported function and the block rule should be named `snippet` (instead of `codeFrame`/`code-frame`) to match the file and feature name.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add tests... | null |
vuejs__vuex__134 | vuejs/vuex | 134 | defect | 5e0b2471362c5f4b01a5729adddd8916f70c8142 | 8ba2f570e69f6759074ccf0c6b14898b8d8f4cd5 | Better user error. | Proposal on how to fix #121. Feedback appreciated.
| diff --git a/src/override.js b/src/override.js
index 470146b83..03af7e0eb 100644
--- a/src/override.js
+++ b/src/override.js
@@ -51,7 +51,7 @@ export default function (Vue) {
if (actions) {
options.methods = options.methods || {}
for (let key in actions) {
- options.methods[key] = make... | 3 | 3 | 2 | [{"id": "G0", "claim": "Use the simpler `typeof action === 'function'` check instead of `Function.prototype.isPrototypeOf(action)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `console.warn('[vuex] ...')` instead of throwing an Error, to ... | null |
vuejs__vuex__1365 | vuejs/vuex | 1,365 | defect | 3a5e530470c52209209b5e9c6ffdff902e8bbf17 | db96c4556df31619eda87e4b5f3e8b737429707a | Warn about conflicts between state and module | Fixes #1363. | diff --git a/src/store.js b/src/store.js
index b5b083c92..5cb2ff5b3 100644
--- a/src/store.js
+++ b/src/store.js
@@ -282,6 +282,13 @@ function installModule (store, rootState, path, module, hot) {
const parentState = getNestedState(rootState, path.slice(0, -1))
const moduleName = path[path.length - 1]
st... | 1 | 1 | 0 | [{"id": "G0", "claim": "The warning message should include the module name in the latter part as well, e.g. `[vuex] state field \"value\" was overridden by a module with the same name (\"value\")`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vuejs__vuex__1438 | vuejs/vuex | 1,438 | defect | bd23b9ad37151085ae4cb8d0456be0812a3f03ce | c99619d823021763f9aab15e1a950ee2da582476 | Prevent invalidating subscription iterator | This change shallow copies `_subscribers` before iterating over it, in-case one of the subscription listeners attempts to unsubscribe synchronously and invalidate the iterator. | diff --git a/src/store.js b/src/store.js
index 4251eaa73..77c5d3cba 100644
--- a/src/store.js
+++ b/src/store.js
@@ -100,7 +100,7 @@ export class Store {
handler(payload)
})
})
- this._subscribers.forEach(sub => sub(mutation, this.state))
+ this._subscribers.slice().forEach(sub => sub(mutatio... | 3 | 2 | 1 | [{"id": "G0", "claim": "The author is open to a cleaner or faster way than `.slice()` to generate the shallow copy of `_subscribers`.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment in `commit` sharing the context of why the subscribers l... | null |
vuejs__vuex__1786 | vuejs/vuex | 1,786 | defect | 04e2bd8b3509c67398a6fe73a3d53660069feca8 | 626b1de758f94da37a4e177fe59e58cda1dc9b53 | fix: warn when unregistering non existing module | close #1426
This PR adds warning when removing non existing module. Currently, it fails due to `runtime` not exist in `undefined` error. It's follow up PR for #1426.
It will only warn in development mode, so it will not introduce any braking changes. | diff --git a/src/module/module-collection.js b/src/module/module-collection.js
index ee1a887ba9..a6420c953a 100644
--- a/src/module/module-collection.js
+++ b/src/module/module-collection.js
@@ -49,7 +49,20 @@ export default class ModuleCollection {
unregister (path) {
const parent = this.get(path.slice(0, -1))... | 1 | 1 | 0 | [{"id": "G0", "claim": "Store the return value of `getChild` in a variable so it can be reused with the next if condition instead of calling it twice.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.