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
vuejs__vuex__1872
vuejs/vuex
1,872
defect
12aabe4cc470916d40691097dcb95badb8212f5c
d70d27a13dd3d2a7555a767d2990c83eafa34986
Add Node.js esm entry point
This PR adds a Node.js esm entry point for Vuex. Currently it is already possible to do ```js import Vuex from 'vuex' ``` on Node 13.2 and up, but unfortunately it's not possible to do ```js import { mapGetters } from 'vuex'; ``` because Node doesn't support named imports from CommonJS (note: it actually *does*...
diff --git a/package.json b/package.json index 6d9dbe06a..6b20d5ad9 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,13 @@ "version": "3.5.1", "description": "state management for Vue.js", "main": "dist/vuex.common.js", + "exports": { + ".": { + "require": "./dist/vuex.common.js", + "impor...
1
1
1
[{"id": "G0", "claim": "The esm entry point should be placed in `dist` rather than reference `src/index.mjs`, since `src` is not packed into the NPM package, e.g. by adding a copy step to `scripts/build.js`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vuejs__vuex__1883
vuejs/vuex
1,883
defect
3c56e9a7c714c2cb39c72c13f13bf7c684d2bb08
f3abade5534ad3068cf7b4e31033fd1034c94866
fix: fix getters being destroyed on component destroy (#1878)
fix #1878 This PR aims to fix #1878, but at the moment this is just adding failing test case. The problem we have is that when component gets destroyed, the getters (`computed`) get's destroyed via Vue. Hence if we call `registerModule` inside a component, any newly registered `computed` will disappear when that ...
diff --git a/package.json b/package.json index 3aae30a88..b6899b03e 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ }, "homepage": "https://github.com/vuejs/vuex#readme", "peerDependencies": { - "vue": "^3.0.2" + "vue": "^3.2.0" }, "dependencies": { "@vue/devtools-api": "^6.0.0-...
9
3
0
[{"id": "G0", "claim": "The lack of cache for getters is causing heavy performance issues in some situations, and the reporter asks whether this will be fixed.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The render fallback in test/helpers.js c...
null
vuejs__vuex__515
vuejs/vuex
515
defect
9420e2bf530f03921442ca6379b5903fa771db86
e814fbae13cd5ab19f95e2ed6421b10f1e2fee3b
Add store getters as second argument to store.watch() computed fn (solve #460)
* the first parameter of store.watch(), which is a function, now receives the store.getters object as its second argument. * added unit test Fullfills request #460
diff --git a/dist/vuex.js b/dist/vuex.js index 999658503..5d612daca 100644 --- a/dist/vuex.js +++ b/dist/vuex.js @@ -199,7 +199,7 @@ var Store = function Store (options) { var prototypeAccessors = { state: {} }; prototypeAccessors.state.get = function () { - return this._vm.state + return this._vm.$data.state };...
2
2
1
[{"id": "G0", "claim": "The TEST2 constant in test/unit/test.js was commented out only because eslint flagged it as unused; if nothing needs it, it should be removed rather than left commented out.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
vuejs__vuex__698
vuejs/vuex
698
defect
a0e1e8fc3a945d71bb29b1acab5b80f585363a09
be4fffb2fa63b966bd14300cab9966b8a9cb2baf
[improvement] Add assertion to verify using of new
I see people are asking about this problem so often, that I feel it worth to put this assertion into the code to save some time for those developers.
diff --git a/dist/vuex.js b/dist/vuex.js index 1d8f943ce..a564ad62e 100644 --- a/dist/vuex.js +++ b/dist/vuex.js @@ -250,6 +250,7 @@ var Store = function Store (options) { assert(Vue, "must call Vue.use(Vuex) before creating a store instance."); assert(typeof Promise !== 'undefined', "vuex requires a Promise po...
1
1
0
[{"id": "G0", "claim": "Revert the change to dist/vuex.js because the built dist file should only be updated at release time.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vuejs__vuex__800
vuejs/vuex
800
defect
752dbc6e7573240b990851aba081b51c09134a26
6e9b088aeae2d1d05cb0398c67906f2ce1e93286
feat: add `createNamespacedHelpers()` to help dealing with namespaced modules
When using namespaced Vuex module with Vue components, binding namespace to the helper functions (mapState, mapGetters, mapMutations and mapActions) is a bit verbose. For example: ```js const storeModule = new Vuex.Store({ namespaced: true, state: { val: 0 }, actions: { someAction() {}, }, }) c...
diff --git a/src/helpers.js b/src/helpers.js index a98be7cf56..23d5bb4f78 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -70,6 +70,13 @@ export const mapActions = normalizeNamespace((namespace, actions) => { return res }) +export const createNamespacedHelpers = (namespace) => ({ + mapNamespacedState: mapSta...
1
1
1
[{"id": "G0", "claim": "The returned helpers should be named the same as the normal `mapXXX` helpers (mapState, mapGetters, mapMutations, mapActions) for consistency with the normal helpers and so users can rename them if needed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vuejs__vuex__941
vuejs/vuex
941
defect
9438bab710f8ea80b6a11047d8c28b34b6edea3b
a4063e86fc291156f003db299381cea2ce2b7384
Namespaced modules: root actions
Fix #770 The actions can now be defined with the following notation: ```javascript { root: true, handler (context, payload) { ... } } ``` - [x] Tests - [x] Type def
diff --git a/src/module/module-collection.js b/src/module/module-collection.js index 910c6d2c6..a68f05a51 100644 --- a/src/module/module-collection.js +++ b/src/module/module-collection.js @@ -84,25 +84,43 @@ function update (path, targetModule, newModule) { } } +const functionAssert = { + assert: value => typeo...
1
1
0
[{"id": "G0", "claim": "The forEachAction registration block could be written more simply as `const type = action.root ? key : namespace + key; const handler = action.handler || action; registerAction(store, type, handler, local)` instead of the let/if-else version.", "category": "maintainability", "verdict": "supporte...
null
vuelidate__vuelidate__1003
vuelidate/vuelidate
1,003
defect
72bad5275520a3e7545ccbcfc24c2a007e0f677d
60693aa66e15325520eab4effa629d42c1e2cb6c
feat(core): add array of 'regex', closes #400
<!-- Please make sure to read the Pull Request Guidelines: https://github.com/vuelidate/vuelidate/blob/master/.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/docs/src/custom_validators.md b/packages/docs/src/custom_validators.md index 2c6599dc..5c1fabb2 100644 --- a/packages/docs/src/custom_validators.md +++ b/packages/docs/src/custom_validators.md @@ -181,6 +181,9 @@ includes handling optional fields and `$params`. import { helpers } from 'vuelidate/...
1
1
0
[{"id": "G0", "claim": "Allow multiple regex expressions to be passed as separate parameters (via rest args) instead of requiring an array.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vuelidate__vuelidate__157
vuelidate/vuelidate
157
defect
eae6d32bcf3218b26dc016b0bdbc002c3f6159c3
6e82a502b91c32598656c8c481e9619b01c38b39
Min value max value
I added validators for minimum value and maximum value
diff --git a/dist/validators.min.js b/dist/validators.min.js index 84881618..2b09a6a0 100644 --- a/dist/validators.min.js +++ b/dist/validators.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof expo...
5
4
2
[{"id": "G0", "claim": "The code style of the new minValue/maxValue validators should be fixed to match the existing validators (e.g. minLength).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "No more fields should be added to the first docs exa...
null
vuelidate__vuelidate__245
vuelidate/vuelidate
245
defect
d16f2b80b9b1cb3aba7d5fb5cf4274734bf272c0
c240ae3ab08f9640bb3a15cb1ee66a707eea7029
Improve numeric validator
As discussed in #136, numeric currently only accepts positive integer values. This pull request makes the following changes. - Split numeric validator into numeric and integer validators. - Update numeric validator to allow positive and negative decimal numbers. - Limit integer validator to positive or negative wh...
diff --git a/docs/partials/validators/_validators.pug b/docs/partials/validators/_validators.pug index 1ae2b46f..a5a572e8 100644 --- a/docs/partials/validators/_validators.pug +++ b/docs/partials/validators/_validators.pug @@ -79,6 +79,10 @@ mixin validatorRow(validator, params) | Accepts only alphanumer...
3
3
3
[{"id": "G0", "claim": "Keep the existing `numeric` validator backward compatible (digits only) and give the new sign-and-dot validator a different name (`decimal`) instead of calling it 'numeric'.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The regex...
null
vuelidate__vuelidate__662
vuelidate/vuelidate
662
defect
b8c5181c7a98e2be918935c1a15a494f49daf6e3
682bf748b684d4a1ee008affed350179ded4eb6a
Options api alternative
<!-- Please make sure to read the Pull Request Guidelines: https://github.com/vuelidate/vuelidate/blob/master/.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-project/src/App.vue b/packages/test-project/src/App.vue index bf8dff18..d526b50d 100644 --- a/packages/test-project/src/App.vue +++ b/packages/test-project/src/App.vue @@ -1,16 +1,19 @@ <template> <div id="app"> + <OldApiExample /> <nested-validations /> </div> </template> ...
11
8
3
[{"id": "G0", "claim": "The redundant double unwrapping in createValidatorResult — unwrap(unwrap(state)[key]) — should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mixin should use $v instead of v$ for the options API, since re...
null
vuelidate__vuelidate__674
vuelidate/vuelidate
674
defect
711cc130573ddc8f1711e1d0369354dc7cb22524
13351207c04294a2d0acda725e6b173352135403
fix: chain of state refs
<!-- Please make sure to read the Pull Request Guidelines: https://github.com/vuelidate/vuelidate/blob/master/.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/vuelidate/src/core.js b/packages/vuelidate/src/core.js index 9b023c70..5b2aacf3 100644 --- a/packages/vuelidate/src/core.js +++ b/packages/vuelidate/src/core.js @@ -1,5 +1,5 @@ import { isFunction, isPromise, unwrap, unwrapObj } from './utils' -import { computed, reactive, ref, watch, isRef } fro...
3
1
1
[{"id": "G0", "claim": "The pull request needs a way to verify it: a concrete example or unit tests exercising the deeply-nested-ref state it fixes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Passing a deep object that is a ref instead of a reactive...
null
vuelidate__vuelidate__828
vuelidate/vuelidate
828
defect
0790a568587957d03a8494ae7db12d11c17534fc
301a872ff85c695682518e570dc7b6beafb003dc
feat: allow usage outside Vue components
## Summary Allows using Vuelidate outside of Vue Components. No breaking changes or API changes. ## Details **What kind of change does this PR introduce?** (check at least one) - [ ] Bugfix - [x] Feature - [ ] Code style update - [ ] Refactor - [ ] Build-related changes - [ ] Other, please describe: ...
diff --git a/packages/vuelidate/src/index.js b/packages/vuelidate/src/index.js index b107568c..063df3f0 100644 --- a/packages/vuelidate/src/index.js +++ b/packages/vuelidate/src/index.js @@ -94,11 +94,13 @@ export function useVuelidate (validations, state, globalConfig = {}) { } let { $registerAs, $scope = Collec...
1
1
1
[{"id": "G0", "claim": "The fallback `childResults` should not be a `ref('')`; it should hold a value whose type matches what `nestedValidations` returns so the types stay unified.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vuelidate__vuelidate__880
vuelidate/vuelidate
880
defect
b25958725ea310018d571fdd718847db98277684
54623a619cdcbaf80137a1a90770fcccc53a4a45
feat(validators): add a new forEach helper, and @vuelidate/components package
## Summary This PR introduces a new npm package - `@vuelidate/components` that should hold helper components like the new `ValidateEach` along with some components like the ones in `vuelidate-error-extractor`. It also introduces a new `forEach` helper in the `@vuelidate/validators` package, that users can use for...
diff --git a/packages/components/.browserslistrc b/packages/components/.browserslistrc new file mode 100644 index 00000000..f8eb9b8c --- /dev/null +++ b/packages/components/.browserslistrc @@ -0,0 +1,4 @@ +last 2 versions +> 1% +not dead +not IE 11 diff --git a/packages/components/README.md b/packages/components/README...
1
1
0
[{"id": "G0", "claim": "The sentence \"You have to can install the `@vuelidate/components` package, in order to use `ValidateEach`.\" contains a duplicated \"can\" that should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vuepress__core__1103
vuepress/core
1,103
defect
7dae33ab2edb95343f6e11b60116cfc32f79a68b
694e1b813262f1649d5a0dd9cbaf16165eaeedc5
feat(markdown): support relative image link without `./`
Recognize relative image links not staring with `./` in markdown. BREAKING CHANGE: markdown image syntax does not support alias anymore, you should use `<img>` tag to use alias
diff --git a/docs/guide/assets.md b/docs/guide/assets.md index 4d5190e52b..7d3abb7fdb 100644 --- a/docs/guide/assets.md +++ b/docs/guide/assets.md @@ -8,6 +8,12 @@ You can reference any assets using relative URLs in your Markdown content: ![An image](./image.png) ``` +or + +```md +![An image](image.png) +``` + Thi...
3
2
1
[{"id": "G0", "claim": "The pull request should also update the documentation to cover the new relative image link syntax.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be better not to recommend, in the docs, writing image links without...
null
vuepress__core__122
vuepress/core
122
defect
70bb0668c53b984f17bdbf7b95ac8e3258034e73
7c9200003549280060e23f4e1211f4039f2eee6f
feat(markdown): support externalIcon in config and frontmatter
- [x] implementation - [x] add unit tests - [x] documentation
diff --git a/docs/reference/config.md b/docs/reference/config.md index b30eff35a7..214cca473e 100644 --- a/docs/reference/config.md +++ b/docs/reference/config.md @@ -370,6 +370,49 @@ You can disable it if you want to implement them in client side. For example, [P - Also see: - [Guide > Markdown > Syntax Extensions...
3
2
2
[{"id": "G0", "claim": "The new `externalIcon` option should be typed `string | false` instead of `boolean`, so users could specify a different icon instead of `<OutboundLink />`.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request is missing...
null
vuepress__core__1421
vuepress/core
1,421
defect
f342a86e5d8008565daf96351ec36abd5f3a2ffa
f417ba2b95f2c346f389184de7cdacf658097a63
fix: add support for custom protocol, close #1404
Note: `mailto:` and `tel:` works with `target: _blank`, so the special treatment is removed. Also chrome no longer support `ftp://` links now, so users should use a third-party ftp client.
diff --git a/ecosystem/theme-default/src/client/components/AutoLink.vue b/ecosystem/theme-default/src/client/components/AutoLink.vue index e15784a31b..ef17b96f66 100644 --- a/ecosystem/theme-default/src/client/components/AutoLink.vue +++ b/ecosystem/theme-default/src/client/components/AutoLink.vue @@ -10,7 +10,7 @@ exp...
1
1
1
[{"id": "G0", "claim": "The new test suites should also include custom protocols (e.g. the ms-windows-store:// links from #1404) in their test cases.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vuepress__core__144
vuepress/core
144
defect
952a905b75953cf25f58aa2e848e4e610ff8c640
4bb231050bc3b1a90d263c888f13caae5a43e95a
fix(markdown): decode assets link to ensure bundler can find the file
This is an issue in all VuePress versions. ```md ![中国](./中国.png) ``` should be allowed. But `markdown-it` 's default behavior will encode it to `./%E4%B8%AD%E5%9B%BD.png`, so that bundler won't be able to find the image file. I made a fix in V1 by my `vuepress-plugin-md-enhance`, but I think V2 can support ...
diff --git a/packages/@vuepress/markdown/__tests__/plugins/assetsPlugin.spec.ts b/packages/@vuepress/markdown/__tests__/plugins/assetsPlugin.spec.ts index 81cbb5e9c3..6e7ee9967a 100644 --- a/packages/@vuepress/markdown/__tests__/plugins/assetsPlugin.spec.ts +++ b/packages/@vuepress/markdown/__tests__/plugins/assetsPlug...
2
2
2
[{"id": "G0", "claim": "The `mdurl` package, newly imported by the plugin, should be listed explicitly in the markdown package's `dependencies` instead of relying on it being present transitively via the markdown-it toolchain.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
vuepress__core__1537
vuepress/core
1,537
defect
8eb722febacf8e4271fa6ad5410298f001c73509
ffe25c8ba04c9614dcd75b4b9b9f6b8f52d8c5f0
fix(markdown): fix query parsing and absolute link fallback in linksPlugin (close #1536)
Closes #1536 - Now queries are preserved instead of being removed - Absolute link is `null` when a link is relative and there is no markdown file info This PR is based on #1521
diff --git a/packages/markdown/src/plugins/linksPlugin/linksPlugin.ts b/packages/markdown/src/plugins/linksPlugin/linksPlugin.ts index 482161b5a6f..0c7ca1638c2 100644 --- a/packages/markdown/src/plugins/linksPlugin/linksPlugin.ts +++ b/packages/markdown/src/plugins/linksPlugin/linksPlugin.ts @@ -1,4 +1,4 @@ -import { i...
1
1
0
[{"id": "G0", "claim": "The pull request's changes to the linksPlugin need its test cases updated.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vuepress__core__1547
vuepress/core
1,547
defect
8b1ab674136cd4d4672b0c26cc9be008236a9efa
2ef0e94f7b15777306012fd29daff3aeee096ad5
feat(core): support permalink: null in frontmatter to disable permalink
Now users can set permalink: null to disable global `permalinkPattern` affect on certain pages. This is more natural then setting permalink or permalinkPattern to page path in frontmatter.
diff --git a/packages/core/src/page/resolvePagePermalink.ts b/packages/core/src/page/resolvePagePermalink.ts index de62e61681..b67d257cf8 100644 --- a/packages/core/src/page/resolvePagePermalink.ts +++ b/packages/core/src/page/resolvePagePermalink.ts @@ -25,9 +25,15 @@ export const resolvePagePermalink = ({ return...
1
1
1
[{"id": "G0", "claim": "The pull request needs its unit tests updated to cover the new permalink-handling behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vuepress__core__1564
vuepress/core
1,564
defect
e08e81f9bc8f6801d6d9140bf893bb296aa04ab6
d378e34aa95742db66c62608cae29a1ca302fcee
feat(core): allow non-default-export client config file
do not require `export default {}` with client config file useful for: - users that only want to add this file for plugin customization purpose - plugins which only need to add some styles or library imports on the client side with this
diff --git a/packages/core/src/app/prepare/prepareClientConfigs.ts b/packages/core/src/app/prepare/prepareClientConfigs.ts index 6803da2296..59bb1f5624 100644 --- a/packages/core/src/app/prepare/prepareClientConfigs.ts +++ b/packages/core/src/app/prepare/prepareClientConfigs.ts @@ -11,12 +11,14 @@ export const prepareC...
2
1
1
[{"id": "G0", "claim": "Better to check whether the client config file has a default export on the node side (e.g. by checking the file content for the `export default` keyword as v1 did) instead of filtering non-default exports out in the generated client code.", "category": "design", "verdict": "opposed", "priority":...
null
vuepress__core__1620
vuepress/core
1,620
defect
a5ce1e7b43f7808c590ce7b5432c54b4b6b76f38
36a267047cd8cf33afd173979dc38f47e844f5a3
feat(client): add onContentUpdated composition API
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following <!-- (put an "X" next to an item) --> - [x] Read the [Contributing Guidelines](https://github.com/vuepress/core/blob/main/CONTRIBUTING.md). - [x] Provide a description in this PR that addresses **what** the P...
diff --git a/packages/client/src/components/Content.ts b/packages/client/src/components/Content.ts index e58b46214d..41fb0fdc7b 100644 --- a/packages/client/src/components/Content.ts +++ b/packages/client/src/components/Content.ts @@ -1,5 +1,5 @@ import { computed, defineAsyncComponent, defineComponent, h } from 'vue'...
1
1
1
[{"id": "G0", "claim": "E2e tests are required for this pull request before it can be merged.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vuepress__core__1648
vuepress/core
1,648
defect
523e202018ed0cb4bf8d0bbcf5879abc07bf1c41
8433bd14dfdeea61b64145c9d4cfaf08034dd6c1
fix: make alias can be overridden properly
<!-- Thank you for contributing! --> ### What is the purpose of this pull request? <!-- (put an "X" next to an item) --> - [x] Bug fix - [ ] New feature - [ ] Documentation update - [ ] Other ### Description Vite/Webpack current has issues handling alias, alias resolution may differ with how they defined...
diff --git a/e2e/docs/.vuepress/config.ts b/e2e/docs/.vuepress/config.ts index 363ef38117..fe211e0be3 100644 --- a/e2e/docs/.vuepress/config.ts +++ b/e2e/docs/.vuepress/config.ts @@ -83,4 +83,10 @@ export default defineUserConfig({ }, plugins: [fooPlugin], + + alias: { + '@dir/a.js': path.resolve(__dirname,...
4
3
0
[{"id": "G0", "claim": "A comment should be added to the e2e alias config to indicate that the alias entries are intentionally ordered by key length so that longer aliases override shorter ones.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The f...
null
vuepress__core__1673
vuepress/core
1,673
defect
3d65ecd4ba2da679c73f535154d2fbe3a11bb4b5
f5b6bdcd716af1af2c841ca818246342635375d2
fix(core): page creation should respect page options
See https://github.com/vuepress-theme-hope/vuepress-theme-hope/issues/5193 https://github.com/vuepress-theme-hope/vuepress-theme-hope/issues/5188 Basically, `createPage` shall respect `path` in pageOptions, giving correct pageLocale and lang
diff --git a/packages/core/src/page/createPage.ts b/packages/core/src/page/createPage.ts index aed67e2aec..2b7ed6c9d5 100644 --- a/packages/core/src/page/createPage.ts +++ b/packages/core/src/page/createPage.ts @@ -60,7 +60,11 @@ export const createPage = async ( const date = resolvePageDate({ frontmatter, filePathR...
3
1
1
[{"id": "G0", "claim": "The comments and JSDoc that say the page path is inferred according to the file path are now misleading since the function can also use an explicitly provided path from options, and should be updated to say it resolves the page path from options or infers it from the file path.", "category": "do...
null
vuepress__core__1676
vuepress/core
1,676
defect
4d9ef001be12deefd4bfa951208879a0b87ff9f2
ca2995ccf5c3d40a0ac55a4eff8d6b88f7815844
feat(core): optimize default value handling for `options.locales`
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following <!-- (put an "X" next to an item) --> - [ ] Read the [Contributing Guidelines](https://github.com/vuepress/core/blob/main/CONTRIBUTING.md). - [ ] Provide a description in this PR that addresses **what** the P...
diff --git a/packages/core/src/app/resolveAppOptions.ts b/packages/core/src/app/resolveAppOptions.ts index 756227ffe5..635e3d380a 100644 --- a/packages/core/src/app/resolveAppOptions.ts +++ b/packages/core/src/app/resolveAppOptions.ts @@ -1,4 +1,5 @@ import { createRequire } from 'node:module' +import { isEmptyObject ...
1
1
1
[{"id": "G0", "claim": "The change only falls back to a root locale when `locales` is entirely empty, but since / and /404.html belong to locale / (and plugins may generate pages like /plugin.html), the code should ensure a root locale / always exists in `locales` even when it is non-empty, with its lang inferred from ...
null
vuepress__core__1696
vuepress/core
1,696
defect
c9a9764f27dd5e349a37ec3bc628ae4dfc498103
2317263631db6854d796ffdfda79d2a046d41dce
refactor(cli): extract processPagePatterns and fix ignore pattern handling
### Before submitting the PR, please make sure you do the following - [X] Read the [Contributing Guidelines](https://github.com/vuepress/core/blob/main/CONTRIBUTING.md). - [X] Provide a description in this PR that addresses **what** the PR is solving. If this PR is going to solve an existing issue, please reference...
diff --git a/packages/cli/src/commands/dev/index.ts b/packages/cli/src/commands/dev/index.ts index 1ea0673aa9..cf198b43ef 100644 --- a/packages/cli/src/commands/dev/index.ts +++ b/packages/cli/src/commands/dev/index.ts @@ -3,5 +3,6 @@ export * from './handlePageAdd.js' export * from './handlePageChange.js' export * f...
1
1
1
[{"id": "G0", "claim": "processPagePatterns does not add the base directory pattern for ignore patterns that already end with `/**` (e.g. `!dist/**`), so `ignoreMatcher('dist')` will not match and chokidar will still traverse the directory; the test should also assert the base pattern (e.g. `dist`) is included so regre...
null
vuestorefront__vue-storefront__4714
vuestorefront/vue-storefront
4,714
defect
faec76fba9c2876efeacca965bdc5bc1ff4b8bfa
b37a6b83342d200a20688089038f7ef451aaa693
Next: CLI - Create Project
closes #4703 Command: `yarn cli init <projectName>` ┆Issue is synchronized with this [Jira Story](https://vsf.atlassian.net/browse/NEXT-212) by [Unito](https://www.unito.io/learn-more)
diff --git a/package.json b/package.json index 33730d504f..f4992bce8c 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,8 @@ "dev:sp": "cd packages/shopify/theme && yarn dev", "link-packages": "lerna link --force-local", "lint": "eslint . --ext .js,.ts,.vue", - "release": "cd scripts && yarn r...
3
3
3
[{"id": "G0", "claim": "filrak thinks that if no projectName is provided, the CLI could ask for it as a first inquirer question (like vue cli) instead of only erroring out.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "filrak thinks it would be safer to...
null
vuestorefront__vue-storefront__4810
vuestorefront/vue-storefront
4,810
defect
7be92da29a5b90f2d1f60a2ffabba3a98768c638
cc0b1c9db7a4ad424c87132dcbea2002a2224006
User Subcomposables
* [x] Shipping Composable * [x] Billing Composable * [x] tests Close #4809 ┆Issue is synchronized with this [Jira Story](https://vsf.atlassian.net/browse/NEXT-255) by [Unito](https://www.unito.io/learn-more)
diff --git a/packages/core/core/src/factories/useUserBillingFactory.ts b/packages/core/core/src/factories/useUserBillingFactory.ts new file mode 100644 index 0000000000..5bfb03c694 --- /dev/null +++ b/packages/core/core/src/factories/useUserBillingFactory.ts @@ -0,0 +1,96 @@ +import { Ref, computed } from '@vue/composi...
5
5
4
[{"id": "G0", "claim": "The factoryParams functions should take a single params object (like in other factories) so that adding or reordering arguments later is not a breaking change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The factoryParams funct...
null
vuestorefront__vue-storefront__4847
vuestorefront/vue-storefront
4,847
defect
d78ddbcace9ec96085418b62baae5b377fc316ed
23ee3e4ba8d15dbca496c22a68acde8170c040bd
Rename "useReviews" to "useReview" and use it in CT
### Related Issues Closes #4800 ### Upgrade Notes and Changelog - [ ] No upgrade steps required (100% backward compatibility and no breaking changes) - [x] I've updated the [Upgrade notes](https://github.com/DivanteLtd/vue-storefront/blob/develop/docs/guide/upgrade-notes/README.md) and [Changelog](https://github....
diff --git a/packages/commercetools/api-client/src/api/addReview/index.ts b/packages/commercetools/api-client/src/api/addReview/index.ts new file mode 100644 index 0000000000..7fb2e83437 --- /dev/null +++ b/packages/commercetools/api-client/src/api/addReview/index.ts @@ -0,0 +1,28 @@ +const addReview = () => { + retur...
5
4
2
[{"id": "G0", "claim": "The addReview API function should be async and declare a return type, probably Promise<Review[]>, though the reviewer notes this can be skipped for now until the real API client is implemented.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
vuestorefront__vue-storefront__4930
vuestorefront/vue-storefront
4,930
defect
a1aeb307ec4b52f2c6223f7af65b24414fe71f0e
6efb9cfdd294c2005cdea9495cffc8ec286f65f5
Next: Token in sessionStorage & removing onUnmounted
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #4928 ### Short Description and Why It's Useful <!-- describe in a few words what is this Pull Request changing and why it's useful --> Storing payment token in sessionStorage and removing it in `onUnmounted` ### ...
diff --git a/packages/checkout-com/__tests__/useCkoCard.spec.ts b/packages/checkout-com/__tests__/useCkoCard.spec.ts index b43b1c5728..fdcfcbd5b0 100644 --- a/packages/checkout-com/__tests__/useCkoCard.spec.ts +++ b/packages/checkout-com/__tests__/useCkoCard.spec.ts @@ -29,8 +29,13 @@ jest.mock('../src/configuration', ...
1
1
0
[{"id": "G0", "claim": "Clarify when the onUnmounted(removeTransactionToken) hook gets triggered (questioning automatic token removal on unmount).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vuestorefront__vue-storefront__5077
vuestorefront/vue-storefront
5,077
defect
1bf6905b56160abf11134490f6042dd30e72bc9f
35a8d22a5a0479a821e2569a6c1a8f79c98c28aa
Wishlist SSR Core - Fix
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #5076 ### Short Description and Why It's Useful <!-- describe in a few words what is this Pull Request changing and why it's useful --> Fixes the problem and unlocks Wishlist CT Enterprise extension ### Which Envi...
diff --git a/packages/core/core/__tests__/factories/useWishlistFactory.spec.ts b/packages/core/core/__tests__/factories/useWishlistFactory.spec.ts index f7564b50a3..ff8601a743 100644 --- a/packages/core/core/__tests__/factories/useWishlistFactory.spec.ts +++ b/packages/core/core/__tests__/factories/useWishlistFactory.s...
1
1
1
[{"id": "G0", "claim": "loadWishlist sets `loading.value = true` before the already-loaded check, so loading is invoked and left turned on when a wishlist is already loaded; the check `if (wishlist.value) return;` should come before `loading.value = true;` as suggested.", "category": "correctness", "verdict": "supporte...
null
vuestorefront__vue-storefront__5352
vuestorefront/vue-storefront
5,352
defect
5c4e902d1aaed5482a893a10b01a817a37bf7918
1102fd51e3204fd2a52c7fed44be4655c34c34ed
Totals localstorage sync
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #4733 ### Short Description and Why It's Useful <!-- describe in a few words what is this Pull Request changing and why it's useful --> Currently, we are synchronizing the current cart between carts using lo...
diff --git a/CHANGELOG.md b/CHANGELOG.md index aa7496023c..8ea12bd09e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added states.json in core/i18n/resource (#4531) - Added phone validation helper (#4980) - Configurabl...
2
2
0
[{"id": "G0", "claim": "Rename the misleadingly named cache-handler exports to reflect that they are not factories (e.g. plugins), and drop the unused Vue/global-object parameter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename syncTotalsWhenLocalS...
null
vuestorefront__vue-storefront__5440
vuestorefront/vue-storefront
5,440
defect
2f3242c192c113a4a28e7cb4667be45551e91f2d
5e3e65a2b86012274ab7a6da32bbe2061eb493a3
feat: Unit tests for core filters
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #5036 ### Short Description and Why It's Useful I've added unit tests for core filters like: - capitalize, - product-messages, - strip-html, - html-decode, - index, - date, - price ### Screen...
diff --git a/core/filters/product-messages.ts b/core/filters/product-messages.ts index 2442a66f4b..2e6d0a8350 100644 --- a/core/filters/product-messages.ts +++ b/core/filters/product-messages.ts @@ -3,7 +3,7 @@ */ export function formatProductMessages (messages: Record<string, any>): string { const msgs = [] - f...
6
6
2
[{"id": "G0", "claim": "The mocked `once` helper should be implemented as `jest.fn((a, b) => b())` so that `dayjs.extend(dayjsLocalizedFormat)` is actually invoked, which could achieve 100% coverage.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ne...
null
vuestorefront__vue-storefront__5496
vuestorefront/vue-storefront
5,496
defect
08d37eac32aaf292f32765847d6cc6bcc8f1a871
4cc1793e0822fbc866017b2203977c6f8b3f99cf
Unicode alpha field validation
### Related Issues closes #5340 ### Short Description and Why It's Useful I have changed regex in unicodeAlpha validator helper and added some tests. ### Screenshots of Visual Changes before/after (if There Are Any) <!-- if you made any changes in the UI layer please provide before/after screenshots --> ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 09552e8080..650cc54215 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed `category-next/loadCategoryProducts` and `category-next/loadMoreCategoryProducts` module actions ...
1
1
1
[{"id": "G0", "claim": "The rewritten unicodeAlpha regex is not a proper solution: it must accept names with special characters like 'Łukasz' (the issue's use case) while still rejecting characters like '$'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vuestorefront__vue-storefront__5532
vuestorefront/vue-storefront
5,532
defect
59cd2cde2825010331eda94ccfed49f5c7b9b4f0
dc6d246a246f1cbf148a7895786c6ab4efd36b98
Unit test for AsyncDataLoader
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #5051 ### Short Description and Why It's Useful <!-- describe in a few words what is this Pull Request changing and why it's useful --> ### Screenshots of Visual Changes before/after (if There Are Any...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e4e4497838..870fd9424a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Check if the variable backendPaymentMethods is iterable before the for...of loop - @rozzilla [(#5289)](...
6
6
3
[{"id": "G0", "claim": "The inline filter condition in flush should be extracted into a well-named const so the code is understandable later.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests named 'returns 0 actions to execute' and 'retu...
null
vuestorefront__vue-storefront__5594
vuestorefront/vue-storefront
5,594
defect
9e44df0b220db92e0377284b146495c1d5108fb0
c1f14df8f2ac7a910f49e1dafffb80293690ac71
Bug/naming convention for isOnWishlist and IsOnCart
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> Closes #5592 ### Short Description and Why It's Useful <!-- describe in a few words what is this Pull Request changing and why it's useful --> A change in the naming convention from isOnWishlist and IsOnCart to ...
diff --git a/packages/boilerplate/composables/src/useCart/index.ts b/packages/boilerplate/composables/src/useCart/index.ts index 64d340807f..93615f6a6b 100644 --- a/packages/boilerplate/composables/src/useCart/index.ts +++ b/packages/boilerplate/composables/src/useCart/index.ts @@ -51,8 +51,8 @@ const params: UseCartFa...
4
4
2
[{"id": "G0", "claim": "The migration guide packages/core/docs/migrate/projects-2.2.0.md should not be modified by this pull request, because it is the migration guide for the previous version.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The chan...
null
vuestorefront__vue-storefront__5612
vuestorefront/vue-storefront
5,612
defect
c4ddf1e16dd3e1ba2550c88e18fdb33b43bd5928
fd916071eea696f56782b0e5007554ab801f3440
Add support for async hooks & unit tests
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #4940 ### Short Description and Why It's Useful <!-- describe in a few words what is this Pull Request changing and why it's useful --> I have created a new mutator hook called `createMutatorHookAsync` (sam...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e8266d6e31..88ce2e2c8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Unit Tests for Core filters - @lukaszjedrasik (#5036) - Added information about i18n & Unit tests in m...
15
15
1
[{"id": "G0", "claim": "The new async mutator hook factory should be named `createAsyncMutatorHook` instead of `createMutatorHookAsync`.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The change replacing forEach with an index-based for loop in createMut...
null
vuestorefront__vue-storefront__5628
vuestorefront/vue-storefront
5,628
defect
5f2f0968ba5cc22799eedd460be57cf4907c2eec
caae59a24c10eca6af2a7694c92fdcb8027fbcd1
feat: SfSelect for State
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #5618 ### Short Description and Why It's Useful <!-- describe in a few words what is this Pull Request changing and why it's useful --> ### Screenshots of Visual Changes before/after (if There Are Any...
diff --git a/packages/commercetools/composables/src/useUserBilling/index.ts b/packages/commercetools/composables/src/useUserBilling/index.ts index f8b36ad865..88441878f7 100644 --- a/packages/commercetools/composables/src/useUserBilling/index.ts +++ b/packages/commercetools/composables/src/useUserBilling/index.ts @@ -1...
12
12
0
[{"id": "G0", "claim": "The locally duplicated makeId function in useUserBilling/index.ts should be made a shared helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The watch condition resetting form.state in BillingAddressForm.vue should be...
null
vuestorefront__vue-storefront__5839
vuestorefront/vue-storefront
5,839
defect
c9961cbe9be69f9b31ecd14fb16b43dc5da56b0a
fd4e192b2fa77a05bd6d5d891657f3ba13e132cf
E2e tests product details page
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #5775 ### Short Description of the PR <!-- describe in a few words what is this Pull Request changing and why it's useful --> Adds e2e tests for product details page; Tests checks whether product can be pr...
diff --git a/.github/workflows/run-e2e-regression.yml b/.github/workflows/run-e2e-regression.yml index 199f47db49..7ed26d2262 100644 --- a/.github/workflows/run-e2e-regression.yml +++ b/.github/workflows/run-e2e-regression.yml @@ -37,6 +37,7 @@ jobs: with: start: yarn dev:${{ matrix.package }} ...
1
1
0
[{"id": "G0", "claim": "In getProductPropertiesData, the value should be assigned without the redundant template literal: data[...] = property.children()[1].textContent.trim();", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vuestorefront__vue-storefront__5850
vuestorefront/vue-storefront
5,850
defect
f9681a774502200f6c267bfd2c3403d09a8d2e02
96e41adf7e50a66738ece11079b611854b2b49ad
fix: Order history pagination
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #4599 ### Short Description of the PR <!-- describe in a few words what is this Pull Request changing and why it's useful --> - Fixed pagination support (user can see more than 20 orders) - Added new user ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fc21c978a4..c998730fab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Multi-tab cart-sync in multi-store environment - @cewald (#5711, #5732) - Incorrect load of default ad...
4
4
2
[{"id": "G0", "claim": "In onBottomScroll, the increment should be written as `this.pagination.current++;` instead of `++this.pagination.current;`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should use `expect` to assert the two eff...
null
vuestorefront__vue-storefront__5973
vuestorefront/vue-storefront
5,973
defect
66e2796cbd90a8b58f04944c440f1957a803f162
8e758cee7e4fe9fc0c2159f3c27bcd2ca66a2e09
Fix wrong prices after coupon in Cart/Checkout
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #4460 ### Short Description of the PR <!-- describe in a few words what is this Pull Request changing and why it's useful --> - moved product prices calculations logic to a new helper called`getProductPrice`...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 35a041ef80..5176286c71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changing regex responsible for UnicodeAlpha validation and added unit tests - @lukaszjedrasik ([#5340](...
3
3
0
[{"id": "G0", "claim": "Rename the first test to 'returns empty prices when product object is falsy' so the name matches the test's use of null.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the test to 'returns prices when displayItemDi...
null
vuestorefront__vue-storefront__5975
vuestorefront/vue-storefront
5,975
defect
66e2796cbd90a8b58f04944c440f1957a803f162
3e43a1fb11f2c2704a437b0dcdb0f41d37fa88dc
Bugfix/product deletion #5974
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #5974 ### Short Description of the PR Fix the issue of product deletion from cart on logout->login on "out of stock" error <!-- describe in a few words what is this Pull Request changing and why it's useful --...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 35a041ef80..adcf507b50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changing regex responsible for UnicodeAlpha validation and added unit tests - @lukaszjedrasik ([#5340](...
1
1
0
[{"id": "G0", "claim": "The Logger.log line is missing the space after 'Restoring qty after error' and has a stray trailing comma before the closing parenthesis, and should be rewritten as the suggestion block proposes.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vuestorefront__vue-storefront__6133
vuestorefront/vue-storefront
6,133
defect
5026e1c717d266895993c3fa34d688962fa1e083
b1fa7760da908c6ef9076753a112711ca89cf339
Fix #6132/orders total
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #6132 ### Short Description of the PR <!-- describe in a few words what is this Pull Request changing and why it's useful --> ### Screenshots of Visual Changes before/after (if There Are Any) <!-- if y...
diff --git a/packages/boilerplate/composables/src/getters/orderGetters.ts b/packages/boilerplate/composables/src/getters/orderGetters.ts index c167ac2aee..e93ea674cb 100644 --- a/packages/boilerplate/composables/src/getters/orderGetters.ts +++ b/packages/boilerplate/composables/src/getters/orderGetters.ts @@ -33,6 +33,...
1
1
1
[{"id": "G0", "claim": "The getOrders query added by the pull request does not return the `offset` and `count` fields that the pull request put in the TypeScript getter type below.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vuestorefront__vue-storefront__6182
vuestorefront/vue-storefront
6,182
defect
9e84272fa93bb615183edd44ce4eb5f788321c3c
aa74a74b5e8bccf0dc937ec9759470824fe3f358
[FIX]: Search products by skus error
### Related Issues <!-- Put related issue number which this PR is closing. For example #123 --> closes #6181 ### Short Description of the PR <!-- describe in a few words what is this Pull Request changing and why it's useful --> Fixes error when using `skus` to search products in `useProduct` composable ```...
diff --git a/packages/commercetools/api-client/__tests__/helpers/search.spec.ts b/packages/commercetools/api-client/__tests__/helpers/search.spec.ts index a9285d7f68..83956f3614 100644 --- a/packages/commercetools/api-client/__tests__/helpers/search.spec.ts +++ b/packages/commercetools/api-client/__tests__/helpers/sear...
2
2
0
[{"id": "G0", "claim": "The changelog entry description 'Fixes useProduct search by skus' should be replaced with a more descriptive sentence stating what the fix does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "buildProductWhere should push a...
null
vuestorefront__vue-storefront__6467
vuestorefront/vue-storefront
6,467
defect
9965e6ff16f5d1b6080a834c1b473ecc0df0a1aa
3b7ab06988cdcb4883ebec5cd40260fe73e00b4e
feat(os-181): add server access token
<!--- Provide a general summary of your changes in the Title above --> ## Description <!-- describe in a few words what is this Pull Request changing and why it's useful --> Add server access token ## Related Issue <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a ...
diff --git a/packages/commercetools/api-client/__tests__/links/authLinks.spec.ts b/packages/commercetools/api-client/__tests__/links/authLinks.spec.ts index fad776cefe..47ba63e77e 100644 --- a/packages/commercetools/api-client/__tests__/links/authLinks.spec.ts +++ b/packages/commercetools/api-client/__tests__/links/aut...
20
17
0
[{"id": "G0", "claim": "The store is already loaded in layouts/default.vue, so the load() call this PR adds in StoreLocaleSelector.vue is redundant and the changes to this file should be reverted.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The u...
null
vuestorefront__vue-storefront__6680
vuestorefront/vue-storefront
6,680
defect
8d3e665e7fa3bbb1c1b93c325d9f6b84fec56b47
847a49a1e3bbc9916732f46ffb8f05233de6aaee
fix: get api host from middleware url
<!--- Provide a general summary of your changes in the Title above --> ## Description <!-- describe in a few words what is this Pull Request changing and why it's useful --> Base url for middleware is no longer computed and is not based on headers anymore. Now `middlewareUrl` is used instead and this config opti...
diff --git a/packages/core/core/__tests__/factories/proxyUtils.spec.ts b/packages/core/core/__tests__/factories/proxyUtils.spec.ts deleted file mode 100644 index 0a78f9d38e..0000000000 --- a/packages/core/core/__tests__/factories/proxyUtils.spec.ts +++ /dev/null @@ -1,81 +0,0 @@ - -import * as utils from './../../src/u...
8
7
0
[{"id": "G0", "claim": "The changelog entry's breaking-change sentence should be rewritten to: \"The `middlewareUrl` property in the `nuxt.config.js` file is now required. Please follow the instruction in the Migration Guide.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
vuestorefront__vue-storefront__6815
vuestorefront/vue-storefront
6,815
defect
f95f369a4c0e4abb3108d813d62fa89dfc414bec
3bb8806b9c8107549ee8d78bd05d3ef3542f93a1
fix: integration api call security issue
## Description During debugging another issue with CT env, I found out that it's pretty easy to take down our middleware.e.g. let's get a real endpoint like: POST https://sapcc-dev.europe-west1.gcp.storefrontcloud.io/api/sapcc/addCartEntry . Wheresapcc is the integration of our middleware but let's send a request to...
diff --git a/packages/middleware/package.json b/packages/middleware/package.json index e2ddb5ec626..d359210cdcb 100644 --- a/packages/middleware/package.json +++ b/packages/middleware/package.json @@ -1,6 +1,6 @@ { "name": "@vue-storefront/middleware", - "version": "2.7.1", + "version": "2.7.2", "description":...
4
4
1
[{"id": "G0", "claim": "Simplify the guard in createServer.ts: check only that the integration exists, send the 404 message and return early, instead of wrapping the destructuring in try/catch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Cover the new...
null
vuetifyjs__vuetify__20962
vuetifyjs/vuetify
20,962
defect
fac2f99b2e87cb8fb5435e1b81da4327a38768bf
b62554c923db2a01b7db712f61ab5901634418a9
fix(nested): don't toggle disabled children
fixes #20386 <!-- MAKE SURE TO READ THE CONTRIBUTING GUIDE BEFORE CREATING A PR https://vuetifyjs.com/getting-started/contributing Provide a general summary of your changes in the title above Keep the title short and descriptive, as it will be used as a commit message PR titles should follow conventional-chan...
diff --git a/packages/vuetify/src/components/VList/VListGroup.tsx b/packages/vuetify/src/components/VList/VListGroup.tsx index 2d94ce78e31..33f8393ed7c 100644 --- a/packages/vuetify/src/components/VList/VListGroup.tsx +++ b/packages/vuetify/src/components/VList/VListGroup.tsx @@ -39,6 +39,7 @@ export const makeVListGro...
3
1
0
[{"id": "G0", "claim": "A parent that is selected while some of its children are disabled and unselected should perhaps show as indeterminate rather than 'on', since not all the children are actually selected.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
vuetifyjs__vuetify__21359
vuetifyjs/vuetify
21,359
defect
03267039d5ac54372257e956ea886dc052a0ac71
c69acea49ac20937327a9ba26443dbe37e3520bd
feat(VTextField, VTextarea): suppress browser's autocomplete
## Description - expose `autocomplete` as prop so it can be used in `defaults: { global: { ... } }` - detect custom value `suppress` to append unique suffix to field's `name` and help developers prevent field suggestions on browsers that ignore `autocomplete='off'` - supports SSG by updating generated `name` on fo...
diff --git a/packages/vuetify/src/components/VTextField/VTextField.tsx b/packages/vuetify/src/components/VTextField/VTextField.tsx index c0aa8308b300..2293d999ecd2 100644 --- a/packages/vuetify/src/components/VTextField/VTextField.tsx +++ b/packages/vuetify/src/components/VTextField/VTextField.tsx @@ -7,6 +7,7 @@ impor...
7
7
3
[{"id": "G0", "claim": "reloadTrigger should use shallowRef instead of ref since it holds a plain number.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The autocomplete prop should be moved into reusable props (a propsFactory) like other composable...
null
vuetifyjs__vuetify__21378
vuetifyjs/vuetify
21,378
defect
bf99b2ef1c50b9547bb5c27e55c82b54d56ffb41
6559e15e8ff35a717b3c8180991e86e30121ffd4
fix(date): week number for DST
## Description - [x] similar change in `createRange` from #21450 fixes #21366 ## Markup: ```vue <template> <v-app> <v-container max-width="1200"> <div class="d-flex ga-6"> <!-- open DevTools » Sensors --> <!-- change Location to Berlin --> <!-- reload the page --> ...
diff --git a/packages/vuetify/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts b/packages/vuetify/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts index 8445c246690e..4a760661e6d7 100644 --- a/packages/vuetify/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts +++ b/packages/vuetify...
2
1
0
[{"id": "G0", "claim": "Consider adding a comment explaining why wrapping the date values with endOfDay and startOfDay is necessary to correctly handle DST transitions in getWeek.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Selecting a range sp...
null
vuetifyjs__vuetify__21444
vuetifyjs/vuetify
21,444
defect
9514f92b73a2ede0023150ddbffd680dcf1bfa4d
88de1ff6c7c2a17c424547c27ec565e98746e5e2
fix(VList): Use proper accessibility attributes
<!-- MAKE SURE TO READ THE CONTRIBUTING GUIDE BEFORE CREATING A PR https://vuetifyjs.com/getting-started/contributing Provide a general summary of your changes in the title above Keep the title short and descriptive, as it will be used as a commit message PR titles should follow conventional-changelog-angular: ...
diff --git a/packages/api-generator/src/locale/en/VList.json b/packages/api-generator/src/locale/en/VList.json index 961e7c4f0fc..17ad473e76d 100644 --- a/packages/api-generator/src/locale/en/VList.json +++ b/packages/api-generator/src/locale/en/VList.json @@ -1,7 +1,7 @@ { "props": { "itemType": "Designates t...
2
1
1
[{"id": "G0", "claim": "Changing the default role of v-list from `listbox` to `list` may be a breaking change for consumers.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether there would be any benefit in using `toRef` instead of `computed` for...
null
vuetifyjs__vuetify__21489
vuetifyjs/vuetify
21,489
defect
117443afbe676d5d31ab20b4a549cb7405994493
191c09bac3bb1fd41c21a4731428cb48063a8017
feat(VNumberInput): custom decimal separator
## Description (reopened #21391) - rebased to `dev` - additional tests for `min-fraction-digits` resolves #20254 ## Markup: ```vue <template> <v-app theme="dark"> <v-container max-width="400"> <v-number-input v-model="num" :min-fraction-digits="minFractionDigits" ...
diff --git a/packages/api-generator/src/locale/en/VNumberInput.json b/packages/api-generator/src/locale/en/VNumberInput.json index 8d9cbf98a20..a7e112a3bb8 100644 --- a/packages/api-generator/src/locale/en/VNumberInput.json +++ b/packages/api-generator/src/locale/en/VNumberInput.json @@ -1,6 +1,7 @@ { "props": { ...
4
4
1
[{"id": "G0", "claim": "The decimal separator should be based on the locale rather than defaulting to a hardcoded '.'.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The decimalSeparator prop description in the API locale file should not state a default,...
null
vuetifyjs__vuetify__21736
vuetifyjs/vuetify
21,736
defect
a17b3d171e1bd78c78682d65b9edce093c66e707
1be210405521704b46bb36120f063bdbd6d04df9
feat(mask): create useMask composable
Related to #21714 ## Description Create a useMask composable for working with masks ## Markup: ```vue <template> <v-container class="pa-md-12"> <h3>Mask: {{ maskString }}</h3> <br> isValid: {{ mask.test(string) }} <br> isValid Exact: {{ mask.test(string, { isExact: true }) }} ...
diff --git a/packages/api-generator/src/locale/en/useMask.json b/packages/api-generator/src/locale/en/useMask.json new file mode 100644 index 00000000000..11e37080265 --- /dev/null +++ b/packages/api-generator/src/locale/en/useMask.json @@ -0,0 +1,7 @@ +{ + "exposed": { + "test": "Check if a string is valid for the...
1
1
0
[{"id": "G0", "claim": "The method name `unapply` reads oddly and adds cognitive load, so it should be renamed (to `unmask` or `remove`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vuetifyjs__vuetify__22117
vuetifyjs/vuetify
22,117
defect
6bb3fce6a165da8cd895ceba66690af3ab7422ef
069094995bdaf925e0c7103729d8e3b4e54a3e49
feat(icon-set): add `mdi-unocss` icon set
## Description This PR adds a new icon set for MDI using UnoCSS.
diff --git a/packages/docs/src/pages/en/features/icon-fonts.md b/packages/docs/src/pages/en/features/icon-fonts.md index 014cd52ae40..e18e1e58259 100644 --- a/packages/docs/src/pages/en/features/icon-fonts.md +++ b/packages/docs/src/pages/en/features/icon-fonts.md @@ -202,6 +202,51 @@ Use this tool to search for any Ma...
3
2
0
[{"id": "G0", "claim": "Add a note that the UnoCSS icons preset prefix must stay the default `i-`, otherwise the icon set won't work.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Include the minimal UnoCSS config (presetIcons) example inline in ...
null
vuetifyjs__vuetify__22134
vuetifyjs/vuetify
22,134
defect
5e6c790a98038ab48e1ebc3bb3f25bbb86bb5651
36edb63cc269316e2abb96ca90f52d695ed8f651
feat(VNumberInput): add `grouping` prop
## Description resolves #22453 - introduces `grouping` to enable fully localized format - preserves grouping while typing, pasting, cutting and deleting - replaces Persian and Bengali numerals back to [0..9] digits - reacts to locale changes ## Markup: ```vue <template> <v-app theme="dark"> <v-c...
diff --git a/packages/api-generator/src/locale/en/VNumberInput.json b/packages/api-generator/src/locale/en/VNumberInput.json index dc8e766c1e2..632e3d63d8d 100644 --- a/packages/api-generator/src/locale/en/VNumberInput.json +++ b/packages/api-generator/src/locale/en/VNumberInput.json @@ -2,6 +2,8 @@ "props": { ...
1
1
0
[{"id": "G0", "claim": "The fallback group separator should be a space (per the BIPM recommendation on digit grouping) instead of a comma, to stay less confusing when the separator cannot be inferred from the locale.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vuetifyjs__vuetify__22255
vuetifyjs/vuetify
22,255
defect
22f666d9288c784c9ee29a637fbec2c3f268c731
ada8743dbfaa8790bf1e9b99ea91f76ff559626d
fix(VTreeview): faster interactions with large trees
fixes #21720 Introduces `items-registration` prop - `"props" | "render"` (set to `"render"` for backward compatibility). When set to `"props"`, registration of nested items won't require rendering `VListItem`s. > Note: Change to `"props"` (as default) should be considered for v4.0.0. ## Markup: ```vue <te...
diff --git a/packages/api-generator/src/locale/en/VList.json b/packages/api-generator/src/locale/en/VList.json index 6defd3b1c3e..2f417a09fdd 100644 --- a/packages/api-generator/src/locale/en/VList.json +++ b/packages/api-generator/src/locale/en/VList.json @@ -6,6 +6,7 @@ "disabled": "Puts all children inputs into...
3
2
0
[{"id": "G0", "claim": "return-object is currently broken: with the default items-registration='render' the id at nested.ts is the entire raw object, and so are the keys in the children and parents maps.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim...
null
vuetifyjs__vuetify__22672
vuetifyjs/vuetify
22,672
defect
1f6cb52ab159118fba6779b7694bf65133e1f9ee
3d0530cec60ba663f1d33574e4759d4ac49b513e
refactor: migrate observer composables to @vuetify/v0
## Summary - Replace internal `useIntersectionObserver`, `useResizeObserver`, and `useMutationObserver` with `useElementIntersection`, `useElementSize`, and `useResizeObserver` from `@vuetify/v0@^0.1.5` - Remove 3 composables, 2 test files, and the `@types/resize-observer-browser` dev dependency - Move `MutationOpti...
diff --git a/packages/docs/src/components/home/Common/Marquee.vue b/packages/docs/src/components/home/Common/Marquee.vue index 87b7c693899..b692daf18ec 100644 --- a/packages/docs/src/components/home/Common/Marquee.vue +++ b/packages/docs/src/components/home/Common/Marquee.vue @@ -1,6 +1,6 @@ <template> - <div :ref="c...
1
1
1
[{"id": "G0", "claim": "VSnackbarQueue regressed: after clearing the first batch, remaining snackbars no longer move up when promises resolve, because setSize is only called on width changes and height changes alone are ignored.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
vueuse__vueuse__4158
vueuse/vueuse
4,158
defect
0ec82c0b1737d008c6971c0b83f6320bbb76ad88
89118e3eb5f843e230d4f99c37bc281f33e2725c
feat(useStorageAsync): add `onReady` option and Promise return
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/packages/core/useStorageAsync/index.md b/packages/core/useStorageAsync/index.md index 32288b3427b..33dddbee988 100644 --- a/packages/core/useStorageAsync/index.md +++ b/packages/core/useStorageAsync/index.md @@ -8,4 +8,79 @@ Reactive Storage in with async support. ## Usage -Please refer to `useStorage...
3
3
1
[{"id": "G0", "claim": "Rename the new `onLoad` option to `onReady` for consistency with APIs like `router.onReady`, whose 'called once' semantics match, and apply the same rename in the tests and docs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use ...
null
vueuse__vueuse__4426
vueuse/vueuse
4,426
defect
e8c5db565a962535e3f56492b72139ecf051ce2f
8ff6616bb647e33471b9386b59eefe498bf4e98e
feat(router): support partial transform
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/packages/router/_types.ts b/packages/router/_types.ts index 354b86b4494..ba2eec711e6 100644 --- a/packages/router/_types.ts +++ b/packages/router/_types.ts @@ -26,10 +26,16 @@ export interface ReactiveRouteOptions { export interface ReactiveRouteOptionsWithTransform<V, R> extends ReactiveRouteOptions { ...
3
3
0
[{"id": "G0", "claim": "The defaultGet/defaultSet helpers use nothing from the enclosing scope, so they should be moved out of the function to avoid re-creating them on every call.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nested ternaries ...
null
vueuse__vueuse__4441
vueuse/vueuse
4,441
defect
2bf4a103388251b892224cf2d3cfa035f92d838d
3abcb09d982dccdf706fd00732437b6d8e68b595
feat(useToNumber): `method` support custom function
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [ ] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [ ] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/packages/shared/useToNumber/index.ts b/packages/shared/useToNumber/index.ts index 1ff9d4604e3..67ed39acb45 100644 --- a/packages/shared/useToNumber/index.ts +++ b/packages/shared/useToNumber/index.ts @@ -41,6 +41,14 @@ export function useToNumber( let resolved = toValue(value) if (typeof resolved...
2
2
2
[{"id": "G0", "claim": "Use Number.isSafeInteger() instead of the string comparisons against MAX/MIN_SAFE_INTEGER, emitting a single warning like `useToNumber: ${value} not a safe integer, resolved value may not be accurate`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
vueuse__vueuse__4470
vueuse/vueuse
4,470
defect
e5301f45ad2745c36d2cf6ee9cac3ad8c15f2ddf
fe572a932e398ce9c73ee0d06c250b83c513763b
feat(useCloned): return `isModified`
reference: #4393 Add a new `isModifed` feature to `useCloned`. This reactive attribute tracks whether the cloned value has been modified.
diff --git a/packages/core/useCloned/index.md b/packages/core/useCloned/index.md index 7339fcafd63..c2890399fb6 100644 --- a/packages/core/useCloned/index.md +++ b/packages/core/useCloned/index.md @@ -48,5 +48,5 @@ import { klona } from 'klona' const original = ref({ key: 'value' }) -const { cloned, sync } = useCl...
3
3
2
[{"id": "G0", "claim": "With `flush: 'sync'` the watch stops itself after the first modification, so once it has fired a subsequent `sync()` cannot make `isClonedModified` fire again — the watcher should be re-armed after syncing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
vueuse__vueuse__4471
vueuse/vueuse
4,471
defect
e5301f45ad2745c36d2cf6ee9cac3ad8c15f2ddf
6267cfe0634f73465e28a8a4bfd45a985d4d09bc
feat(useRefHistory): add `shouldCommit`
### Description This PR adds a `beforeCommit` option to `useRefHistory` that allows users to control whether a commit should proceed based on comparing the previous and new values. This is particularly useful when you want to prevent unnecessary history entries when values haven't meaningfully changed. The `befor...
diff --git a/packages/core/useRefHistory/index.test.ts b/packages/core/useRefHistory/index.test.ts index 6503c82fa0d..0cf6426c0cc 100644 --- a/packages/core/useRefHistory/index.test.ts +++ b/packages/core/useRefHistory/index.test.ts @@ -298,6 +298,31 @@ describe('useRefHistory - sync', () => { expect(history.value...
6
5
2
[{"id": "G0", "claim": "43081j wonders whether the guard might be better implemented as an event filter so it never reaches commit (like the existing eventFilter option), while conceding he may be overcomplicating things.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "...
null
vueuse__vueuse__4497
vueuse/vueuse
4,497
defect
e5301f45ad2745c36d2cf6ee9cac3ad8c15f2ddf
a46e71ecd9e6309de569e0b5adf6fe5b947f7469
fix(debounceFilter): invoke on maxWait with the latest invoker
Fixes #3665 Closes #4473 A filter works by binding a watch callback and its args every time the watcher fires. This bound function is then held back until your "filter" calls its `invoke` parameter. In `debounceFilter`, we setup a `maxWait` timer to fire after a certain amount of time. Once this fires, it calls...
diff --git a/packages/shared/utils/filters.ts b/packages/shared/utils/filters.ts index 1644b315e29..052f43b37b3 100644 --- a/packages/shared/utils/filters.ts +++ b/packages/shared/utils/filters.ts @@ -73,6 +73,8 @@ export function debounceFilter(ms: MaybeRefOrGetter<number>, options: DebounceFi lastRejector = noop...
1
1
0
[{"id": "G0", "claim": "The test should pin the exact tick at which the debounced callback fires instead of hedging with '// or 51'-style comments on the value expectations.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vueuse__vueuse__4500
vueuse/vueuse
4,500
defect
758750147b08b82ae941097ee04506d3feb22a46
2111d517e77a5278d7ca3e9971a69263639a1952
fix(useCssVar): new Behavior
resolves #4493 <!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/pac...
diff --git a/packages/core/useCssVar/index.test.ts b/packages/core/useCssVar/index.test.ts index 7a8733e2002..578197f1956 100644 --- a/packages/core/useCssVar/index.test.ts +++ b/packages/core/useCssVar/index.test.ts @@ -1,7 +1,8 @@ import { defaultWindow } from '@vueuse/core' import { describe, expect, it } from 'vi...
3
3
1
[{"id": "G0", "claim": "With `initialValue` set, `useCssVar` does not apply the initial value to the target element on initial load — the ref state changes to the initial value but the element's style does not update until the next change.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
vueuse__vueuse__4501
vueuse/vueuse
4,501
defect
758750147b08b82ae941097ee04506d3feb22a46
2bc97511071427265ce4b8f6886f6e7aef7fab21
chore(deps): update to vitest@3
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/package.json b/package.json index 2c5bdfc5c2a..30bff052360 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,10 @@ "size": "tsx scripts/export-size.ts", "test": "nr test:unit", "test:cov": "vitest run --coverage", - "test:browser": "vitest --project browser --workspace=vitest.work...
7
5
1
[{"id": "G0", "claim": "The browser test scripts and vitest config/workspace need reworking for vitest 3 browser projects: instead of the plain `vitest --project browser` script, both chromium and firefox should run through a single project filter such as `browser (*)` (with the suggested config and workspace setup).",...
null
vueuse__vueuse__4504
vueuse/vueuse
4,504
defect
86a361e8421d5c3a6f91c240fb9954a84c875bd9
039e8395f7c1ed0e1a2b9c966029f8df79fe1fce
fix(useVirtualList): allow readonly arrays as input
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/packages/core/useVirtualList/index.test.ts b/packages/core/useVirtualList/index.test.ts index 2a991ca902a..174f0584850 100644 --- a/packages/core/useVirtualList/index.test.ts +++ b/packages/core/useVirtualList/index.test.ts @@ -112,4 +112,10 @@ describe('useVirtualList, horizontal', () => { scrollTo(6...
4
2
1
[{"id": "G0", "claim": "The new readonly-array test needlessly wraps the input in ref(), unlike the other tests in the file.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "UseVirtualListReturn.list being typed as a readonly ref means consumers can only e...
null
vueuse__vueuse__4553
vueuse/vueuse
4,553
defect
4f104263d1b1923b8a897b1bbb3a07a1f9551941
50a305fab42516ab7c2e3e1d5e144646716f632a
feat(useDateFormat): add `z...zzzz` for timezone information
fixes #4495 <!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/package...
diff --git a/packages/shared/useDateFormat/index.md b/packages/shared/useDateFormat/index.md index c597d703523..84b012ab9c6 100644 --- a/packages/shared/useDateFormat/index.md +++ b/packages/shared/useDateFormat/index.md @@ -4,7 +4,8 @@ category: Time # useDateFormat -Get the formatted date according to the string...
1
1
0
[{"id": "G0", "claim": "The stray top-level statement `Intl.DateTimeFormat().format(new Date())` added to index.ts serves no purpose and should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vueuse__vueuse__4583
vueuse/vueuse
4,583
defect
77c795d2e82acc92b9bc0ecc46ff01aa24a0ea2d
5d3a0401756fbf0cb01048d5ba55e26a8be34e8b
feat(useRafFn): add `once` option
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [ ] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [ ] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/packages/core/useRafFn/index.ts b/packages/core/useRafFn/index.ts index 05429486746..3868d7ac35d 100644 --- a/packages/core/useRafFn/index.ts +++ b/packages/core/useRafFn/index.ts @@ -31,6 +31,12 @@ export interface UseRafFnOptions extends ConfigurableWindow { * @default undefined */ fpsLimit?: ...
2
2
2
[{"id": "G0", "claim": "With once: true, the hasCalledOnce guard prevents users from explicitly calling resume() to re-run the function after it has executed once.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Basic tests should be added to cover the ne...
null
vueuse__vueuse__4591
vueuse/vueuse
4,591
defect
bc9683f4911de19ea57f5e016a100c48f8ccb7ff
06bc2f36f71b666bb2240301a57ebe6d17c2dba8
feat(useCached): add `options.deepRefs`
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/packages/core/_configurable.ts b/packages/core/_configurable.ts index fbc1d44fc5c..801e92538da 100644 --- a/packages/core/_configurable.ts +++ b/packages/core/_configurable.ts @@ -39,3 +39,10 @@ export const defaultWindow = /* #__PURE__ */ isClient ? window : undefined export const defaultDocument = /* #_...
6
5
1
[{"id": "G0", "claim": "The naming at the createRef signature could be better.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The jsdoc of ConfigurableDeepRefs.deep should document the default and the planned next-major change via the suggested @d...
null
vueuse__vueuse__4768
vueuse/vueuse
4,768
defect
39274b09660de91a1090b07134476ef417a9a1db
6a64354ff094db44e4d4c5593267b7612df93168
feat(useNow): expose immediate option
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/packages/core/useNow/index.test.ts b/packages/core/useNow/index.test.ts index d27957dc448..d462000eb8c 100644 --- a/packages/core/useNow/index.test.ts +++ b/packages/core/useNow/index.test.ts @@ -9,6 +9,19 @@ describe('useNow', () => { expect(+now.value).toBeLessThanOrEqual(+new Date()) }) + it(...
2
1
0
[{"id": "G0", "claim": "Using `new Date()` directly can lead to flaky tests due to timing differences; the test should mock the system time (e.g. `vi.setSystemTime()`) or stub `Date.now` to ensure a stable initial value.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
vueuse__vueuse__4781
vueuse/vueuse
4,781
defect
04933c9a4585cc736da5fece36b8aead7a33fe09
e56991560639696aa007dae30efd6dc2d55fbf92
feat(useIDBKeyval): add `options.serializer`
### Description Attempt to add `serializer` option to `useIDBKeyval` to bring it more in line with `useStorage` as per https://vueuse.org/core/useStorage/#custom-serialization Closes #4780
diff --git a/packages/integrations/useIDBKeyval/index.ts b/packages/integrations/useIDBKeyval/index.ts index e8fe5bd23e2..4adb4ae5434 100644 --- a/packages/integrations/useIDBKeyval/index.ts +++ b/packages/integrations/useIDBKeyval/index.ts @@ -4,7 +4,12 @@ import { watchPausable } from '@vueuse/core' import { del, ge...
4
3
1
[{"id": "G0", "claim": "Tests should be added for the new serializer option so that future regressions are caught.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use a default identity serializer so read() can always assign via serializer.read(rawValue)...
null
vueuse__vueuse__4821
vueuse/vueuse
4,821
defect
0e10eb25f353396e2e20248541d54d14dbca5154
4ef143c3c81294446c606a55c664c1ee7cd76d4c
feat(useTimeAgoIntl): add `useTimaAgoIntl`
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/packages/core/index.ts b/packages/core/index.ts index 7a98fe414a1..921c3c39415 100644 --- a/packages/core/index.ts +++ b/packages/core/index.ts @@ -123,6 +123,7 @@ export * from './useTextSelection' export * from './useTextareaAutosize' export * from './useThrottledRefHistory' export * from './useTimeAg...
4
4
1
[{"id": "G0", "claim": "Remove the `// autocorrect-disable` / `// autocorrect-enable` markers around the CJK assertion in index.test.ts (the suggestion replaces the marker line with the plain assertion).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
vueuse__vueuse__4997
vueuse/vueuse
4,997
defect
00a7291997dac78d5ca156df34b0efe2d07350af
3f3e079ac8b50fd2ea4d69c23bbda2cbcdda9689
feat(createSharedComposable)!: return only the sharedComposable on client side
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62f0cec67d2..dbcb51cbdfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,9 @@ jobs: - name: browser tests run: pnpm run test:browser + - name: server tests + run: pnpm run test:server +...
4
1
0
[{"id": "G0", "claim": "The SSR fallback behavior of createSharedComposable should be mentioned in the docs, and the change should be flagged as breaking to bring more awareness.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "createGlobalState wou...
null
vueuse__vueuse__5011
vueuse/vueuse
5,011
defect
2c6c4f5fee523852fb5261faa4776ba04aa52108
ac0fc1189c56b7431a7a2e8f28177b48b6c4a4e9
feat(useTransition): add support for custom interpolator functions
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/packages/core/useTransition/demo.vue b/packages/core/useTransition/demo.vue index ee9716fb455..c3ff7478cf5 100644 --- a/packages/core/useTransition/demo.vue +++ b/packages/core/useTransition/demo.vue @@ -8,13 +8,7 @@ const baseNumber = shallowRef(0) const baseVector = shallowRef([0, 0]) -function ease...
3
2
0
[{"id": "G0", "claim": "Can the test use vi.advanceTimersByTime(25) (fake timers) instead of promiseTimeout(25)?", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The interpolation callback type (a: T, b: T, t: number) => T should be exposed/exported.", "c...
null
vueuse__vueuse__5092
vueuse/vueuse
5,092
defect
fc081955e1f2a06c39f169fa274f8e42564616ac
4aaaee217116d4aa1b85be57457ebcf44477f60f
feat(useTextSelection): Set initial value for use text selection
<!-- Thank you for contributing! --> ### Before submitting the PR, please make sure you do the following - [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md). - [x] Read the [Pull Request Guidelines](https://github.com/vueuse/vueuse/blob/main/packages/guidelines.md...
diff --git a/packages/core/useTextSelection/index.ts b/packages/core/useTextSelection/index.ts index 2dd2427f148..798000369f1 100644 --- a/packages/core/useTextSelection/index.ts +++ b/packages/core/useTextSelection/index.ts @@ -1,5 +1,5 @@ import type { ConfigurableWindow } from '../_configurable' -import { computed,...
1
1
1
[{"id": "G0", "claim": "Once #5100 lands, a test should be added for an initial selection: set up a selection before calling useTextSelection and observe that the resulting value is non-null.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vugu__vugu__124
vugu/vugu
124
defect
51d3713e37e784519a4b001cc93e7e0905bc3396
09c92b04f6b1699fc9769f4bf25b0c169c208cd6
Basic support for namespaced elements
Some HTML elements are located in a different namespace. This commit implements support for the namespaced defined in the HTML specification. The supported namespaces per HTML spec are: - html - math - svg - xlink - xml - xmlns see #123 Signed-off-by: Thomas Berger <loki@lokis-chaos.de>
diff --git a/domrender/renderer-js-instructions.go b/domrender/renderer-js-instructions.go index 805c7b8e..2abb3853 100644 --- a/domrender/renderer-js-instructions.go +++ b/domrender/renderer-js-instructions.go @@ -54,6 +54,9 @@ const ( opcodeSetProperty uint8 = 35 // assign a JS property to the current element ...
1
1
1
[{"id": "G0", "claim": "Storing NamespaceURI on VGAttribute and VGNode should be reconsidered, since the URI can be derived from the namespace via namespaceToURI and VGAttribute is copied from x/net/html.Attribute and should not be changed without careful consideration.", "category": "design", "verdict": "supported", "...
null
vulcand__vulcand__121
vulcand/vulcand
121
defect
2379953bec26012b015f32d73efcb9b52ce05333
0a433e7cd39c22d9145c7af04fb91fe563efdabf
Add refactored metrics
This commit uses refactored metrics that improve performance, implement escaping for statsd and reduce the amount of packets generated in the network.
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 1b4016b1..af959935 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -57,7 +57,7 @@ }, { "ImportPath": "github.com/mailgun/metrics", - "Rev": "f590a41f280c7023e93d3604fe1e0e5d92f6d7ee" + "Rev": "a980c2a498b038de81be9488afa7a11aa8a09e40" ...
1
1
0
[{"id": "G0", "claim": "The `metric` and `escape` helper functions in server/reporter.go are no longer used by the refactored emitMetrics and can be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vulcand__vulcand__123
vulcand/vulcand
123
defect
343fc58ff34d93b29ca0f3952218742aa90d302c
86f4f333258b54232160d2f2014f2f42e4305c61
Enhance rewrite middleware.
Changes: - Replacement pattern is applied to the whole URL string rather than just path that lets to rewrite, for example, protocol. Enhancements: - Ability to use variables in replacement patterns with standard Go's templating engine syntax (http://golang.org/pkg/text/template). - Ability to alter replace template va...
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 03b6b892..47556168 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -81,8 +81,8 @@ }, { "ImportPath": "github.com/mailgun/vulcan", - "Comment": "v0.1-223-g8db9182", - "Rev": "8db9182b511ab0d625cffe5dcc4da4e6c4e7bb9c" + "Comment": "v0....
8
6
2
[{"id": "G0", "claim": "The VarRegex variable does not need to be exported from the rewrite package.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The variable substitution runs on every request, so its cost has to be considered and benchmarked.", "cate...
null
vulcand__vulcand__130
vulcand/vulcand
130
defect
7a68c303dea64315ae954538752190282bc62c63
32b76c0936708ccfd994d6435bd98ad2db36b960
Updates for the rewrite middleware
- Fixed middleware instantiation process. - Use `RawURL()` instead of `URL.String()` method.
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 9b558fe5..92940c24 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -81,8 +81,8 @@ }, { "ImportPath": "github.com/mailgun/vulcan", - "Comment": "v0.1-232-gbbadab7", - "Rev": "bbadab7409a1624cdf483579d38d36d1c53d1599" + "Comment": "v0....
1
1
0
[{"id": "G0", "claim": "Use strings.Join instead of fmt.Sprintf to build the URL string in RawURL.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
vulcand__vulcand__155
vulcand/vulcand
155
defect
6ad6dbe48e0a398e0837dc1373f18a7ab9e6b31d
a7ab716e412c70b6e6f0a3cf5de1386709d88018
Add trace plugin
## Purpose We need to be able to capture HTTPS access logs in structured format for debugging purposes. ## Implementation Trace plugin outputs information about requests in structured format to any unix or udp socket. It uses syslog format to emit logs. The syslog prefix can be removed and JSON part can be put into E...
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index ec83dc9e..b0c50888 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -58,39 +58,43 @@ }, { "ImportPath": "github.com/mailgun/oxy/cbreaker", - "Rev": "3fc5acbe278c4dea6012dfc5101a00a59f79802d" + "Rev": "421238106c2bb1364e51d60d5ea358fda42...
6
5
1
[{"id": "G0", "claim": "ResponseHeaders appends to t.reqHeaders instead of t.respHeaders, so response headers are never captured.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "GetRegistry's repeated if-AddSpec blocks should be consolidated into a l...
null
vulcand__vulcand__182
vulcand/vulcand
182
defect
32567c1ecd124c8bdc3f14ccc25ae5f77df09497
b8664421fee0b43a7583146c668ca1dd2d04888b
Fix the error when delete backend which not be used by any frontend
- The error occurred when there are one or more frontends belong to another backend.
diff --git a/engine/etcdng/etcd.go b/engine/etcdng/etcd.go index c6599b41..110c4c88 100644 --- a/engine/etcdng/etcd.go +++ b/engine/etcdng/etcd.go @@ -389,16 +389,17 @@ func (n *ng) sealJSONVal(val interface{}) ([]byte, error) { func (n *ng) backendUsedBy(bk engine.BackendKey) ([]engine.Frontend, error) { fs, err ...
2
2
0
[{"id": "G0", "claim": "The comment '// only return used frontends' on backendUsedBy is redundant and should be dropped, since the variable name usedFs is clear.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test function name TestBacke...
null
vulcand__vulcand__202
vulcand/vulcand
202
defect
f0d929bd61791580828a957389d998fc6f22db58
608695fe455a77c5708d6e3249ca077627f60b4b
Allow adding a custom NotFound middleware to Vulcan.
WHAT: 1. Inside mux.go is a NotFound http.Handler that is used as the catch-all handler for requests that do not match any route. 2. Repeatedly, we face situations where we want to know such requests and act on them (i.e. either throw a friendlier 404 Not Found page, or redirect them...
diff --git a/plugin/middleware.go b/plugin/middleware.go index e1d1eea4..2e23b30c 100644 --- a/plugin/middleware.go +++ b/plugin/middleware.go @@ -53,12 +53,14 @@ type SpecGetter func(string) *MiddlewareSpec // Registry contains currently registered middlewares and used to support pluggable middlewares across all mo...
2
2
0
[{"id": "G0", "claim": "The registry field should be renamed from notFoundMiddleware to notFound for simplicity, since the Middleware type already enforces what it is.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The explicit initialization of...
null
vulcand__vulcand__302
vulcand/vulcand
302
defect
62058a07f1ae67716f04922d7b4308b307994cca
d62cfde01398e7f64bda0bf421599bbed065aa40
Update cli.Action -> cli.ActionFunc signature
As of urfave/cli version 1.15 `cli.App.Action` signature was deprecated, and instead we should use `func(*cli.Context) error`, as defined by `cli.ActionFunc`. This commit update the funciton signature.
diff --git a/plugin/cbreaker/spec_test.go b/plugin/cbreaker/spec_test.go index d6661c88..ea89dec3 100644 --- a/plugin/cbreaker/spec_test.go +++ b/plugin/cbreaker/spec_test.go @@ -168,7 +168,7 @@ func (s *SpecSuite) TestNewCircuitBreakerFromCli(c *C) { app := cli.NewApp() app.Name = "test" executed := false - app....
1
1
1
[{"id": "G0", "claim": "Capitalize the unexported printError method and use it in vctl/main.go instead of introducing an exported wrapper function.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vulcand__vulcand__36
vulcand/vulcand
36
defect
04d57b8ded86be77d93005f7e93f22759b54d045
2ecc54c06b6d0ea61615fab0a563468ad555a9c8
Add ProxyRequestTimeout option for long-running backend requests
Vulcand was not setting any timeouts in the httploc package inside the vulcan library and so requests which might take more than 10s to serve from the backends were timing out. This PR adds an option to set the timeout in proxy requests, and sets vulcand's writeTimeout to that same timeout if it exists.
diff --git a/configure/configure.go b/configure/configure.go index da789b0c..20952f5a 100644 --- a/configure/configure.go +++ b/configure/configure.go @@ -12,6 +12,7 @@ import ( . "github.com/mailgun/vulcand/backend" . "github.com/mailgun/vulcand/connwatch" . "github.com/mailgun/vulcand/endpoint" + "time" ) c...
2
2
2
[{"id": "G0", "claim": "Replace the single proxyRequestTimeout approach with the reviewer's proposed design: endpointDialTimeout (default 5s) and endpointReadTimeout (default 50s) parameters, readTimeout/writeTimeout renamed to serverReadTimeout/serverWriteTimeout with the old flags kept for backwards compatibility, a ...
null
vulncheck-oss__go-exploit__197
vulncheck-oss/go-exploit
197
defect
7ae78febecc72c5c4dae3654645c991700452fce
0e7ef1326cd6a40d4775cc43f5104f250aec195b
Add the "product" and "product/wordpress" structure
Currently `go-exploit` does not have any public product specific handling, but I've had to write a few WordPress plugin RCEs lately and was getting tired of reinventing the wheel. This lays the groundwork to have product specific functions and handling. This also only implements: authentication, nonce selection, and...
diff --git a/product/product.go b/product/product.go new file mode 100644 index 00000000..e6ae0918 --- /dev/null +++ b/product/product.go @@ -0,0 +1 @@ +package product diff --git a/product/wordpress/plugins.go b/product/wordpress/plugins.go new file mode 100644 index 00000000..d8fd5156 --- /dev/null +++ b/product/word...
3
2
1
[{"id": "G0", "claim": "The error logs in the WordPress plugin generation code should use framework logging functions (e.g. output.PrintfFrameworkError) so they are controlled by the framework-logging flag, since they come from the framework.", "category": "maintainability", "verdict": "supported", "priority": "P1", "s...
null
vulncheck-oss__go-exploit__34
vulncheck-oss/go-exploit
34
defect
bfc02aae7eb141c8635f1aff5e43f57e4bffdb44
42fe2259f0bc043749906d7f96403e6cfdc40077
Defining Rhosts by CIDR or File
Added support for defining rhosts using CIDR notation and loading rhosts from a csv (for Shodan support). For CIDR, that looks like this: ```sh albinolobster@mournland:~/initial-access/feed/cve-2023-38646$ ./build/cve-2023-38646_linux-arm64 -v -rhosts 192.168.1.0/24 -rport 80 [*] Starting target 0: 192.168.1.0:...
diff --git a/cli/commandline.go b/cli/commandline.go index db9d37c0..8b4879a9 100644 --- a/cli/commandline.go +++ b/cli/commandline.go @@ -1,8 +1,11 @@ package cli import ( + "bufio" "flag" "fmt" + "net" + "os" "strconv" "strings" @@ -11,25 +14,34 @@ import ( "github.com/vulncheck-oss/go-exploit/output"...
3
3
0
[{"id": "G0", "claim": "It would be nice to indicate the SSL status in the per-target status output.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment describing the target host, port, and SSL configuration fields is out of date.", "cat...
null
vulncheck-oss__go-exploit__353
vulncheck-oss/go-exploit
353
defect
0044bf8ace62ca44f74c733a47638b073e593b63
dede104cf8830f437b2288338fcc951b1c1b9db7
Add random domain and random email functions
Closes #338 Adds the following functions: * `RandDomain()` - Creates a random valid domain with the most common TLDs * `RandEmail()` - Creates a random email address with the most common TLDs
diff --git a/random/alltlds.go b/random/alltlds.go new file mode 100644 index 00000000..73f91325 --- /dev/null +++ b/random/alltlds.go @@ -0,0 +1,2746 @@ +package random + +// Generated on: Tue Apr 8 01:51:16 PM MDT 2025 + +// AllTLDs contains all valid TLDs from IANA. +var AllTLDs = []string{ + "aaa", + "aarp", + "ab...
3
3
2
[{"id": "G0", "claim": "The reviewer questions why the get-tlds.sh helper script is needed at all, asking for its justification or removal.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer believes AllTLDs is generally a bad idea beca...
null
vulncheck-oss__go-exploit__358
vulncheck-oss/go-exploit
358
defect
21b5745076eb5d5c275129d551ef0f68001b8b5c
1dd48277134bc9a0bfafcdb63b332dd068752149
Unify clean shutdown and update C2 channel with session tracking
This unifies the work from @lobsterjerusalem in #340 and #268 and supersedes it with a different path. Instead of handling signal shutdowns and cleanup per-C2, instead this updates the C2 interface and `channel.Channel` to have: - `channel.Channel.Shutdown *atomic.Bool` - A C2 specific atomic to track if the C2 needs ...
diff --git a/c2/channel/channel.go b/c2/channel/channel.go index 574b5f45..adba8978 100644 --- a/c2/channel/channel.go +++ b/c2/channel/channel.go @@ -3,6 +3,17 @@ // components in order to support extracting components such as lhost and lport. package channel +import ( + "crypto/rand" + "encoding/base32" + "io" + ...
10
3
0
[{"id": "G0", "claim": "The comment in c2/cli/basic.go should read \"I think that's tolerable\" instead of the typo \"I that that's tolerable\".", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The External interface's setter methods (SetShutdown ...
null
vulncheck-oss__go-exploit__468
vulncheck-oss/go-exploit
468
defect
834c00e67bf8d4e7cb7b2cb465f6fbc0b252a21c
487e01cd27b0b1170a6c086779fe36edcd8a49f1
IKEv2 Proto Init
Adds some basic structs and helper functions for ikev2. Not an entire proto, but a foundation.
diff --git a/protocol/ikev2/ikev2.go b/protocol/ikev2/ikev2.go new file mode 100644 index 00000000..ada40fd5 --- /dev/null +++ b/protocol/ikev2/ikev2.go @@ -0,0 +1,87 @@ +// I hate go idioms for enums, so we're doing string maps. +// The primary reason is that I want the context to be evident, much like a namespace whe...
7
6
2
[{"id": "G0", "claim": "The shared secret calculation is incorrect: it exponentiates the client's own public key with the client's private key, while it should use the server's public key.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ServerPubKey ...
null
vulncheck-oss__go-exploit__7
vulncheck-oss/go-exploit
7
defect
eea0a686f1554d99e98e67af6d8b3c7c7ec31061
b0c70f1964b18380f8f5e8805b70a0ea7bdff89f
Switch to crypto/rand and add int() rand functions
This moves the random functions to utilize `crypto/rand` for cryptographic safe pseudo-random. These go APIs can be a little unruly since they use `math/big` and require some type coersions that aren't ideal, but shouldn't be an issue since the functions utilize `int` and not `int64` types. This adds the following func...
diff --git a/random/random.go b/random/random.go index 4468bd67..f2703238 100644 --- a/random/random.go +++ b/random/random.go @@ -1,7 +1,8 @@ package random import ( - "math/rand" + "crypto/rand" + "math/big" ) var ( @@ -10,10 +11,31 @@ var ( digits = []rune("0123456789") ) +// RandIntRange generates a `...
2
2
0
[{"id": "G0", "claim": "The RandIntRange doc comment should read \"generates an `int`\" instead of the grammatically wrong \"generates a `int`\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RandPositiveInt doc comment should say the half-op...
null
vulsio__go-cve-dictionary__197
vulsio/go-cve-dictionary
197
defect
a64b3811cd03c66e891b947181822b6f0920c68a
e8fff6a85024115510e155b2db7dcb06758c69ea
fix(GetCveIDsByCpeURI): remove Nvd for Jvn-match, and remove Jvn for Nvd-Match in CveDetail
# What did you implement: Fixes `HasJvn` and `HasNvd`. refs. https://github.com/future-architect/vuls/pull/1273 ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) # How Has This Been Tested? Test cases were written and `make test` was performed. # Checklist: You don't have to satis...
diff --git a/db/db.go b/db/db.go index 1e5b7ab3..72ccfc75 100644 --- a/db/db.go +++ b/db/db.go @@ -20,7 +20,7 @@ type DB interface { CloseDB() error Get(string) (*models.CveDetail, error) GetMulti([]string) (map[string]models.CveDetail, error) - GetCveIDsByCpeURI(string) ([]string, error) + GetCveIDsByCpeURI(stri...
2
2
1
[{"id": "G0", "claim": "The new IsNvd/IsJvn logic each also tests the other source for nil (a Redis workaround), and the reviewer asks why IsNvd evaluates Jvn to be nil and IsJvn evaluates Nvd to be nil.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
vulsio__go-cve-dictionary__211
vulsio/go-cve-dictionary
211
defect
c7376780cf65b7231f951fa6851009bb36f6387f
28edf55f695ef6fc6b1d789f234a8ab358344b74
fix: remove duplicate cves
# What did you implement: CVEs of "recent" and "modified" that were always brought at fetch time were duplicated with CVEs of years. In the case of RDB, multiple CVEs were inserted, and multiple identical ones appeared in the response. Also, in the case of Redis, the data was overwritten, and old data may have appear...
diff --git a/commands/fetchjvn.go b/commands/fetchjvn.go index 84748605..c57c1f06 100644 --- a/commands/fetchjvn.go +++ b/commands/fetchjvn.go @@ -150,5 +150,6 @@ func fetchJvn(cmd *cobra.Command, args []string) (err error) { return err } + log.Infof("Finished fetching JVN.") return nil } diff --git a/command...
2
2
0
[{"id": "G0", "claim": "deleteAndInsertNvd should use the receiver's r.conn instead of taking a conn *gorm.DB parameter, since there is no reason not to use r.Conn.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "deleteAndInsertJvn should use the...
null
vulsio__go-cve-dictionary__283
vulsio/go-cve-dictionary
283
defect
2c304557fd4eacbeb8a5ca517b4cd26ffff989a0
e60ee46736d33d7f2300dec5319b50c6a09a6e3f
fix(cpescan): match if affected version is NA
# What did you implement: ``` { name: "true: NA should match all version", uri: "cpe:/h:fortinet:fortigate-100d:v6.2.9", cpe: models.CpeBase{ URI: "cpe:/h:fortinet:fortigate-100d:-", }, wantIsExactVerMatch: true, wantIsRoughVerMatch: false, wantIsVendorProductMatch: fal...
diff --git a/db/db.go b/db/db.go index 5dbefde9..956c5e23 100644 --- a/db/db.go +++ b/db/db.go @@ -220,6 +220,11 @@ func match(specifiedURI string, cpeInNvd models.CpeBase) (isExactVerMatch, isRou return true, false, false, nil } + if fmt.Sprintf("%s", cpeInNvdWfn.Get(common.AttributeVersion)) == "NA" { + log.D...
1
1
0
[{"id": "G0", "claim": "Use GetString instead of wrapping Get in fmt.Sprintf(\"%s\", ...) when reading CPE attributes in db/db.go, including the version-NA check added in match.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vulsio__goval-dictionary__314
vulsio/goval-dictionary
314
defect
1fd125195f51c596bb623342ab8acb1b01901728
da919f4128ea5a29f79e029252f91d6c5f7c06a0
fix(models/redhat): fix collectRedHatPacks
# What did you implement: Fixed to include both packages when they have the same package name but different ModularityLabel. And when importing packages that have the same package name but different versions, we used to rely on the order in which they were written in OVAL, but now we use the new version. Then, OVA...
diff --git a/models/redhat/redhat.go b/models/redhat/redhat.go index f52b8667..ce82529b 100644 --- a/models/redhat/redhat.go +++ b/models/redhat/redhat.go @@ -101,7 +101,7 @@ func collectRedHatPacks(cri Criteria) []models.Package { ps := walkRedHat(cri, []models.Package{}, "") pkgs := map[string]models.Package{} ...
2
2
1
[{"id": "G0", "claim": "With the current implementation, collectRedHatPacks does not scope collected packs to the target OS version, so a Red Hat 7 advisory is likely to be included for a Red Hat 5 database.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "c...
null
vultr__vultr-cloud-controller-manager__17
vultr/vultr-cloud-controller-manager
17
defect
04bd316e6a9cd82c07e584f5df617caf6386614f
989fe6b79ea8e088118ebeefa150f82fa98643f1
Unit Tests
## Description Unit tests ## Related Issues #17 ### Checklist: * [x] Have you checked to ensure there aren't other open [Pull Requests](../../../pulls) for the same update/change? * [x] Have you linted your code locally prior to submission? * [x] Have you successfully ran tests with your changes locally?
diff --git a/Makefile b/Makefile index be44662f..5b86f591 100644 --- a/Makefile +++ b/Makefile @@ -26,3 +26,7 @@ docker-push: .PHONY: clean clean: go clean -i -x ./... + +.PHONY: test +test: + go test -race github.com/vultr/vultr-cloud-controller-manager/vultr -v \ No newline at end of file diff --git a/vultr/cloud...
1
1
1
[{"id": "G0", "claim": "The test reports a mismatch with fmt.Errorf, whose result is unused so the test can never fail, and asserts the wrong expected name 'lbname' where GetLoadBalancerName returns 'albname' - t.Errorf and the correct expected value should be used.", "category": "testing", "verdict": "supported", "pri...
null
vultr__vultr-node__136
vultr/vultr-node
136
defect
75b06e30cbc547596ad8f92ea4a9f22271a081e5
238ce93d7a30e70ddbdf431ddb1d453c2208ce0b
Fix for POST requests
This fixes an issue where parameters were not being sent with POST requests.
diff --git a/src/util.js b/src/util.js index b8739fe0..0de97eb5 100644 --- a/src/util.js +++ b/src/util.js @@ -1,15 +1,19 @@ exports.makeApiRequest = (config, endpoint, parameters) => { const rp = require('request-promise-native') const baseUrl = (config && config.baseUrl) || 'https://api.vultr.com/v1' - const ...
1
1
1
[{"id": "G0", "claim": "The non-GET branch should still fall back to `parameters || ''` so requests whose parameters are not passed (e.g. firewall_group_create) keep working.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vutran1710__PyrateLimiter__198
vutran1710/PyrateLimiter
198
defect
bffe87269317f16a63ecffdd5897bb5e2737390f
cd2caad9bfc24d2e9908baf16ce1302ff8c38a81
Stress testing
<converting to draft - need to fix a bad merge and retest after the sqlite changes> After implementing https://github.com/vutran1710/PyrateLimiter/pull/195, decided to take a moment and run some stress tests. This PR includes the benchmark, and two fixes required for the benchmark to succeed with SQLiteBucket: ...
diff --git a/benchmarks/stress_limiters.py b/benchmarks/stress_limiters.py new file mode 100644 index 00000000..3a4dd5ea --- /dev/null +++ b/benchmarks/stress_limiters.py @@ -0,0 +1,207 @@ +import logging +from concurrent.futures import ProcessPoolExecutor +from concurrent.futures import ThreadPoolExecutor +from concur...
4
1
0
[{"id": "G0", "claim": "The hardcoded database path 'pyrate_limiter.sqlite' in the benchmark could cause issues in concurrent tests or when running multiple benchmarks; a unique or temporary filename should be used to avoid conflicts.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"...
null
vutran1710__PyrateLimiter__206
vutran1710/PyrateLimiter
206
defect
1a73cb8805cd5165654b06901183090d439650fc
cd0f32f4b06714a40e1888432d4fa52cc02ef4d1
MultiprocessBucket
This PR implements a MultiprocessBucket, appropriate for use within a Python multiprocessing pool or ProcessPoolExecutor. Includes test cases for multiprocessing. ### MultiprocessBucket MultiprocessBucket extends InMemoryBucket with two notable changes: - Uses a `multiprocessing.Manager().ListProxy` to store the...
diff --git a/benchmarks/stress_limiters.py b/benchmarks/stress_limiters.py index 2b37d68a..a1987cfd 100644 --- a/benchmarks/stress_limiters.py +++ b/benchmarks/stress_limiters.py @@ -13,6 +13,8 @@ from pyrate_limiter import AbstractClock from pyrate_limiter import Duration from pyrate_limiter import Limiter +from py...
10
5
1
[{"id": "G0", "claim": "The test file's docstring 'Complete Limiter test suite' is misleading because the file only tests multiprocessing functionality; it should be changed to describe multiprocessing tests.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
vutran1710__PyrateLimiter__208
vutran1710/PyrateLimiter
208
defect
1a73cb8805cd5165654b06901183090d439650fc
b0570e84d71cf2acda42bf3a7f2fca3287dd48b6
try_acquire_async: Wrap try_acquire with a thread local asyncio.Lock
This is a second change for #191, to be more asyncio friendly: - Add try_acquire_async, which uses a thread-local asyncio lock. - Updated as_decorator to use try_acquire_async as well - Added a limiter_factory.py: common patterns for creating Limiters. Will expand more in #197 - examples\asyncio_decorator.py and ...
diff --git a/.gitignore b/.gitignore index c1b3de82..93d9c00f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ __pycache__/ dist/ docs/_build/ docs/modules/ -examples/ htmlcov/ env/ test-reports/ @@ -14,3 +13,7 @@ test-reports/ .idea/ .coveralls.yml .DS_Store + +.venv +xdg_cache +*\.sqlite* diff --git ...
4
2
1
[{"id": "G0", "claim": "The local variable 'accquire_ok' is misspelled and should be renamed to 'acquire_ok'.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The async method try_acquire_async declares an inconsistent return type Union[bool, Awaita...
null
vutran1710__PyrateLimiter__221
vutran1710/PyrateLimiter
221
defect
fcbc06dd2ffe125d2757c2bcf0cc3c658b527406
bb8c18418434929f142c4ff5a8233c7f0d03a313
fix: MultiprocessBucket & 3.14
Ran across an issue when testing 3.14: Under certain conditions, InMemoryBucket overwrites the ListProxy such that the rate limiting isn't respected: the buckets diverge. This requires a small change to InMemoryBucket, so it doesn't reassign self.list, and additional locking. This seemed to occur reliably in my ws...
diff --git a/pyrate_limiter/buckets/in_memory_bucket.py b/pyrate_limiter/buckets/in_memory_bucket.py index 0d4fde5e..3a5972c3 100644 --- a/pyrate_limiter/buckets/in_memory_bucket.py +++ b/pyrate_limiter/buckets/in_memory_bucket.py @@ -66,21 +66,21 @@ def leak(self, current_timestamp: Optional[int] = None) -> int: ...
2
1
0
[{"id": "G0", "claim": "Using RLock instead of Lock may introduce performance overhead; since put() and leak() don't appear to call each other recursively, a regular Lock would be sufficient and more efficient.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
vutran1710__PyrateLimiter__227
vutran1710/PyrateLimiter
227
defect
a8fc3d4720493199b27b39f49d2629443c29db23
edac027a35504095eb036e0046e1ae7ad49bc63c
Use asyncio.sleep when called from try_acquire_async
edit: simplified this description - This PR ensures that asyncio.sleep is used when called via try_acquire_async. A `use_async` flag is passed internally to signal that the chain started at try_acquire_async. Previously, the asyncio.sleep vs time.sleep decision depended solely on the bucket backend: which led t...
diff --git a/examples/asyncio_decorator.py b/examples/asyncio_decorator.py index 85c61f3d..f17801a5 100644 --- a/examples/asyncio_decorator.py +++ b/examples/asyncio_decorator.py @@ -25,7 +25,7 @@ async def test_asyncio_decorator(): print("Note that the TICKs continue while the tasks are waiting") start = t...
1
1
1
[{"id": "G0", "claim": "The pull request may introduce breaking changes to the public API (the new parameters on delay_or_raise and handle_bucket_put are required, so callers using them directly would break).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null