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
sveltejs__svelte__16624
sveltejs/svelte
16,624
defect
a543559acfb21ecc509873790158ba16db4089fd
45ae96c41c8a15f1124bf57e57b23db9400d1636
fix: do not defer unmount; immediately unmount components
Description: Do not defer unmounting of components. Unmount the components immediately. This changes fixes #16618 and brings back pre-async feature lifecycle order. ### Tests and linting - [x] Run the tests with `pnpm test` and lint the project with `pnpm lint`
diff --git a/.changeset/few-geese-itch.md b/.changeset/few-geese-itch.md new file mode 100644 index 000000000000..8712733e571d --- /dev/null +++ b/.changeset/few-geese-itch.md @@ -0,0 +1,5 @@ +--- +'svelte': minor +--- + +Do not defer unmounting of component diff --git a/packages/svelte/src/internal/client/dom/blocks/s...
2
2
1
[{"id": "G0", "claim": "The changeset should use 'patch' instead of 'minor' and describe the change as a fix ('fix: do not defer unmounting of component'), per the reviewer's suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR'...
null
sveltejs__svelte__16631
sveltejs/svelte
16,631
defect
7b2d7746277dae6372ed7b836ad895bde536dc89
5d6b0817478a1ef1a45ba399fd9232bfe00f1dff
fix: run blocks eagerly during flush
Another stab at #16548. The idea is that if a block effect is dirtied by a state change in another effect, it jumps to the head of the queue rather than waiting for the next root-to-tip traversal. That way, if it ends up destroying its children, they get destroyed immediately, rather than running even though they're _a...
diff --git a/.changeset/clever-months-clap.md b/.changeset/clever-months-clap.md new file mode 100644 index 000000000000..9566dcf54d66 --- /dev/null +++ b/.changeset/clever-months-clap.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: only abort effect flushing if it causes an existing effect to be scheduled diff -...
3
1
0
[{"id": "G0", "claim": "Ideally the next batch flush could be avoided or aborted completely if it is determined that it didn't schedule anything else, as a possible optimization for some other time.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
sveltejs__svelte__16732
sveltejs/svelte
16,732
defect
d92fa432d1032f4e1746af654eb5a7b7f536fbe9
95400b567e9a7e650b94c6450c19e466be34e9a7
fix: send `$effect.pending` count to the correct boundary
alternative to #16729 ### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [x] ...
diff --git a/.changeset/dirty-cycles-smash.md b/.changeset/dirty-cycles-smash.md new file mode 100644 index 000000000000..1b031cf0af95 --- /dev/null +++ b/.changeset/dirty-cycles-smash.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: send `$effect.pending` count to the correct boundary diff --git a/packages/svelte...
1
1
0
[{"id": "G0", "claim": "The JSDoc on the public `update_pending_count` method should state that it must not be called from inside the class.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__16738
sveltejs/svelte
16,738
defect
f778975b760bed4d5ae366d95ddc8d60e94531f3
bcd3acad210c22b8c39d6408e94207ee1754cf21
fix: flush effects scheduled during boundary's pending phase
Alternative to #16721, partial alternative to #16709. Closes #16691, closes #16627, closes #16582 and #16651 as well. ### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent ...
diff --git a/.changeset/ninety-pandas-move.md b/.changeset/ninety-pandas-move.md new file mode 100644 index 000000000000..65f57ddbbf85 --- /dev/null +++ b/.changeset/ninety-pandas-move.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: flush effects scheduled during boundary's pending phase diff --git a/packages/sve...
2
2
1
[{"id": "G0", "claim": "A test exercising `$effect` during the boundary's pending phase should be added, unless the existing attachment test is judged sufficient.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Effects inside async components that are sc...
null
sveltejs__svelte__16866
sveltejs/svelte
16,866
defect
87f7e979635baa46acb594ecc7f2822920cb7aaf
99d31b433b4cb3ac22392ffc7bc37662e14f587d
fix: merge batches
This is part of a project to update some of the async batching logic to handle a few edge cases that have cropped up. The observable change here is that if you have an `await` expression that runs twice, and the second one somehow resolves before the first, they are no longer forced to resolve in linear order. The e...
diff --git a/.changeset/lemon-cars-count.md b/.changeset/lemon-cars-count.md new file mode 100644 index 000000000000..5724e4846059 --- /dev/null +++ b/.changeset/lemon-cars-count.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: rebase pending batches when other batches are committed diff --git a/packages/svelte/sr...
3
2
1
[{"id": "G0", "claim": "The version/wv bookkeeping in Batch.apply is a counter that would eventually overflow if sources kept being updated, which the reviewer notes with amusement ('it's gonna be funny the day we somehow overflow this').", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope...
null
sveltejs__svelte__16874
sveltejs/svelte
16,874
defect
e9cd45a2daf2de2a62077b1e68019e3cc6f658c8
9e5fe33b9cd527dec6e70fe10e0e81ab8ca23b25
fix: update error message to clarify usage with radio inputs
closes #16870 ## Description Change error message for radio input checked binding. Before: ``` "message": "`bind:checked` can only be used with <input type=\"checkbox\">" ``` After: ``` "message": "`bind:checked` can only be used with <input type=\"checkbox\"> - for <input type=\"radio\">, use 'group' b...
diff --git a/.changeset/slow-nails-push.md b/.changeset/slow-nails-push.md new file mode 100644 index 000000000000..8dedf35593eb --- /dev/null +++ b/.changeset/slow-nails-push.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: update `bind:checked` error message to clarify usage with radio inputs diff --git a/docume...
3
3
1
[{"id": "G0", "claim": "The wording of the new `bind:checked` error-message suffix could be improved, and better wording is requested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs line should keep saying 'Checkbox inputs' instead of '...
null
sveltejs__svelte__16897
sveltejs/svelte
16,897
defect
30e2b23b591ec560a8972caffc37b2974fabbfb0
2f22c615dd0f1b996b2ed74bb3ea34af9da58f8b
fix: flush when pending boundaries resolve
This fixes a somewhat nasty bug that prevents effects (such as attachments) running inside newly-resolved pending boundaries under some circumstances. As the comment suggests, it feels like a _bit_ of a kludge, but for now we need it. ### Before submitting the PR, please make sure you do the following - [ ] It...
diff --git a/.changeset/swift-starfishes-knock.md b/.changeset/swift-starfishes-knock.md new file mode 100644 index 000000000000..790b3fe697aa --- /dev/null +++ b/.changeset/swift-starfishes-knock.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: flush when pending boundaries resolve diff --git a/packages/svelte/sr...
1
1
0
[{"id": "G0", "claim": "The `flushSync` import added to boundary.js is unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__16923
sveltejs/svelte
16,923
defect
7f8e60fd8a53e1eed28a60b5514bd07b49e97423
0414af0274cf76bff27af3f5cb14f7bdd2f2581f
fix: generate correct code for `each` blocks with async body
Closes #16922 ### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [x] Prefix yo...
diff --git a/.changeset/wicked-goats-begin.md b/.changeset/wicked-goats-begin.md new file mode 100644 index 000000000000..04a22aa3100a --- /dev/null +++ b/.changeset/wicked-goats-begin.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: generate correct code for `each` blocks with async body diff --git a/packages/sve...
1
1
0
[{"id": "G0", "claim": "The SSR test sample should be rewritten as suggested (an each block that renders its async body plus a length-0 each block exercising the :else branch) together with the corresponding _expected.html file, whose absence was confusing.", "category": "testing", "verdict": "supported", "priority": "...
null
sveltejs__svelte__16930
sveltejs/svelte
16,930
defect
93012e1e6fce4d26b75d065301330cbe8a9e489a
fa403c26a788045c535026afb6ad9984584139e9
fix: guard contents updated before the guard itself
Fixes #16850, fixes #16775, fixes #16795, fixes #16982 #16631 introduced a bug that results in the effects within guards being evaluated before the guards themselves. I believe iterating the effects in reverse fixes the issue without any further regressions. An alternative approach could be to actually sort effects ...
diff --git a/.changeset/witty-seas-learn.md b/.changeset/witty-seas-learn.md new file mode 100644 index 000000000000..b02060481bb0 --- /dev/null +++ b/.changeset/witty-seas-learn.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +ensure guards (eg. if, each, key) run before their contents diff --git a/packages/svelte/src...
10
7
3
[{"id": "G0", "claim": "The change only fixes the first occurrence of the issue in #16775 — clicking the button three times still logs \"one\", so the main issue remains unfixed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changeset title sho...
null
sveltejs__svelte__16935
sveltejs/svelte
16,935
defect
93012e1e6fce4d26b75d065301330cbe8a9e489a
489ccc0a6dd52dd3f21e6135e60f3f86410df601
fix: unset context on stale promises
When a stale promise is rejected in `async_derived`, and the promise eventually resolves, `d.resolve` will be noop and `d.promise.then(handler, ...)` will never run. That in turns means any restored context (via `(await save(..))()`) will never be unset. We have to handle this case and unset the context to prevent erro...
diff --git a/.changeset/major-beans-fry.md b/.changeset/major-beans-fry.md new file mode 100644 index 000000000000..8f35683cd623 --- /dev/null +++ b/.changeset/major-beans-fry.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: unset context on stale promises diff --git a/packages/svelte/src/internal/client/reactivit...
4
2
0
[{"id": "G0", "claim": "The new test sample is hard to make sense of and should have a version that does not rely on `setTimeout`, so the bug can be seen in the playground.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code should not need to monke...
null
sveltejs__svelte__16944
sveltejs/svelte
16,944
defect
23e2bb3b89cf27bd4526c59a03cee86df1bd3eb2
7872d3b78cffe093a5375df10371a9de7e65c6c3
fix: don't rerun async effects unnecessarily
Since #16866, when an async effect runs multiple times, we rebase older batches and rerun those effects. This can have unintended consequences: In a case where an async effect only depends on a single source, and that single source was updated in a later batch, we know that we don't need to / should not rerun the older...
diff --git a/.changeset/wild-mirrors-take.md b/.changeset/wild-mirrors-take.md new file mode 100644 index 000000000000..faf28e7695c5 --- /dev/null +++ b/.changeset/wild-mirrors-take.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: don't rerun async effects unnecessarily diff --git a/packages/svelte/src/internal/cl...
3
3
0
[{"id": "G0", "claim": "Bail out early with `continue` when `sources` is empty instead of proceeding through the reschedule block.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new comment should state what the code does rather than what it is ...
null
sveltejs__svelte__16977
sveltejs/svelte
16,977
defect
7d977fad88c5199773fa0dc234c61440922575c3
7c0c71b72d272a2b2d5a1891262e967dbadd8c68
chore: centralise branch management
The way we handle branches is kinda broken in an async world. We assume — quite reasonably _unless_ you're in an async world — that it's safe to simply bail out of a block if the expression is unchanged from before. When it's time to commit a block, we commit whichever branch corresponds to the most recent invocation, ...
diff --git a/.changeset/yellow-shrimps-provide.md b/.changeset/yellow-shrimps-provide.md new file mode 100644 index 000000000000..a29385660ad4 --- /dev/null +++ b/.changeset/yellow-shrimps-provide.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +chore: centralise branch management diff --git a/packages/svelte/src/compi...
5
3
2
[{"id": "G0", "claim": "The current batch is deleted from #batches before the loop iterates it, so the `if (b === batch) break` condition can never be true and the loop keeps iterating past the current batch.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl...
null
sveltejs__svelte__17098
sveltejs/svelte
17,098
defect
b7625fd42c067b7cd03fea9589ef45349f9dedbe
02f8d07364e46ff4bf416c7e4c7b8ac5bf01be04
fix: ensure fork always accesses correct values
Not all batches will flush right after being activated, some will be activated and then `get` is called on a signal. In that case the value was wrong because we did not apply the changes of that batch. By doing `this.apply()` during `activate()` we ensure we do, which fixes (among other things, likely) a forking bug wh...
diff --git a/.changeset/eight-news-laugh.md b/.changeset/eight-news-laugh.md new file mode 100644 index 000000000000..e120b19f5e13 --- /dev/null +++ b/.changeset/eight-news-laugh.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: ensure fork always accesses correct values diff --git a/packages/svelte/src/internal/cl...
1
1
0
[{"id": "G0", "claim": "The added comment on line 289 of batch.js should be reworded to say that errors must not be saved in `batch_values`, or they won't be thrown in `runtime.js#get`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__17105
sveltejs/svelte
17,105
defect
eea8a18cf2ff8245f0687e8012d5923c5d508d03
5b423622e5494b3cbe8c4fbeb26d1f3ef25ff3c9
chore: remove `UNOWNED` flag
This makes good on my threat in https://github.com/sveltejs/svelte/pull/17102#issue-3582373113 to sort out all the convoluted nonsense around `UNOWNED` and `DISCONNECTED` deriveds. We've made this far more complicated than it needs to be. All we need to do is push the current signal to its dependencies' `reactions` whe...
diff --git a/packages/svelte/src/internal/client/constants.js b/packages/svelte/src/internal/client/constants.js index c2f7861b78ae..6597208bd6bb 100644 --- a/packages/svelte/src/internal/client/constants.js +++ b/packages/svelte/src/internal/client/constants.js @@ -26,8 +26,7 @@ export const EFFECT_PRESERVED = 1 << 19...
3
2
1
[{"id": "G0", "claim": "The new CONNECTED constant needs to be moved up with the other shared flags instead of sitting under '// Flags exclusive to deriveds', and extensive documentation of the flag (what it is, when it can flip) should be added.", "category": "maintainability", "verdict": "supported", "priority": "P2"...
null
sveltejs__svelte__17115
sveltejs/svelte
17,115
defect
22435b2447645b0e8b083373d1e00c7424c5f27c
47ea6a53b9358fa98128e273e527657fb3174b21
fix: delete from batch_values on updates
> this merges into #17105, not into main This fixes a bug where a derived would still show its old value even after it was indirectly updated again within the same batch. This can for example happen by reading a derived on an effect, then writing to a source in that same effect that makes the derived update, and the...
diff --git a/packages/svelte/src/internal/client/reactivity/batch.js b/packages/svelte/src/internal/client/reactivity/batch.js index 57aa185a31db..9d1d776188e3 100644 --- a/packages/svelte/src/internal/client/reactivity/batch.js +++ b/packages/svelte/src/internal/client/reactivity/batch.js @@ -286,11 +286,12 @@ export ...
2
1
1
[{"id": "G0", "claim": "The `batch_values.delete(derived)` in `update_derived` is redundant because nothing puts derived values into `batch_values` in the first place, and the PR's delete-based approach removes caching for deriveds altogether when time-travelling, which feels like a quite high cost.", "category": "perf...
null
sveltejs__svelte__17162
sveltejs/svelte
17,162
defect
0e8f49b25fbb11bf0bf9378b9423feeb0176f316
cbd804bc856c8cb05f55bf1ab132f1390fa31503
fix: defer batch resolution until earlier intersecting batches have committed
This fixes an awkward bug with `each` blocks containing `await`, especially keyed `each` blocks. If you do `array.push(...)` multiple times in distinct batches, something weird happens — to the `each` block, the array looks this... ```js [1] ``` ...then this... ```js [undefined, 2] ``` ...then this.....
diff --git a/.changeset/spicy-teeth-tan.md b/.changeset/spicy-teeth-tan.md new file mode 100644 index 000000000000..c7efa65130e6 --- /dev/null +++ b/.changeset/spicy-teeth-tan.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: defer batch resolution until earlier intersecting batches have committed diff --git a/pack...
3
3
2
[{"id": "G0", "claim": "After merging main, a test fails with this PR's changes (and a second, async-linear-order-same-derived, fails as well once the rerun-async-effects code in #commit is removed), apparently because deriveds captured into batch.current by #17917 defeat the intersects/differs blocking logic, and it i...
null
sveltejs__svelte__17163
sveltejs/svelte
17,163
defect
3b4b0adcd5b7d1c48f4f2eb45b30a8471484b2a8
e3ecd2a80b1156b7afa7fed0581ce5c38ae5501a
fix: don't set derived values during time traveling
Just a failing test because I tried to fix this without much success. This also causes SvelteKit to fail when preloading happens (I though #17147 would've fixed it, but the problem is with blocks that use deriveds). The issue is that we update `derived.v` and increase the version even if the state change happens in ...
diff --git a/packages/svelte/src/internal/client/reactivity/deriveds.js b/packages/svelte/src/internal/client/reactivity/deriveds.js index 070230a461ff..c2e4c3f26086 100644 --- a/packages/svelte/src/internal/client/reactivity/deriveds.js +++ b/packages/svelte/src/internal/client/reactivity/deriveds.js @@ -356,9 +356,16...
1
1
1
[{"id": "G0", "claim": "Setting `derived.v` should be skipped only when a fork is running (`!current_batch?.is_fork`), not additionally gated on `batch_values === null`, so non-fork batches always set the value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sveltejs__svelte__17191
sveltejs/svelte
17,191
defect
92c936d9b34813dc635d265da2ddb8fd2185582e
745ed585a31f53d8285a58296294541a7d2aa23f
fix: maintain correct linked list of effects when updating each blocks
fixes #17184 — we now maintain the links between effects correctly (I think/hope) such that we never encounter an infinite loop ### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features a...
diff --git a/.changeset/upset-eyes-relax.md b/.changeset/upset-eyes-relax.md new file mode 100644 index 000000000000..b5c9b4e831e8 --- /dev/null +++ b/.changeset/upset-eyes-relax.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: maintain correct linked list of effects when updating each blocks diff --git a/packages...
1
1
0
[{"id": "G0", "claim": "Add a comment in create_item elaborating why the code sets next but not prev on the effects, since setting both directions feels natural at first.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__17208
sveltejs/svelte
17,208
defect
1aafbc47fff5766f272228d7346dda6816985318
3b98a177733bcf4298b875c5ae9d8f53265bbbe3
fix: don't execute attachments and attribute effects eagerly
attributes_effect and attachments are blocks since they need the managed "don't just destroy children effects"-behavior, but they're not block effects in the sense of "run them eagerly while traversing the effect tree or while flushing effects". Since the latter was the case until now, it meant that forks could cause v...
diff --git a/.changeset/curvy-clouds-cut.md b/.changeset/curvy-clouds-cut.md new file mode 100644 index 000000000000..f980e513c612 --- /dev/null +++ b/.changeset/curvy-clouds-cut.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: don't execute attachments and attribute effects eagerly diff --git a/packages/svelte/sr...
1
1
0
[{"id": "G0", "claim": "The BLOCK_NON_EAGER flag would be better named after what effects are (a MANAGED_EFFECT flag applying to both block effects and managed-but-not-a-block effects), which would also allow simplifying checks like (flags & BLOCK_EFFECT) !== 0 && (flags & BLOCK_NON_EAGER) === 0 in mark_reactions.", "c...
null
sveltejs__svelte__17315
sveltejs/svelte
17,315
defect
46603d93cbe072ea463a099894e2bccdd264051e
370beb4b0a838596e117ccd0dcdf989cce0de3a2
fix: Don't crash on `hydratable` serialization failures
This one was fun to track down. Closes #17313. ### Before submitting the PR, please make sure you do the following - [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.c...
diff --git a/.changeset/two-lizards-poke.md b/.changeset/two-lizards-poke.md new file mode 100644 index 000000000000..b94a93b3fa77 --- /dev/null +++ b/.changeset/two-lizards-poke.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: Don't crash on hydratable serialization failure diff --git a/packages/svelte/src/intern...
1
1
0
[{"id": "G0", "claim": "The changeset entry should start with a lowercase letter, like everything else in the changelog.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__17362
sveltejs/svelte
17,362
defect
435da13fddaf1872a3fb46a7e8a20bb73322148e
a21bb4c7e8ce45d8d081e38fe275af23259c4e11
fix: derived reactivity and perf regressions
fixes https://github.com/sveltejs/kit/issues/15059, fixes #17342, fixes #17111, fixes #17323, fixes #17352 #17105 resulted in a few regressions to how deriveds with no dependencies are treated. At worst, it broke reactivity for deriveds in branch effects, but I realized it also casued perf regressions like #17342. B...
diff --git a/.changeset/beige-sloths-cry.md b/.changeset/beige-sloths-cry.md new file mode 100644 index 000000000000..3d3362819017 --- /dev/null +++ b/.changeset/beige-sloths-cry.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: performance regression affecting deriveds with no dependencies (#17342) diff --git a/.c...
3
2
2
[{"id": "G0", "claim": "The branch-effect clause of the reconnect condition feels wrong because a branch effect is not a reactive context: dummdidumm thinks connecting a derived that is only read there could leak reaction B, since the reaction can never be cleaned up.", "category": "correctness", "verdict": "supported"...
null
sveltejs__svelte__17550
sveltejs/svelte
17,550
defect
5e0d18d2102c05c14ba71a52a222f4f126215f31
aa95dcbe011a53b33b14b6528c30c3ff4ab7d1ae
fix: each block breaking with effects interspersed among items
fixes #17433 Alternative to #17541. The single advance at the start of the loop in https://github.com/sveltejs/svelte/pull/17541#issuecomment-3801212572 fixes the sample in that pr, but effects could be interspersed elsewhere among the block's items. Since `current` gets advanced several more times further down, it ...
diff --git a/.changeset/thirty-carpets-attack.md b/.changeset/thirty-carpets-attack.md new file mode 100644 index 000000000000..6b3949989a79 --- /dev/null +++ b/.changeset/thirty-carpets-attack.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: each block breaking with effects interspersed among items diff --git a/p...
1
1
0
[{"id": "G0", "claim": "The JSDoc comment for skip_past_non_branch_effects should mention that non-branch effects could be created with `createSubscriber`, for example.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__17591
sveltejs/svelte
17,591
defect
26b09ec420bca70d4a718f61dd83393cc2af7b72
860e40eda76391d7a6e4b950551b2490074d11f9
fix: handle renderer.run rejections
## Summary - Mark the async work started in `Renderer.run()` as handled to prevent unhandled rejections - Attach the run promise to `renderer.promise` so async SSR waits for it ## Context `Renderer.run()` starts async work and returns the promise chain, but the work isn’t associated with `renderer.promise` and no reje...
diff --git a/.changeset/tidy-zebras-design.md b/.changeset/tidy-zebras-design.md new file mode 100644 index 000000000000..3b18af798f57 --- /dev/null +++ b/.changeset/tidy-zebras-design.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: prevent unhandled exceptions arising from dangling promises in <script> diff --gi...
1
1
0
[{"id": "G0", "claim": "The run() implementation is more complex than needed: only the last promise in the chain needs a .catch, and since $$renderer.run is never called directly inside a $$renderer.child block the run promise can simply be assigned to this.promise (suggested: `promise.catch(noop);` and `this.promise =...
null
sveltejs__svelte__17745
sveltejs/svelte
17,745
defect
ee3807ecbe524d4fd9eff03fb161a55262baf883
375949513b4927a8a6b7e6ac810127283961dee0
fix: keep select.__value current when effect is deferred
## Summary Fixes #17148 When a `<select>` is focused inside an async boundary, the `bind_select_value` effect gets deferred by the batch system, leaving `select.__value` stale. If options then change dynamically (e.g. via `{#each}`), the `MutationObserver` in `init_select` uses the stale `__value`, snapping the selec...
diff --git a/.changeset/fix-select-stale-value.md b/.changeset/fix-select-stale-value.md new file mode 100644 index 000000000000..bd092ea17d94 --- /dev/null +++ b/.changeset/fix-select-stale-value.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: keep select.__value current when effect is deferred diff --git a/pack...
1
1
0
[{"id": "G0", "claim": "The changeset description should be reworded to \"fix: update `select.__value` on `change`\" instead of \"fix: keep select.__value current when effect is deferred\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__17805
sveltejs/svelte
17,805
defect
25a1c5368be77b1014c3ff8b79cf9b1fe7f706f5
9d3dae29c8257784f6782d037ea766824ee9bad6
chore: refactor scheduling
This simplifies the scheduling logic and will likely improve performance in some cases. Previously, there was a global `queued_root_effects` array, and we would cycle through the batch flushing logic as long as it was non-empty. This was a very loosey-goosey approach that was appropriate in the pre-async world, but has...
diff --git a/.changeset/ninety-kings-attend.md b/.changeset/ninety-kings-attend.md new file mode 100644 index 000000000000..40913dab676c --- /dev/null +++ b/.changeset/ninety-kings-attend.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +perf: avoid re-traversing the effect tree after `$:` assignments diff --git a/packa...
2
2
2
[{"id": "G0", "claim": "This PR commits a test that fails — effects get scheduled on a batch that has already committed, exposing subtle timing issues the PR has not yet resolved — so the test is skipped; the underlying failure needs to be fixed and the skip removed.", "category": "correctness", "verdict": "supported",...
null
sveltejs__svelte__17873
sveltejs/svelte
17,873
defect
3df2645451e6e9441e02d423d2fe77b8e4a38f59
ce2038f186df842ff9f137fa2ff6df0abc4160ff
fix: handle asnyc updates within pending boundary
When an async value is updated inside the boundary while the pending snippet is shown, we previously didn't notice that update and instead showed an outdated value once it resolved. This fixes that by rejecting all deferreds inside an async_derived while the pending snippet is shown.
diff --git a/.changeset/nasty-friends-crash.md b/.changeset/nasty-friends-crash.md new file mode 100644 index 000000000000..5895f3752a08 --- /dev/null +++ b/.changeset/nasty-friends-crash.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: handle asnyc updates within pending boundary diff --git a/packages/svelte/src/...
1
1
0
[{"id": "G0", "claim": "The new guard should read the boundary directly as `(parent.b).is_rendered()` instead of casting `active_effect` to `Effect` to reach `.b`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sveltejs__svelte__17928
sveltejs/svelte
17,928
defect
3dbd95075c324304d668d72e0c08ed958173fb8f
bbee43cb24d1537fb3703bd98fffd4361389a214
fix: avoid traversing clean roots
Before #17805, all batches drew from the same `queued_root_effects` and did reset them to the empty array when starting a flush. After the refactoring roots are scheduled per batch. This introduces a possible race condition where the same root is scheduled multiple times. It was possible because of the rebase logic in ...
diff --git a/.changeset/stupid-chefs-rescue.md b/.changeset/stupid-chefs-rescue.md new file mode 100644 index 000000000000..d21389e97ad5 --- /dev/null +++ b/.changeset/stupid-chefs-rescue.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: avoid traversing clean roots diff --git a/packages/svelte/src/internal/client/...
2
2
0
[{"id": "G0", "claim": "The `scheduled` variable added in the rebase path looks unnecessary — the tests still pass without it if only the `batch.#roots = []` line is kept — so do we need it?", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It should be imp...
null
sveltejs__svelte__17977
sveltejs/svelte
17,977
defect
803c565febd07be8fd08377ffc51f23d7bf6b8f3
25f331921d6c75451856a42132bba6eedd82f056
fix: group sync statements
We were just putting each statement into its own promise. Besides this being bad for perf, it also introduces subtle timing issues - the execution order of the code could change in bad ways. Fixes #17940
diff --git a/.changeset/puny-masks-run.md b/.changeset/puny-masks-run.md new file mode 100644 index 000000000000..162abe4ae79e --- /dev/null +++ b/.changeset/puny-masks-run.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: group sync statements diff --git a/packages/svelte/src/compiler/phases/2-analyze/index.js b/p...
1
1
1
[{"id": "G0", "claim": "The blocker index is computed incorrectly when sync_group is non-empty before an async entry is pushed, because the pending sync entries are flushed only after the blocker index is derived from analysis.instance_body.async.length.", "category": "correctness", "verdict": "supported", "priority": ...
null
sveltejs__svelte__18040
sveltejs/svelte
18,040
defect
51629ec7bd4aeaa3cf165db2a2841ebafd0bd118
29461225cb4b7ff22f5ab62d1f89c83eeac752da
fix: skip rebase logic in non-async mode
Fixes part of #17940 (the hydration->error thing still needs a repro). Essentially in sync mode render effects are executed during traversing the effect tree, and when flushSync is called during that it can cause the timing of things getting out of sync such that you end up wanting to rebase another branch, which is ne...
diff --git a/.changeset/ripe-mails-wave.md b/.changeset/ripe-mails-wave.md new file mode 100644 index 000000000000..6ccc1c724d43 --- /dev/null +++ b/.changeset/ripe-mails-wave.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: skip rebase logic in non-async mode diff --git a/packages/svelte/src/internal/client/react...
2
2
1
[{"id": "G0", "claim": "The sync-mode bail-out in #commit is a bit of a kludge indicative of a problem elsewhere — ideally #commit could proceed harmlessly, and the bail-out presumably masks a bug that would reappear if the app in question were to start using async mode (the reviewer would sooner disallow flush-inside-...
null
sveltejs__svelte__18088
sveltejs/svelte
18,088
defect
f8ef6de3251bfd4e7c9482092b9c4dc657bb3425
7ec6e9261b93b982699293061c441c0e933e26c9
fix: avoid false positives for reactivity loss warning
Avoids two categories of false positives for reactivity loss warning: 1. if you have synchronously read signals already as part of invoking the async_derived function, then it shouldn't warn when these signals are read after an await if we know they haven't changed (we check the write version for that) 2. `track_reac...
diff --git a/.changeset/twenty-snakes-design.md b/.changeset/twenty-snakes-design.md new file mode 100644 index 000000000000..ec1ac591f039 --- /dev/null +++ b/.changeset/twenty-snakes-design.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: avoid false positives for reactivity loss warning diff --git a/packages/sve...
2
1
1
[{"id": "G0", "claim": "effect_deps is collected transitively from the previous run of the effect, so it may bear no relation to the dependencies when the warning triggers; instead the values read synchronously should be tracked (the simpler dependency tracking of #18090/#18091).", "category": "correctness", "verdict":...
null
sveltejs__svelte__2989
sveltejs/svelte
2,989
defect
caebe0deb80d959ad7c7b5276d7e017be71769c7
cb5fddbc946a70576f673ad7e284da521c8f964d
Support dimension bindings in cross-origin mode
`bind:clientWidth` and friends currently don't work when you're under cross-origin restrictions. This manifests itself in the REPL or any time a component with those bindings is used in a cross-origin `iframe`. This PR just relies on message passing in these cases. The only browser that doesn't support this is IE11,...
diff --git a/src/compiler/compile/render-dom/wrappers/Element/index.ts b/src/compiler/compile/render-dom/wrappers/Element/index.ts index 488dc01504d0..bcf90471c48d 100644 --- a/src/compiler/compile/render-dom/wrappers/Element/index.ts +++ b/src/compiler/compile/render-dom/wrappers/Element/index.ts @@ -481,15 +481,8 @@ ...
3
2
1
[{"id": "G0", "claim": "It may be possible that none of the conditions in is_crossorigin() is true without an exception being thrown, leaving crossorigin unset — and if that cannot happen, the logic should be made a little clearer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int...
null
svendiedrichsen__jollyday__125
svendiedrichsen/jollyday
125
defect
fcc9b8f9b472fe5072f2944fbb32704c33f70074
ad2d92cf31fa6da6d8e9e04a3a04f65f9a08c814
Ukraine refinement
The rule set for Ukrainian holidays is updated with actual changes and checked for eight years (2013-2020). Appropriate test coverage is implemented
diff --git a/src/main/resources/descriptions/holiday_descriptions.properties b/src/main/resources/descriptions/holiday_descriptions.properties index 66a1ee74..f237a6ad 100644 --- a/src/main/resources/descriptions/holiday_descriptions.properties +++ b/src/main/resources/descriptions/holiday_descriptions.properties @@ -6...
2
1
0
[{"id": "G0", "claim": "The pull request deletes the EGYPT_COPTIC_CHRISTMAS description key that is used in the library, and the reviewer asks why this Christmas key for Egypt was removed.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The October 14 ...
null
svendiedrichsen__jollyday__67
svendiedrichsen/jollyday
67
defect
7a2133b05b702907b8302f5a6b4ac3433501172f
b1bdb649623c57e6e2c64ac2d21673b8e65bc6cb
Avoid locking and use ConcurrentHashMap.computeIfAbsent(...) combination
Avoid locking and use `ConcurrentHashMap.computeIfAbsent(...)` combination in the Cache.
diff --git a/src/main/java/de/jollyday/util/Cache.java b/src/main/java/de/jollyday/util/Cache.java index f687cf00..c1988a4e 100644 --- a/src/main/java/de/jollyday/util/Cache.java +++ b/src/main/java/de/jollyday/util/Cache.java @@ -15,9 +15,8 @@ */ package de.jollyday.util; -import java.util.HashMap; -import java.u...
1
1
0
[{"id": "G0", "claim": "The cachingMap member should be declared as Map<String, VALUE> instead of the more specific ConcurrentMap<String, VALUE> interface.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
svendiedrichsen__jollyday__94
svendiedrichsen/jollyday
94
defect
e359ee24729331fa08201353dbdc911de6e9924f
dcf70c35692178935b4bc174aa7b4856811c6d8c
[tr] Added turkish holidays, with translations where available
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
diff --git a/src/main/java/de/jollyday/HolidayCalendar.java b/src/main/java/de/jollyday/HolidayCalendar.java index 5cfb9530..5968419d 100644 --- a/src/main/java/de/jollyday/HolidayCalendar.java +++ b/src/main/java/de/jollyday/HolidayCalendar.java @@ -42,7 +42,7 @@ public enum HolidayCalendar { PANAMA("PA"), PARAGU...
1
1
1
[{"id": "G0", "claim": "The new Turkish calendar file should use the `tr` hierarchy id and `Turkey` description instead of `se`/`Sweden`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
svenshi__oxidns__38
svenshi/oxidns
38
defect
a45acd0f4e94e4c3c45a59e9ab185994417efad8
f6e0bc74966dc7cda2bf964c0267bdd7e146d0b3
fix(executor): use system ipset/nft commands and add linux integration tests
- replace fragile netlink writes in ipset/nftset executors with system commands - normalize response IPs to masked prefixes before writing - read response records via answers() instead of answer_ip_ttls() - add linux integration tests for real kernel object writes
diff --git a/Cargo.toml b/Cargo.toml index 1121ea70..45fa7551 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,9 +57,6 @@ service-manager = "0.11.0" hotpath = "0.14.0" -[target.'cfg(target_os = "linux")'.dependencies] -neli = "0.7.4" - [features] hotpath = ["hotpath/hotpath"] hotpath-alloc = ["hotpath/hotpath-al...
2
2
0
[{"id": "G0", "claim": "The new ipset unit tests call normalize_ip_for_mask/format_ipset_prefix, which are compiled only under #[cfg(target_os = \"linux\")], so on non-Linux hosts cargo test will fail to compile this module.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
svenstaro__miniserve__1043
svenstaro/miniserve
1,043
defect
53bac039f9bc1d3695d77d156f4976aef4bf2109
3ce9285682df6ccc8df9c254b755eefb87ca0a1b
Fix the wget footer
...by having it use the absolute url instead of the breadcrumbs. I think the changes should be rather self-explanatory, I tested my changes before opening this PR and also ran Clippy and rustfmt and neither said anything, but please still check what I did, just in case.
diff --git a/src/renderer.rs b/src/renderer.rs index 7da73928b..33b91eb8b 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -100,7 +100,7 @@ pub fn page( } } nav { - (qr_spoiler(conf.show_qrcode, abs_url)) + (qr_spoiler(con...
4
4
2
[{"id": "G0", "claim": "The hardcoded offset of 4 in the slash counting that computes --cut-dirs is unexplained and sketchy; svenstaro asks why 4 (M001) and later asks for a small comment explaining what is going on (M008).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
svenstaro__miniserve__1179
svenstaro/miniserve
1,179
defect
4098cb77284fb5045eb45e2696d24194e9f93932
fc6e179d6e613d7274c3b3ee27f5d4f68d11b9e6
Add ability to read auth from file
Usage: ``` $ miniserve --auth-file auth.txt ``` Example auth.txt content ``` joe:123 bob:sha256:a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3 bill: ``` Related issue: #980
diff --git a/src/args.rs b/src/args.rs index f7b42f1ed..020539aea 100644 --- a/src/args.rs +++ b/src/args.rs @@ -72,6 +72,10 @@ pub struct CliArgs { )] pub auth: Vec<auth::RequiredAuth>, + /// Read authentication values from a file. + #[arg(long, value_hint = ValueHint::FilePath, env = "MINISERVE_AUTH...
4
4
1
[{"id": "G0", "claim": "The doc comment for the new flag should not end with a period, per the repo's comment style.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment for `--auth-file` should also describe the format of the file.", "c...
null
svenstaro__miniserve__118
svenstaro/miniserve
118
defect
b2cbe1ccbdf890170b7d0435e1888ba3eab2f2f5
4b024f5a245da1449034644b0c76b54c7fa7e336
Multiple user accounts — Alternate Implementation
Fix https://github.com/svenstaro/miniserve/issues/100 Close https://github.com/svenstaro/miniserve/pull/104 Resolve https://github.com/svenstaro/miniserve/pull/104#issuecomment-490592373 **TODO:** - [x] Add tests
diff --git a/src/args.rs b/src/args.rs index ea0a4acac..11357c2a4 100644 --- a/src/args.rs +++ b/src/args.rs @@ -42,7 +42,7 @@ struct CLIArgs { /// username:password, username:sha256:hash, username:sha512:hash /// (e.g. joe:123, joe:sha256:a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3) ...
5
4
1
[{"id": "G0", "claim": "The doc comment of match_auth should document its new tendency to accept when any of the required auths match, instead of just saying 'Verify authentication'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`miniserve -a foo...
null
svenstaro__miniserve__1193
svenstaro/miniserve
1,193
defect
fc5fd3ccf9073d6178575c9329caa16dcb1a0fa6
1fd606031d018854d2b8d08d30863105567fcccc
Add pretty urls
This adds a new flag namely `--pretty-urls` that when enabled will serve the equivalent `.html` if it exists. Very much the same approach that [`netlify` uses](https://docs.netlify.com/site-deploys/post-processing/). It can be quite useful when having hrefs like `/about` serve `/about.html`.
diff --git a/src/args.rs b/src/args.rs index f7b42f1ed..590ac146d 100644 --- a/src/args.rs +++ b/src/args.rs @@ -41,6 +41,14 @@ pub struct CliArgs { #[arg(long, requires = "index", env = "MINISERVE_SPA")] pub spa: bool, + /// Activate Pretty URLs mode + /// + /// This will cause the server to serve...
2
2
0
[{"id": "G0", "claim": "Remove the \"Pretty URLs enabled.\" info log line, since other configuration choices are not logged either.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a small comment above the pretty-urls block explaining what the logic b...
null
svenstaro__miniserve__1308
svenstaro/miniserve
1,308
defect
9bd740b2d07254c4e2a7ae255a19350ce6e2e6de
e6a908fc9d709fe9ee4a001ad0d7b99e0d0770c3
Set default sorting order and method with arguments
My intention is to add a way to sort by `descending` `date` (or anything else) by default. I think the best way to do this is with a command line argument but I am open to suggestions. This is useful for anyone who wants the most recently created/edited files at the top of the list when the page first loads. W...
diff --git a/README.md b/README.md index 0d5bf4bdb..13eadccde 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,18 @@ Options: [env: MINISERVE_HIDDEN=] + -S, --default-sorting-method + Default sort method for file list + + [env: MINISERVE_DEFAULT_SORTING_METHOD=] + [possib...
5
3
2
[{"id": "G0", "claim": "The pull request should add a description of what it is supposed to do and why, e.g. why the current sorters are not sufficient and whether the idea is to provide a sorting default.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
svenstaro__miniserve__1329
svenstaro/miniserve
1,329
defect
bc43e8d1c23c8ac7dfa3c5e05e49cfaa46c1eab7
2b029e95570312de19b039c74f55298a439d6ad2
add `--disable-indexing` cli flag to completely disable directory indexing
closes #1328
diff --git a/src/args.rs b/src/args.rs index e42d2ff66..7502d9fa5 100644 --- a/src/args.rs +++ b/src/args.rs @@ -294,6 +294,12 @@ pub struct CliArgs { /// Enable README.md rendering in directories #[arg(long, env = "MINISERVE_README")] pub readme: bool, + + /// Disable indexing + /// This will prev...
4
4
2
[{"id": "G0", "claim": "Please add a test for the --disable-indexing behavior, since it is a fairly impactful change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The disable-indexing flag should also have a short version, e.g. short = 'I', added to t...
null
svenstaro__miniserve__1453
svenstaro/miniserve
1,453
defect
8876500f3caa42b21771576367bf5426782da104
12d7a197f726735c0e10f7c64ada007ba4e753ae
new flag: Enable renaming during file upload if duplicate exists
Fixes #1452 I think this will work as a flag to rename files. It won't work when the file contains multiple extension like `.tar.gz` which is hard to do, as we could make it work with that, but any file with multiple `.` in the text for no meaning will mess it up. But I can make that change if you think that's accep...
diff --git a/README.md b/README.md index bff3de703..2bad20a37 100644 --- a/README.md +++ b/README.md @@ -289,6 +289,11 @@ Options: [env: OVERWRITE_FILES=] + -R, --rename-duplicate + Enable renaming files during file upload if duplicate exists + + [env: RENAME_DUPLICATE_FILES=] + -r,...
5
4
2
[{"id": "G0", "claim": "The pull request needs tests showing that overwriting is not possible without extra flags, that --overwrite-files works as expected, and that --rename-duplicate works as expected.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
svenstaro__miniserve__1492
svenstaro/miniserve
1,492
defect
cd80432fde0a566c82ffbdd2bc6b10562175a083
64d9eff0fd19f52a805814af382bba4b6e72ec98
Adding an option to serve files from a different server
Adding an option to specify an absolute hostname to serve the files from somewhere else. In my usecase, I wanted to have an authenticated instance for browsing and an unauthenticated one to serve files (with indexing disabled). Instead of having to rewrite the URL when sharing a link, this option would allow this wi...
diff --git a/README.md b/README.md index d2110657d..2aa2caba2 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,15 @@ Options: [env: MINISERVE_RANDOM_ROUTE=] + --file-external-url <FILE_BASE_URL> + Optional external URL (e.g., 'http://external.example.com:8081') prepended to file links ...
10
9
4
[{"id": "G0", "claim": "The new option should be named after the common 'external URL'/'public URL' convention instead of 'file-base-url'.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The wget footer command does not account for the new --file-external...
null
svenstaro__miniserve__1495
svenstaro/miniserve
1,495
defect
fd93b7b0b5579114132cd3edc6d646f5b720e0e5
673fb629d4ee64e85e4b70054b665aec7c35c497
Fix --no-symlinks not filtering files and dirs nested in symlinks
Currently, if you can guess the name of a symlinked dir, and the name of files or directories nested inside, miniserve will not prevent you from accessing them, even when `--no-symlinks` is passed.
diff --git a/src/main.rs b/src/main.rs index c4432bf76..6b18b786f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -385,8 +385,20 @@ fn configure_app(app: &mut web::ServiceConfig, conf: &MiniserveConfig) { .prefer_utf8(true) .redirect_to_slash_directory() .path_filter(move |path, _| ...
3
3
0
[{"id": "G0", "claim": "The rewritten symlink-filtering logic in the path_filter closure in src/main.rs is now complex enough that a few explanatory comments should be sprinkled in.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new fixture ...
null
svenstaro__miniserve__1505
svenstaro/miniserve
1,505
defect
f91f9477dba2c35bc4ce6814da746b589b4627aa
8c92ce6244ef22334b459ff0d67879de904ec766
Minimalist search/filter feature
I recently needed a minimalist HTTP static file server, and I found that miniserve fits my needs very well. However, it lacks a feature to filter by filename, which I really need. Coincidentally, Rust is a language I've been enjoying recently, so I tried adding this feature: add a `?search=xxx` query in url will fil...
diff --git a/README.md b/README.md index 32822060e..d7999a348 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,15 @@ You can enable a convenient copy-pastable footer for `wget` using `--show-wget-f Afterwards, check the bottom of any rendered page. It'll have a neat `wget` command you can easily copy-paste to re...
10
7
1
[{"id": "G0", "claim": "The pull request's search feature needs basic documentation so users know it exists.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The failing CI run (the auth_multiple_accounts_pass port-bind error) should be fixed.", "ca...
null
svenstaro__miniserve__1506
svenstaro/miniserve
1,506
defect
f91f9477dba2c35bc4ce6814da746b589b4627aa
faa8c8e5724855f3e73a2461542a113a706fe6e5
Add a --chmod option to set file mode on uploaded files
see also #124. I haven't looked into tests / docs yet. It works for me so I send it first to get early feedback.
diff --git a/src/args.rs b/src/args.rs index f9ce335bb..865bafa54 100644 --- a/src/args.rs +++ b/src/args.rs @@ -225,6 +225,18 @@ pub struct CliArgs { )] pub web_upload_concurrency: usize, + /// chmod permissions of uploaded files + /// + /// This takes an octal number that is similar to the one th...
6
4
2
[{"id": "G0", "claim": "Add a doc comment above the new chmod test explaining its intention.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a second test covering the chmod error case where the chmod fails for lack of permissions, if there is ...
null
svenstaro__miniserve__1518
svenstaro/miniserve
1,518
defect
805052b004b9a04b7270a7417e576a2be69e97a2
e24472cfbb5e7427a436f356dfcf60f24b5bfffa
File & directory deletion feature
This is continuation of https://github.com/svenstaro/miniserve/pull/1093. I had to create a new PR since I don't have permission to push to that PR
diff --git a/data/style.scss b/data/style.scss index 1026ee534..403b42e83 100644 --- a/data/style.scss +++ b/data/style.scss @@ -403,6 +403,10 @@ table thead th.date { width: 21em; } +table thead th.actions { + width: 4em; +} + table tbody tr:nth-child(odd) { background: var(--odd_row_background); } @@ -4...
1
1
0
[{"id": "G0", "claim": "Remove or replace the gaudy println! debug statements added to the rm-file tests in tests/rm_files.rs (in assert_rm_ok and assert_rm_err) with less showy output before merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
svenstaro__miniserve__1529
svenstaro/miniserve
1,529
defect
b3f05e8a139bb84391402784984917f6f7ca487e
930b7d18141e3a1c5371688f519b18d4f2ef1c36
feat: support specify log color
As title. Introduce new arg `--log-color` with possible values: "auto", "always", "never" to specify log output color. It is useful for: ```bash miniserve -v --log-color always ... | tee log.txt ```
diff --git a/src/args.rs b/src/args.rs index af507a9ad..907090dab 100644 --- a/src/args.rs +++ b/src/args.rs @@ -424,6 +424,14 @@ pub struct CliArgs { /// The user should take care this results in a valid URL, no further checks are being done. #[arg(long = "file-external-url", env = "MINISERVE_FILE_EXTERNAL_U...
3
3
1
[{"id": "G0", "claim": "Use an enum, following the existing pattern in src/args.rs, instead of a String with a value_parser list for the --log-color option.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Apply the suggested doc-comment wording: drop the ...
null
svenstaro__miniserve__1534
svenstaro/miniserve
1,534
defect
adc76d6fa97051c09e79e751a4b5ed1d73029b41
9c399592e8a3b6f1c7179313f201d4f22cf97cc2
Use forward slashes in ZIP files; rewrite archive tests; refine error msg
Hello! I'm running miniserve on Windows. I found that my files in produced ZIP files cannot be correctly extracted on macOS, but Windows Explorer didn't complain about it. After reading a post [^superuser-1382839], I thought I can fix it. Now here's the PR. [^superuser-1382839]: windows - Zip files expand with ba...
diff --git a/tests/archive.rs b/tests/archive.rs index 2e96797f7..9e84038f3 100644 --- a/tests/archive.rs +++ b/tests/archive.rs @@ -1,6 +1,8 @@ use reqwest::StatusCode; use rstest::rstest; use select::{document::Document, predicate::Text}; +use std::io::Cursor; +use zip; mod fixtures; @@ -90,3 +92,67 @@ fn arc...
10
7
2
[{"id": "G0", "claim": "Fixing the Windows ZIP path issue downstream in miniserve may be incorrect because it looks like a bug in the `zip` crate (or a misuse of it) — the author should read into the `zip` crate to see how it deals with this, since maybe we are holding it wrong.", "category": "design", "verdict": "oppo...
null
svenstaro__miniserve__327
svenstaro/miniserve
327
defect
cabc1539cea978202569fb51b292dc979be94143
aa503c46c384c13fb02bf0cc98438336a161fcd4
Bind to random available port when port 0 specified
Example of output: ``` miniserve . --port 0 miniserve v0.7.0 Serving path /some/neat/path at http://[::]:45159, http://127.0.0.1:45159 Quit by pressing CTRL-C ``` Should fix #81
diff --git a/Cargo.lock b/Cargo.lock index ddcdb7440..96fe95fae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1753,6 +1753,7 @@ dependencies = [ "percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "port_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "pretty_asse...
3
3
1
[{"id": "G0", "claim": "Remove the duplicate port_check = \"0.1\" entry from the dev-dependencies since the pull request already added it to the main dependencies.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parsed port should be parsed a...
null
svenstaro__miniserve__330
svenstaro/miniserve
330
defect
1904c4e947f0c0549b78c4bb94f55f529e4916ba
f87d193fb3b264844872555be459e26dd0c68b68
Add generate QR code
![preview](https://user-images.githubusercontent.com/23690145/85997057-9e4e7480-ba3b-11ea-9f27-440c9a50f34e.png) #45
diff --git a/Cargo.lock b/Cargo.lock index ddcdb7440..98132d06e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1753,6 +1753,7 @@ dependencies = [ "percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "port_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "pretty_asse...
4
4
2
[{"id": "G0", "claim": "Add a CLI switch (e.g. `--no-qr` or similar) to disable the QR code display, to keep the UI tidy for people who don't like the visual bloat.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a parametrized test that checks multip...
null
svenstaro__miniserve__452
svenstaro/miniserve
452
defect
0380afdcf1a4ba90c62d6bd961ff3e4dc82b4acb
ae603366567afb7e0be3955c54c30e1215cf9568
Allow set custom headers from CLI
Try to implement feature request in #319 use [httparse](https://github.com/seanmonstar/httparse) to parse input header and set to actix-web::middleware::DefaultHeader Please let me know if there is any things I could make this code better. Thanks.
diff --git a/Cargo.lock b/Cargo.lock index 3e0f810fa..b938f3189 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1228,9 +1228,9 @@ dependencies = [ [[package]] name = "httparse" -version = "1.3.4" +version = "1.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd179ae861f0c2e53da70d892...
4
4
2
[{"id": "G0", "claim": "The header parsing logic should be moved from main.rs into args.rs, with the field typed as Option<Header> and a custom structopt parse function, so users get better error feedback for a bad header format.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
svenstaro__miniserve__482
svenstaro/miniserve
482
defect
da3dfca784dcbdea29260a028a3884a37c93e569
b2856f8ba2ccaf12b58d5420970612a44085c695
Generate completions with `miniserve --print-completions <shell>`
This patch adds a ~`completions` subcommand~ `--print-completions` option to generate shell completion files at runtime. This ensures the completions are always up to date. Fixes #377. CI should pass once #481 is merged. This is some of my first Rust code so lmk if I'm doing anything weird...
diff --git a/src/args.rs b/src/args.rs index 909a88fb6..a00439ede 100644 --- a/src/args.rs +++ b/src/args.rs @@ -21,7 +21,7 @@ const ROUTE_ALPHABET: [char; 16] = [ about, global_settings = &[structopt::clap::AppSettings::ColoredHelp], )] -struct CliArgs { +pub struct CliArgs { /// Be verbose, includes e...
1
1
1
[{"id": "G0", "claim": "Make completions an option (`--print-completions <shell>`) restricted to the available shells rather than a subcommand, since miniserve uses no subcommands and the user flow should not change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
svenstaro__miniserve__492
svenstaro/miniserve
492
defect
74d17585dc5bd5a52b0090919b1afef4509cde6a
2bae301ed8efcf4239849a45b94cdc42e398b905
Separate tar archive and tar flags
It used to have one flag (-r) to enable both tar archive and tar. Now it has two flags [ -r: for tar, -g: for tar archive]. Related to #451
diff --git a/src/archive.rs b/src/archive.rs index 4df3a312f..28d26b59f 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -53,10 +53,15 @@ impl CompressionMethod { } } - pub fn is_enabled(self, tar_enabled: bool, zip_enabled: bool) -> bool { + pub fn is_enabled( + self, + tar_enabl...
5
2
2
[{"id": "G0", "claim": "Rename the tar-related terminology throughout the change so uncompressed tarballs are called 'uncompressed tar archives' and compressed ones 'gz-compressed tar archives', since tar is always an archive whether compressed or not.", "category": "maintainability", "verdict": "supported", "priority"...
null
svenstaro__miniserve__500
svenstaro/miniserve
500
defect
4719779182d6dcec2f3134436b57a9f0832a4a20
4d2711081e351fc688efba6ba481b1397ab52a74
Interfaces
## 1. Report if any address fails to bind `::actix_web::HttpServer::bind()` fails if and only if ALL the requested addresses fail to bind! an the docs require multiple calls for multiple addresses. ## 2. Fix: faulty bahvior when setting `-i 0.0.0.0` Currrently, `0.0.0.0` address is converted into `127.0.0.1`! C...
diff --git a/Cargo.toml b/Cargo.toml index 1a5f83e20..5d46d810a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,6 +49,7 @@ httparse = "1" http = "0.2" bytes = "1" atty = "0.2" +socket2 = "0.4" [dev-dependencies] assert_cmd = "1" diff --git a/src/main.rs b/src/main.rs index 84a4cb8ee..ecb22f187 100644 --- a/src/m...
7
4
1
[{"id": "G0", "claim": "Functions should be documented with proper `///` docstrings instead of `//` comments.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The low-level socket-option approach needs to work the same on all operating systems (espe...
null
svenstaro__miniserve__508
svenstaro/miniserve
508
defect
d0fc7a774ad69da00895b97319bd5d4935c1ab5d
8fe1c6797af5877e1a3aaa7fd849b6d81558c651
Implement a raw rendering mode for recursive folder download
- Raw mode only displays file/folders and focused on computer processing. So no js, no hints, no colors, no unneeded css classes... - Show a banner in the footer displaying the command to recursively download the current folder with wget # Screenshots ![Screenshot_20210425_175359](https://user-images.githubusercon...
diff --git a/data/style.scss b/data/style.scss index 0b87265d5..5fb6c2c60 100644 --- a/data/style.scss +++ b/data/style.scss @@ -52,6 +52,20 @@ body { padding-top: 1.5rem; font-size: 0.7em; color: var(--footer_color); + + .downloadWget { + display: flex; + flex-direction: row; + j...
6
5
1
[{"id": "G1", "claim": "The CSS class .downloadWget added for the download block should be renamed to .downloadDirectory.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "With the new (modernized) test setup the parametrized-test approach the auth...
null
svenstaro__miniserve__542
svenstaro/miniserve
542
defect
da029329d02bf3f0f75007f2c02f4425d3c2f86b
3974f3f7be2400f126760f05a09752743b7b399e
Implement show symlink destination
Show symlink destination after symlink symbol in directory listing (resemble `ls -l`) Basic testing is included. Related to #499
diff --git a/data/style.scss b/data/style.scss index 0b87265d5..19832c98f 100644 --- a/data/style.scss +++ b/data/style.scss @@ -90,11 +90,18 @@ a.file:hover { color: var(--file_link_color); } +a.symlink, +a.symlink:visited { + font-weight: bold; + color: var(--symlink_color); +} + .symlink-symbol::after...
5
4
0
[{"id": "G0", "claim": "The is_symlink field on Entry is now redundant given the new symlink destination field and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The symlink destination should be computed via a helper that return...
null
svenstaro__miniserve__583
svenstaro/miniserve
583
defect
aade3677bd7648080bc0815966694096a3937c97
20a3cdb7777e8a47163cfc242b0563d77671c3b5
list directory if index not found
closes #275 supersedes #484
diff --git a/src/main.rs b/src/main.rs index 036d7965a..f7e3efdb6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -281,7 +281,12 @@ fn configure_app(app: &mut web::ServiceConfig, conf: &MiniserveConfig) { let uses_random_route = conf.random_route.clone().is_some(); let full_route = format!("/{}", random_route);...
2
2
0
[{"id": "G0", "claim": "The comment in the new index_fallback_to_listing test misspells 'listing' as 'listin' and should read 'listing'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The restructured routing/files-service block in configure_app s...
null
svenstaro__miniserve__755
svenstaro/miniserve
755
defect
83f742ae7eaa26e351b661d0dc80ac987b3a36c6
8e37888aa04a29bc0019f7546cc435420aeaa458
Allow to set the accept input attribute to arbitrary values
This supersedes #750. It still solves #546 but may also prove to be useful in other scenarios by allowing to set more mediatypes.
diff --git a/README.md b/README.md index d6bf32f0f..d613662f9 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,13 @@ Sometimes this is just a more practical and quick way than doing things properly (where `$FILE` is the path to the file. This uses miniserve's default port of 8080) +### Take pictures and upload ...
3
2
2
[{"id": "G0", "claim": "The feature requires another example line of documentation in the README and a test for it, copied from the existing body of tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The feature requires another example line of docum...
null
svenstaro__miniserve__835
svenstaro/miniserve
835
defect
098952a376a7ea6a5410224e0429714d43b1b4e6
cc274ee33d1bc63ca783343af6a74af7d26c281d
fix: static file support route_prefix
Use purely random route for static files if --random-route enabled, otherwise add route_prefix before generated route
diff --git a/Cargo.lock b/Cargo.lock index e133e9966..b861c6d75 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -244,9 +244,9 @@ dependencies = [ [[package]] name = "actix-web-httpauth" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08c25a48b4684f905...
4
3
1
[{"id": "G0", "claim": "The pull request's change should be covered by one of the tests so the static-file route behaviour does not regress again.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "CI is failing due to a formatting problem in the code, whic...
null
svenstaro__miniserve__880
svenstaro/miniserve
880
defect
a576252731e2d28b427e4b317a9043bafc87ce84
83135dac7b2894d0f9ba5fb004d1b04d99251f3f
Add tests for `--readme`
Fixes https://github.com/svenstaro/miniserve/issues/879 I've tried a bit here to write tests. Idk why the `child.kill()?` isn't working properly so I've made two tests in different servers. I also tried to add `readme.md` in `FILES` to just use the testserver, but some other tests failed when I did that.
diff --git a/src/renderer.rs b/src/renderer.rs index 7ec48b0e1..40aa7cd68 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -168,9 +168,11 @@ pub fn page( } } @if let Some(readme) = readme { - div { - ...
5
4
0
[{"id": "G0", "claim": "The `--readme` tests should inject the `TestServer` dependency like the other tests instead of manually spawning and killing the server, and should fetch `server.url()` rather than a hardcoded localhost URL/port.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
svenstaro__wiresmith__17
svenstaro/wiresmith
17
defect
22d883e4dd22634fbf5a277d97a547a67b5f7514
0fa0b1a8c0c3de5a51a001266dc0f17ab07e0ad8
Use keepalives instead of handshakes for timeouts
This PR introduces the use of keepalives instead of handshakes via wireguard. Handshakes are made approx. every minute, keepalives are configurable. This way we can test a peer deletion without waiting for a handshake. This also allows us to introduce tighter timeout intervals, as the lower bound isn't fixed to one min...
diff --git a/interactive_test.kdl b/interactive_test.kdl index 8f4b071..16280b2 100644 --- a/interactive_test.kdl +++ b/interactive_test.kdl @@ -9,19 +9,19 @@ layout { pane { name "wiresmith1" command "podman" - args "exec" "wiresmith1" "bash" "-c" "sleep 2 ...
4
4
1
[{"id": "G0", "claim": "The keepalive value in interactive_test.kdl should use humantime (e.g. 2s) like the other durations.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment should say 'timestamp' rather than 'instant' for the Instant ...
null
svenstaro__wiresmith__207
svenstaro/wiresmith
207
defect
5cf3996ca0914a1166a0e112f69c42c10b46f51b
2f4e65e30a6f616b22a376a1d560b9a2167587f2
BREAKING: Rework Consul integration to use sessions and work across datacenters
# Background The old method of deleting stale wiresmith node configurations in Consul by each node keeping track of whether it has received data from the other node recently and otherwise deleting it has a lot of weird edge cases, and ultimately mean that it's easy for one broken node to completely take down the mes...
diff --git a/Cargo.lock b/Cargo.lock index 4560066..82a0916 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1629,6 +1629,19 @@ dependencies = [ "tokio", ] +[[package]] +name = "tokio-util" +version = "0.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cf6b47b3771c49ac75ad09a6162f5...
7
7
0
[{"id": "G0", "claim": "Use `index.replace(new_index)` instead of `*index = Some(new_index)` when storing the new Consul index.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a high-level explanation of the Consul session and renewal mechani...
null
sverweij__dependency-cruiser__1008
sverweij/dependency-cruiser
1,008
defect
4dbfa19a25dd3ab69378a0fadc59169a3909667c
19d48551783184a0d859e07cf10e2a1398645c49
refactor(report): replaces teamcity-service-messages with local functions
## Description - replaces teamcity-service-messages with local functions ## Motivation and Context The teamcity-service-messages has been working great, without a hitch since the moment we started using it. It's not maintained anymore, however, that's not an issue either: _there's no need for maintenance and i...
diff --git a/package-lock.json b/package-lock.json index 6aa39ee18..b4a04f306 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,6 @@ "rechoir": "^0.8.0", "safe-regex": "^2.1.1", "semver": "^7.7.2", - "teamcity-service-messages": "^0.1.14", "tsconfig-paths-web...
2
2
0
[{"id": "G0", "claim": "The `lAttributes` variable in `inspectionType` (and likewise in `inspection`) is declared with `let` but could be `const` since it is only assigned once and then mutated through array methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
sverweij__dependency-cruiser__1034
sverweij/dependency-cruiser
1,034
defect
2836fc0dd86787ee80bbb35cbbd8c8f10d6cba35
cb9ad6b836e9a6ae80f08aacd42a9eec6b2833cf
refactor(enrich/derive/circular): moves creation of indexed module graph into deriveCycles
## Description - refactor(enrich/derive/circular): moves creation of indexed module graph into deriveCycles ## Motivation and Context - because it's an "implementation detail" and - the indexed module graph is currently used _only_ in deriveCycles, so it's not even a performance optimization; on the contrary...
diff --git a/src/enrich/derive/circular.mjs b/src/enrich/derive/circular.mjs index f2e59d4b2..3ea365228 100644 --- a/src/enrich/derive/circular.mjs +++ b/src/enrich/derive/circular.mjs @@ -1,4 +1,5 @@ /* eslint-disable security/detect-object-injection */ +import IndexedModuleGraph from "#graph-utl/indexed-module-graph...
1
1
1
[{"id": "G0", "claim": "The IndexedModuleGraph variables (lMockIndexedNodes and lIndexedNodes) in test/enrich/derive/circular.spec.mjs are now unused since detectAndAddCycles no longer takes an indexed graph as a parameter, and should be removed from the test cases.", "category": "correctness", "verdict": "supported", ...
null
sverweij__dependency-cruiser__1035
sverweij/dependency-cruiser
1,035
defect
11a608a9b5a9c2e0ffa4b10977eca15591e23dda
511f2910bb400c10f127f9b9102f540edf99225b
perf(enrich/derive): uses better datastructure for deriving dependents
## Description - uses better datastructure for deriving dependents ## Motivation and Context Faster. On #private-large-codebase this chops the time to run the dependents derivation step in _half_. ## How Has This Been Tested? - [x] green ci - [x] updated automated non-regression tests ## Types of ch...
diff --git a/src/enrich/derive/dependents.mjs b/src/enrich/derive/dependents.mjs index 94865cf0a..03d232f86 100644 --- a/src/enrich/derive/dependents.mjs +++ b/src/enrich/derive/dependents.mjs @@ -1,5 +1,3 @@ -import { isDependent } from "./module-utl.mjs"; - /** @import { IFlattenedRuleSet } from "../../../types/rule...
2
2
0
[{"id": "G0", "claim": "Fix the spelling error in the comment above isDependentsRule: \"sot\" should be \"so\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Fix the spelling error in the comment above isDependentsRule: \"analsys\" should be \"...
null
sverweij__dependency-cruiser__1037
sverweij/dependency-cruiser
1,037
defect
b8358fcaa47e1c160858846b9f1cdec40de00609
dc84fe11b81ddb652e697f70a3f7f7376373f2ca
perf(enrich/orphan): optimizes the data structure it exercises upon
## Description - optimizes the data structure the orphan derivation exercises upon - 🏕️ side catch: centralizes that data structure and makes the _dependents_ derivation use it too ## Motivation and Context It's faster in most contexts, although the results will be more dramatic on large code bases and for c...
diff --git a/src/enrich/derive/dependents.mjs b/src/enrich/derive/dependents.mjs index 6c4f9c07a..cd99dfed0 100644 --- a/src/enrich/derive/dependents.mjs +++ b/src/enrich/derive/dependents.mjs @@ -1,5 +1,7 @@ /** @import { IFlattenedRuleSet } from "../../../types/rule-set.mjs" */ +import ModuleGraphWithDependencySet...
7
6
0
[{"id": "G0", "claim": "The JSDoc @param tag in is-orphan.mjs names the parameter \"pModules\" while the function signature names it \"pModule\"; it should be \"pModule\" (singular) to match.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The publ...
null
sverweij__dependency-cruiser__875
sverweij/dependency-cruiser
875
defect
8aa2a3d57b3a3b66dac23bce0192d7dcb2f4378d
8bfe2b5766ca731d921763a148f6d4efe262cf3c
feat(extract): detect 'type-only' with inline imports/exports
## Description Detect dependencies extracted from TypeScript as `'type-only'` also when all of the inline imports/re-exports are qualified as `type`. ## Motivation and Context [TypeScript 4.5 added inline type imports](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#type-modifier...
diff --git a/src/extract/ast-extractors/extract-typescript-deps.mjs b/src/extract/ast-extractors/extract-typescript-deps.mjs index f39add30e..2548d8cf0 100644 --- a/src/extract/ast-extractors/extract-typescript-deps.mjs +++ b/src/extract/ast-extractors/extract-typescript-deps.mjs @@ -8,16 +8,31 @@ const typescript = aw...
1
1
0
[{"id": "G0", "claim": "Rename the abbreviated arrow-function parameter `pE` to the full name `pElement` in the `every()` callbacks that test per-element `isTypeOnly` for named type-only imports (M002) and named type-only re-exports (M003).", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
svg__svgo__1220
svg/svgo
1,220
defect
07ca9764f71fb946adc23f4ea9f19070d335305d
959ac4cda1671d074b7cbc9605c9befc2ac131ef
Preserve whitespace in elements containing text
### Problem SVGO configures its SAX parser to normalize whitespace, [collapsing multiple space characters into one](https://github.com/isaacs/sax-js/blob/5aee2163d55cff24b817bbf550bac44841f9df45/lib/sax.js#L640). This can change the semantic meaning of SVG content: - In `<text>` and `<tspan>` nodes when white...
diff --git a/lib/svgo/js2svg.js b/lib/svgo/js2svg.js index 0a52c6b29..f29838c79 100644 --- a/lib/svgo/js2svg.js +++ b/lib/svgo/js2svg.js @@ -1,7 +1,7 @@ 'use strict'; var EOL = require('os').EOL, - textElem = require('../../plugins/_collections.js').elemsGroups.textContent.concat('title'); + textElems = requi...
2
2
0
[{"id": "G0", "claim": "The new text-elem check in lib/svgo/svg2js.js should use the array includes method instead of indexOf !== -1.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In lib/svgo/svg2js.js the new textElems require should be placed...
null
svg__svgo__1381
svg/svgo
1,381
defect
e4ce31a2873078014d43624f506b1fe85ffc295c
181884bb5320d815cbfce5636d0b4eb6908995a8
Add mergeStyles plugin
This PR adds the mergeStyles plugin that merges `<style>` elements into one, preserving media queries by the `<style>` `media` attribute. You can already try this feature branch by installing it using this npm command: `npm install github:strarsis/svgo#mergeStyles-plugin` The plugin would also be enabled by defa...
diff --git a/package-lock.json b/package-lock.json index 2cc8a201e..1b7647e1f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,8 +1,3527 @@ { "name": "svgo", "version": "2.2.2", - "lockfileVersion": 1, + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "version": "2.2.2...
20
19
11
[{"id": "G0", "claim": "The CI test run fails on this pull request and the failure cannot be reproduced locally with the same node version.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The package-lock.json changes (lockfileVersion 2 / npm 7 regen...
null
svg__svgo__1553
svg/svgo
1,553
defect
cf03c2398d2f7cc5cda4a404edb2b44cd4fae710
efbc7be6a03d3a69ad69d3dd069d29f022a20045
Add better parser errors
Old SVGO errors were not very helpful. Packages like cssnano (postcss-svgo) had to deal with a lot of issues which are hard to debug with old errors. ``` Error: Error in parsing SVG: Unquoted attribute value Line: 1 Column: 29 Char: 6 File: input.svg ``` New errors are more informative and may solve many ...
diff --git a/lib/svgo.js b/lib/svgo.js index fe5a22526..d29213fbc 100644 --- a/lib/svgo.js +++ b/lib/svgo.js @@ -29,7 +29,12 @@ const optimize = (input, config) => { } for (let i = 0; i < maxPassCount; i += 1) { info.multipassCount = i; - svgjs = svg2js(input); + // TODO throw this error in v3 + try...
1
1
1
[{"id": "G0", "claim": "The CLI should call process.exit() (a non-zero exit) when a parser error is detected instead of just printing the error and returning.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
svg__svgo__1645
svg/svgo
1,645
defect
da1d761b53c97cd7053b5370cb32c30e7e4978d4
25697b444872dd8ab1958536cc7c312ad746aa8b
More helpful preset warnings
Preset documentation and warning [here](https://github.com/svg/svgo/commit/cb7e9be623b6e2fbbfcb9b67c4c85131e1477925) got me confused. I think these changes should reduce others confusion. * warn **any** override that is not in the default list * use actual plugin names in the warning message ## How I got here F...
diff --git a/lib/svgo.test.js b/lib/svgo.test.js index 7fece445d..30670b5de 100644 --- a/lib/svgo.test.js +++ b/lib/svgo.test.js @@ -85,8 +85,8 @@ test('warn when user tries enable plugins in preset', () => { js2svg: { pretty: true, indent: 2 }, }); expect(warn) - .toBeCalledWith(`You are trying to enable...
1
1
0
[{"id": "G0", "claim": "Better to create an array of the preset's plugin names and use includes, instead of plugins.find inside the loop over override keys.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
svg__svgo__1961
svg/svgo
1,961
defect
573a5c7e0fb02f13ac1268b8148c151b0c85d421
fed7cddc2afd8535647871622dfcf345dceb1120
fix: stringifyPathData needs space before scientific notation.
stringifyPathData was not adding a space before numbers which used scientific notation. This fix does not change the results of regression tests using the current value of floatPrecision: 4 (125 failures, 3794 pixel differences), but when run at floatPrecision:7, failures are reduced from 164 to 93, and pixel mismat...
diff --git a/lib/path.js b/lib/path.js index 8fb4e3fe0..250e3745c 100644 --- a/lib/path.js +++ b/lib/path.js @@ -285,9 +285,7 @@ const stringifyArgs = (command, args, precision, disableSpaceAfterFlags) => { result += roundedStr; } else if ( !Number.isInteger(previous) && - rounded != 0 && - ...
1
1
0
[{"id": "G0", "claim": "Use the existing isDigit helper instead of '0123456789'.includes(roundedStr[0]) in lib/path.js, since it is equivalent and runs notably faster.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
svg__svgo__2019
svg/svgo
2,019
defect
f604c6979e5748261c3c4d2088a622a4ea69c358
c3b3a9a367be0a1f62aa5506aad9ba168734f413
Support -o-keyframes and -moz-keyframes
Following SVG fails cause of `-o-keyframes` and `-moz-keyframes`. It did work in svgo 2.8 ``` <?xml version="1.0" encoding="UTF-8"?> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="-256 -256 512 512"> <title>S...
diff --git a/lib/style.js b/lib/style.js index 5c1570d9e..ff8aa9864 100644 --- a/lib/style.js +++ b/lib/style.js @@ -85,7 +85,9 @@ const parseStylesheet = (css, dynamic) => { if (cssNode.type === 'Atrule') { if ( cssNode.name === 'keyframes' || - cssNode.name === '-webkit-keyframes' + ...
1
1
0
[{"id": "G0", "claim": "The keyframes name check in lib/style.js would be clearer using an array with `.includes` instead of chained equality comparisons.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
svgdotjs__svg.js__634
svgdotjs/svg.js
634
defect
3409a2150705f679238300c56c05ea144e9ad7bd
f8eb27f8bb4972dc65264f3902bac5fef50da269
unified all boxes
- SVG.Box for everything - bbox, rbox and viewbox as methods - boxes can be created with string, array, object, list... - added helper to simplify boxes code If you find that the construct methods have to much logic, we could easily use the `SVG.extend` syntax to add these methods to `SVG.Element`. It does not ma...
diff --git a/dist/svg.js b/dist/svg.js index 0a461ec9..d1ea25b5 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -6,7 +6,7 @@ * @copyright Wout Fierens <wout@mick-wout.com> * @license MIT * -* BUILT: Fri Mar 10 2017 14:56:03 GMT+0100 (Mitteleuropäische Zeit) +* BUILT: Fri Mar 10 2017 15:37:30 GMT+0100 (Mitteleuropäisch...
6
5
1
[{"id": "G0", "claim": "fullBox is used only once in boxes.js, so it should be inlined into SVG.BOX or deleted.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The boxes tests should be expanded to cover the values fullbox() gives (cx, cy, x2, y2) ...
null
svgdotjs__svgdom__96
svgdotjs/svgdom
96
defect
dc65f3efbbecb0a1830d418490dc32b66699887d
bbd0e64fc14890d8a2c5eaba2abf4038a3ef7949
Implement SVGAnimatedLength properties
I implemented the `SVGAnimatedLength` properties for shape, text and "embedded content" elements. Please let me know if there is anything that would have to be improved for making this mergeable!
diff --git a/src/dom/Document.js b/src/dom/Document.js index 4e78262..112f8e8 100644 --- a/src/dom/Document.js +++ b/src/dom/Document.js @@ -17,6 +17,12 @@ import { ParentNode } from './mixins/ParentNode.js' import { svg, html } from '../utils/namespaces.js' import { DocumentType } from './DocumentType.js' import { ...
2
2
1
[{"id": "G0", "claim": "In SVGForeignObjectElement the SVGAnimatedLength fields should be constructed with `this` instead of the global `self` (the same mistake is in SVGImageElement).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The value-matchin...
null
sviperll__result4j__6
sviperll/result4j
6
defect
f3753166f6c95157271e02acb5e55ced8e5ad2e8
5d4e686394a55c764072a73a51fa98b447e84309
Refactor throwError to orOnErrorThrow
In my opinion `throwError` methods suggest that the error always be thrown. What about changing the name to `orOnErrorThrow`?
diff --git a/README.md b/README.md index eea5bb2..42d40fe 100644 --- a/README.md +++ b/README.md @@ -67,13 +67,13 @@ Pattern matching can be used to check unknown result value as shown above. ````java Result<String, Integer> receivedResult = ...; -String value = receivedResult.throwError(code -> new IOException("%s...
4
3
1
[{"id": "G0", "claim": "Renaming throwError away without keeping it is a breaking change for users, so add a deprecated throwError method that simply calls orOnErrorThrow instead of releasing the breaking rename now.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
svsool__memo__134
svsool/memo
134
defect
0835dbf52df1a205fd024e3fdc92711ed37808c4
702341827f23b9c6ba4c78c27f4a4bb5f6665c52
feat: Adds flag for syntax decorations
This PR is one potential fix for #133. Feel free to close this if another approach is preferable. This PR adds a new config setting, `memo.syntaxDecorations.enable`, which defaults to `true`. This config setting is then used to short circuit the `activate` function in `syntaxDecorations.ts`
diff --git a/package.json b/package.json index 557d0431..2d3fba9c 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,12 @@ "scope": "resource", "description": "Collapse parent items by default.", "type": "boolean" + }, + "memo.syntaxDecorations.enable": { + ...
2
2
2
[{"id": "G0", "claim": "Remove the errant describe.only so the rest of the test suite is not skipped.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Reword the setting description to not say wiki-links, since currently only link (ref) decorations are su...
null
swagger-api__apidom__3403
swagger-api/apidom
3,403
defect
f3faea683afe861917590d8123fe99b3bb998b91
cbb9343b798553fc7871f6a062a403d8076ece51
feat: Add sourceDescription to ns-workflows-1
Refs: #3392 Add SourceDescription object to apidom-ns-workflows-1
diff --git a/packages/apidom-ns-workflows-1/README.md b/packages/apidom-ns-workflows-1/README.md index 9f9b7350c9..fab68db19f 100644 --- a/packages/apidom-ns-workflows-1/README.md +++ b/packages/apidom-ns-workflows-1/README.md @@ -187,7 +187,7 @@ Only fully implemented specification objects should be checked here. -...
9
8
3
[{"id": "G0", "claim": "The keyMap entry added in src/traversal/visitor.ts keys on the predicate name `isSourceDescriptionElement`; it should key on the element class name `SourceDescriptionElement` instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
swagger-api__apidom__4870
swagger-api/apidom
4,870
defect
0feac5072cd36f728ec52effb0c93d1f39c106db
6a908e909fae441843b46913b9c6584144f50f00
refactor(json-pointer): use RFC compliant impl under the hood
NOTE: this is a community contribution --- The overall goal of this effort is to deprecate the `@swagger-api/apidom-json-pointer` legacy API, as it's not RFC compliant, contains many bugs and only works for ApiDOM. --- I've developed fully compliant RCF 6901 implementation in https://github.com/swaggerexper...
diff --git a/package-lock.json b/package-lock.json index addacfeec5..ec5939b29d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6625,6 +6625,18 @@ "resolved": "packages/apidom-reference", "link": true }, + "node_modules/@swaggerexpert/json-pointer": { + "version": "2.8.1", + "...
1
1
0
[{"id": "G0", "claim": "A leftover `console.dir(compileJSONPointerTokens(jsonPointerTokens))` debugging statement was left in ancestorLineageToJSONPointer and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
swagger-api__apidom__5015
swagger-api/apidom
5,015
defect
cfb9b66edd3fff9b7512953f9d82f47b02880e80
147981c03b8b65c7aa58f3375228696987a198f4
fix(ls): external refs should not be validated
fixes unwanted validation errors against external refs
diff --git a/packages/apidom-ls/src/config/common/schema/lint/$ref-3-0--request-bodies.ts b/packages/apidom-ls/src/config/common/schema/lint/$ref-3-0--request-bodies.ts index e51654d9ec..c9c85b2cdf 100644 --- a/packages/apidom-ls/src/config/common/schema/lint/$ref-3-0--request-bodies.ts +++ b/packages/apidom-ls/src/con...
1
1
1
[{"id": "G0", "claim": "The added regex exempts only $ref values starting with http(s)://, so an external reference given as any other URI (e.g. a relative path or a non-http scheme) would still be validated; external references should be exempt regardless of URI form.", "category": "correctness", "verdict": "supported...
null
swagger-api__apidom__5050
swagger-api/apidom
5,050
defect
1ba6aad986009b597daae17c22818ce1f9370b5d
06637a4e7dba06a1d382013b96c212a8f0bc6224
fix(apidom-ls): validation message for schema in openapi3.0/3.1
This PR fixes the error message for validation in schema type of openAPI3.0 and openAPI3.1 [#SWG-17140](https://smartbear.atlassian.net/browse/SWG-17140) ### Screenshots (if appropriate): <img width="1020" height="803" alt="Screenshot 2025-11-19 at 12 12 10 PM" src="https://github.com/user-attachments/assets/0eeac...
diff --git a/packages/apidom-ls/src/config/common/schema/lint/type--equals-openapi-3-1--asyncapi-2.ts b/packages/apidom-ls/src/config/common/schema/lint/type--equals-openapi-3-1--asyncapi-2.ts index 7224e8c7a2..8bcac39a3c 100644 --- a/packages/apidom-ls/src/config/common/schema/lint/type--equals-openapi-3-1--asyncapi-2...
2
2
0
[{"id": "G0", "claim": "The new validation message string and its copies in the tests are missing a comma between 'integer' and 'null', and should read '...integer, null'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The allowedValues listed in ...
null
swagger-api__apidom__5090
swagger-api/apidom
5,090
defect
c3970c9b1a713d4d3a83077c4fc1cf7d5ee78324
59c24ec44be2105ec8031cfc0aacd21bedb61255
test(reference): add dereference test for schema object in AsyncAPI3
This PR is for [#OSS-383](https://smartbear.atlassian.net/browse/OSS-383)
diff --git a/packages/apidom-reference/test/dereference/strategies/asyncapi-3/schema-object/fixtures/components-schemas/dereferenced.json b/packages/apidom-reference/test/dereference/strategies/asyncapi-3/schema-object/fixtures/components-schemas/dereferenced.json new file mode 100644 index 0000000000..f6f67906d3 --- /...
1
1
0
[{"id": "G0", "claim": "Add test coverage for dereferencing of the Message Object's `payload` property, in addition to the `headers` property already covered by the new fixtures.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
swagger-api__apidom__5134
swagger-api/apidom
5,134
defect
aa9e7fa1731fbaf50d477fb91c8bdfe3b2b4a49e
46af89decb13e0659b37e0c74d23f9f63210d079
feat: update SNS Bindings
This PR updates SNS Bindings to version 0.2.0 and 1.0.0, including adding new fields in AsyncAPI 2 namespace and restricting validation for 0.1.0 and 0.2.0 to AsyncAPI 2.x, and 1.0.0 to AsyncAPI 3.x.
diff --git a/packages/apidom-ls/src/config/asyncapi/bindings/sns/channel-binding/completion/0-2-0.ts b/packages/apidom-ls/src/config/asyncapi/bindings/sns/channel-binding/completion/0-2-0.ts new file mode 100644 index 0000000000..ad8f5c1e43 --- /dev/null +++ b/packages/apidom-ls/src/config/asyncapi/bindings/sns/channel...
4
3
0
[{"id": "G0", "claim": "Consider making the new bindingVersion lint rule spec/version-specific (AsyncAPI 2 allowing only 0.1.0 and 0.2.0, AsyncAPI 3 only 1.0.0, with an error from validation) instead of just checking for any string, since with AsyncAPI 3 and version 0.1.0 users currently get no error, no validation and...
null
swagger-api__apidom__5155
swagger-api/apidom
5,155
defect
45fb10d7eb826df9ba25d678e5a2a61484ed2c5c
74288d9077e38eb41b7e54cb807d93d2d1307fd3
fix(ls): add validation for examples with date-time format
Adds OpenAPI validation for `example` and `examples` when format is `date-time`. TODO: - [x] check usage in OpenAPI 2.0 - no need to define it for Parameter Object, as `example` is not defined there - [x] `null` type and `nullable` property - [x] day and month associations (e.g. '2025-02-31' should not be valid)...
diff --git a/packages/apidom-ls/src/config/codes.ts b/packages/apidom-ls/src/config/codes.ts index 4e353888f1..4d8765c822 100644 --- a/packages/apidom-ls/src/config/codes.ts +++ b/packages/apidom-ls/src/config/codes.ts @@ -79,6 +79,8 @@ enum ApilintCodes { SCHEMA_READONLY_REQUIRED, SCHEMA_PATTERN_REG_EXP_ANCHORS,...
1
1
0
[{"id": "G0", "claim": "The hand-rolled RFC 3339 date-time validation could be replaced with the Temporal API, using the temporal-polyfill package until Temporal support is generally available.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
swagger-api__swagger-core__4968
swagger-api/swagger-core
4,968
defect
8767cea022f53721e69f9dd47c22ccfd18f12100
a3112eb5f4fb7945ea3e87765d69b7d0cf4506ac
fix: NotBlank and NotEmpty annotations follow NotNull behavior
## Description Fixes: #4967 ## Type of Change - [X] 🐛 Bug fix ## Checklist - [X] I have added/updated tests as needed - [X] I have added/updated documentation where applicable - [X] The PR title is descriptive - [X] The code builds and passes tests locally - [X] I have linked related issues (if any)
diff --git a/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java b/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java index 220af8d71d..3037915c9d 100644 --- a/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java +++ b/modules/swagge...
2
2
0
[{"id": "G0", "claim": "Add matching test cases with RequiredMode.REQUIRED for NotBlank/NotEmpty alongside the added NOT_REQUIRED cases, to verify the change works as expected.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add tests covering the missin...
null
swagger-api__swagger-core__4969
swagger-api/swagger-core
4,969
defect
46decb3079b4c7ad9281dda4a58bbb4cb4f7fd03
80a9673800227ea371307e27a732989efded8b60
refs enumAsRef Issue 4932
fix: reattach enumAsRef for OAS 3.1 and OAS 3.0 with ALL_OF. Fixes #4932
diff --git a/modules/swagger-core/src/main/java/io/swagger/v3/core/converter/AnnotatedType.java b/modules/swagger-core/src/main/java/io/swagger/v3/core/converter/AnnotatedType.java index da0b642f0d..49bbce7b48 100644 --- a/modules/swagger-core/src/main/java/io/swagger/v3/core/converter/AnnotatedType.java +++ b/modules/...
2
2
0
[{"id": "G0", "claim": "The new inline `annotatedType.isResolveEnumAsRef()` check in `resolve` should be moved into the `shouldResolveEnumAsRef()` method rather than inlined at the call site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ne...
null
swagger-api__swagger-core__4988
swagger-api/swagger-core
4,988
defect
8767cea022f53721e69f9dd47c22ccfd18f12100
686949f116b31f4b212fb3f2c933953974461761
chore: remove System.out and printStackTrace to align with Sonar rules S106 and S1148
--- --- ## Description This PR removes all direct usages of `System.out` and `printStackTrace()` to align the codebase with **SonarQube rules**: * **S106:** Avoid using `System.out` or `System.err` * **S1148:** Avoid using `printStackTrace()` All such occurrences have been replaced with appropriate `logge...
diff --git a/modules/swagger-core/src/main/java/io/swagger/v3/core/util/Json.java b/modules/swagger-core/src/main/java/io/swagger/v3/core/util/Json.java index 899c7476ed..393cbf4550 100644 --- a/modules/swagger-core/src/main/java/io/swagger/v3/core/util/Json.java +++ b/modules/swagger-core/src/main/java/io/swagger/v3/c...
3
2
1
[{"id": "G0", "claim": "The pull request contains changes beyond removing System.out/printStackTrace — changes that belong to PR #4986 and a VSCode configuration — that should not be part of it and must be corrected.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "cl...
null
swagger-api__swagger-core__5018
swagger-api/swagger-core
5,018
defect
23d2971e6f9d2b765615efd874185f1501532f57
2a073893a05f86b3f3fa508c68b9e675ab1e5ff7
5001: Add support for @Nullable annotations in OpenAPI 3.1 schemas
# Pull Request Thank you for contributing to **swagger-core**! Please fill out the following information to help us review your PR efficiently. --- ## Description Enhanced schema generation by recognizing - @Nullable annotations as nullable and adding "null" to the type array in OpenAPI 3.1. - null...
diff --git a/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java b/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java index 6a59c85bd1..3e66b4f67f 100644 --- a/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java +++ b/modules/swagge...
3
1
0
[{"id": "G0", "claim": "The redundant per-annotation loop around the stream anyMatch over the same annotations array is unnecessary and should be simplified to a single stream-based check.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "NULLABLE_ANNOTATIO...
null
swagger-api__swagger-core__5034
swagger-api/swagger-core
5,034
defect
a66e10f49da25343e68b9cdf17847ec8e215269b
ce9881101bc54902d38de992e83c9dbd6a66e816
fix: OAS 3.1 schema generation for raw Object properties
# Pull Request Thank you for contributing to **swagger-core**! Please fill out the following information to help us review your PR efficiently. --- ## Description Related issue: #4682 This PR fixes an issue in OpenAPI 3.1 schema generation where properties declared as raw Java Object were rendered as a...
diff --git a/modules/swagger-core/src/main/java/io/swagger/v3/core/util/PrimitiveType.java b/modules/swagger-core/src/main/java/io/swagger/v3/core/util/PrimitiveType.java index 4ec3b94ecc..0fba9f7cf4 100644 --- a/modules/swagger-core/src/main/java/io/swagger/v3/core/util/PrimitiveType.java +++ b/modules/swagger-core/sr...
4
4
2
[{"id": "G0", "claim": "Rename the test class ObjectFieldOas31ReproTest to just Oas31ObjectFieldTest.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test method names mix camelCase and underscores; all methods should be renamed to a single c...
null
swagger-api__swagger-core__5064
swagger-api/swagger-core
5,064
defect
6143beea76144a2ae1ab2a09f1c99a59ef83acfb
6582aa67dfd917f78e8849b1df06edb83a5e0f69
fix: treat streams with arraySchema annotation as array type (#5013)
Special handling for Stream types with ArraySchema: Without this, Stream<T> with @ArraySchema would be incorrectly resolved as "object" type instead of "array" type. Examples where ArraySchema must be preserved: 1. @ArraySchema(schema = @Schema(implementation = Greeting.class)) on Stream<Greeting> -> Should produ...
diff --git a/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java b/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java index 6da57bd86f..0d855ca743 100644 --- a/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java +++ b/modules/swagge...
2
2
0
[{"id": "G0", "claim": "The check in this if should be adjusted to use AnnotationsUtils.areSiblingsAllowed(resolvedSchemaResolution, openapi31), since that is the centralized definition of this reoccurring check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id":...
null
swagger-api__swagger-core__5065
swagger-api/swagger-core
5,065
defect
7bbcf45ccc8c8ed717c92860c49d49353b7fc549
3ee8ec3dacee8f70157a2a9b90d2c67375c9313b
fix(gradle-plugin): add .convention() defaults to Property<T> fields in ResolveTask
# Pull Request Thank you for contributing to **swagger-core**! Please fill out the following information to help us review your PR efficiently. --- Closes #5136 ## Description In Gradle 9, calling `Property<T>.get()` on a property that has neither a set value nor a convention throws at runtime: > C...
diff --git a/modules/swagger-gradle-plugin/src/main/java/io/swagger/v3/plugins/gradle/tasks/ResolveTask.java b/modules/swagger-gradle-plugin/src/main/java/io/swagger/v3/plugins/gradle/tasks/ResolveTask.java index ba42d5f8ce..4ffc41ca61 100644 --- a/modules/swagger-gradle-plugin/src/main/java/io/swagger/v3/plugins/gradl...
5
5
4
[{"id": "G0", "claim": "An issue should be created and linked in this pull request so the change is documented and tracked.", "category": "process", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There appear to be a few other cases that potentially could be included in this PR...
null
swagger-api__swagger-core__5079
swagger-api/swagger-core
5,079
defect
c392d437716b76f0d29d455a7d91ae4040280a9a
3df311a047b01420625ca02f75292f8af1ec1dcd
fix: do not process a nullable annotation for container items
# Pull Request Thank you for contributing to **swagger-core**! Please fill out the following information to help us review your PR efficiently. --- ## Description Fixes part of the issue reported in #5077 where the items within a List (container) are affected by a `@Nullable` annotation. I.e., ```java ...
diff --git a/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java b/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java index 6da57bd86f..f78bc1d246 100644 --- a/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java +++ b/modules/swagge...
1
1
1
[{"id": "G0", "claim": "ModelResolver should match Nullable annotations by simple name (e.g. \"Nullable\") instead of the exact name \"javax.annotation.Nullable\", so that all Nullable variants (such as org.springframework.lang.Nullable and jakarta.annotation.Nullable) are stripped, not only the javax.annotation one.",...
null
swagger-api__swagger-editor__3648
swagger-api/swagger-editor
3,648
defect
025eb97f18da774a9a6d763be7884f3b84292d39
7f84e2d54f3d0d473bf092bf7b21f6fdb29add31
Add About Menu to TopBar for swagger-editor@next
Updated Home anchor link + added new About menu to TopBar which links to various documentation and product related material for Swagger-Editor@Next fixes #3646 closes #3646
diff --git a/package.json b/package.json index 934be7df375..4c2db74f661 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "analyze": "source-map-explorer 'build/static/js/main.js'", "test": "react-scripts test", "cy:dev": "start-server-and-test cy:dev:server http://localhost:3003 cy:dev:open...
3
3
0
[{"id": "G0", "claim": "The eslint-disable comment for react/jsx-props-no-spreading is unnecessary since no prop spreading happens in this component, so it should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Each menu item should b...
null
swagger-api__swagger-parser__1201
swagger-api/swagger-parser
1,201
defect
56751fac096c09a96d2e8a35ade83be9564586a8
cc0795fd3e5c05758a365013f45e7807d753e286
Issue 1200
fixes #1200
diff --git a/modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util/InlineModelResolver.java b/modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util/InlineModelResolver.java index 6e2032765b..95cace8290 100644 --- a/modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util/InlineModelReso...
1
1
1
[{"id": "G0", "claim": "Please add a test covering the new flatten handling of schemas without a type but with properties (issue 1200).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
swagger-api__swagger-parser__1557
swagger-api/swagger-parser
1,557
defect
aef028fee3ec020485cd3f06297be2cab60decb8
167c3862c9cedc4941fb6b8d62ac2a5be4313af1
fix handling of relative references
This PR includes a fix & testcase for this [issue] (https://github.com/swagger-api/swagger-parser/issues/1459)
diff --git a/modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/processors/PathsProcessor.java b/modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/processors/PathsProcessor.java index 880837b03e..04deeced83 100644 --- a/modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/processors/PathsPr...
1
1
1
[{"id": "G0", "claim": "The added isAbsoluteRef method returns true for refs starting with \"./\" although those are relative references, so the reviewer asks whether it misclassifies them and whether an absolute ref would not need to start with a scheme.", "category": "correctness", "verdict": "supported", "priority":...
null
swagger-api__swagger-parser__1617
swagger-api/swagger-parser
1,617
defect
629c724bea8e912a464e8d7e459dd49fb2242f68
29f0c61cd0236922cde28de95352cda8789e7adf
Summary sibling
allow ref to have summary and/or description as oas 3.1 supports includes implementation of 3.1 support deserialization and validation of non JsonSchema fields
diff --git a/modules/swagger-parser-core/src/main/java/io/swagger/v3/parser/core/models/ParseOptions.java b/modules/swagger-parser-core/src/main/java/io/swagger/v3/parser/core/models/ParseOptions.java index 9814dde6d2..d460f8fe9c 100644 --- a/modules/swagger-parser-core/src/main/java/io/swagger/v3/parser/core/models/Pa...
4
4
3
[{"id": "G0", "claim": "The two-argument `deserialize(JsonNode rootNode, String path)` overload must be kept for compatibility and should just delegate to `deserialize(rootNode, path, false)`.", "category": "design", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The newly adde...
null
swagger-api__swagger-parser__1619
swagger-api/swagger-parser
1,619
defect
cc76adef762de7237636891824a9c373d8fd92e0
2d129e7140b0fed45699e08c0c32b3a4bb819dfb
Empty strings
Allow Empty strings as valid when deserializing a specification.
diff --git a/modules/swagger-parser-core/src/main/java/io/swagger/v3/parser/core/models/ParseOptions.java b/modules/swagger-parser-core/src/main/java/io/swagger/v3/parser/core/models/ParseOptions.java index 9814dde6d2..526f732cff 100644 --- a/modules/swagger-parser-core/src/main/java/io/swagger/v3/parser/core/models/Pa...
2
2
1
[{"id": "G0", "claim": "The deserializer should take a ParseOptions object directly instead of a boolean, since other future options could be meaningful.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new pattern applied to all similar code changes d...
null
swagger-api__swagger-parser__1642
swagger-api/swagger-parser
1,642
defect
86e0dbdb08ea596b4b3bc29f4fc5d2bfa09f9d46
cfd82329b78dc4d38e5f5dba514f45d3ae8d4d2b
fix for #1636
this PR add support for items in all Schema types in OpenAPI 2.0 #1636 depends on: https://github.com/swagger-api/swagger-core/pull/4109
diff --git a/modules/swagger-parser/src/main/java/io/swagger/parser/util/SwaggerDeserializer.java b/modules/swagger-parser/src/main/java/io/swagger/parser/util/SwaggerDeserializer.java index 8e2a86a88c..e0d11bb1fb 100644 --- a/modules/swagger-parser/src/main/java/io/swagger/parser/util/SwaggerDeserializer.java +++ b/mo...
1
1
1
[{"id": "G0", "claim": "Drop the items-handling block the PR added to the non-array (ModelImpl) branch of SwaggerDeserializer.definition() and replace it with the approach described in the linked swagger-core PR 4109 comment (treat a schema carrying items as an array).", "category": "design", "verdict": "supported", "p...
null
swagger-api__swagger-parser__1707
swagger-api/swagger-parser
1,707
defect
1551fed0935462c3d2ce05485bce1e7a424ed39f
8f0a832c80aacaa86ec08f6e79899ddd0aaa9ae1
Fixed #1706
This makes the request body inline as we're already doing it for responses. This will help flatten api to leverage the inline schema for this resolved request body which has an inline schema inside it.
diff --git a/.gitignore b/.gitignore index 9af33e6d2f..846589f167 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ modules/swagger-parser/src/test/resources/relative-file-references/yaml **/test-output/* dependency-reduced-pom.xml *.pyc +/bin/ diff --git a/README.md b/README.md index 7019fb3331..9d40a96908...
6
5
3
[{"id": "G0", "claim": "The pull request's change makes 2 tests fail and the asserts of those 2 test classes need to be updated.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The parser's current behaviour should not be changed in a way that could brea...
null