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
yamadashy__repomix__1127
yamadashy/repomix
1,127
defect
c88752f4eb312901c87ea884c42dbb9aab972502
5fad588822a101394961338724978efe3e852612
feat(website): Add CLI command banner to result page
Add a banner on the result page that displays the equivalent CLI command for running Repomix locally. This encourages website users to try the npm package. - Generate CLI command from selected pack options (format, compress, include/ignore patterns, etc.) - Show banner with copy button above the "Star this project" se...
diff --git a/package-lock.json b/package-lock.json index 9ab8162606..4d93928acf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1682,7 +1682,6 @@ "integrity": "sha512-ne4A0IpG3+2ETuREInjPNhUGis1SFjv1d5asp8MzEAGtOZeTeHVDOYqOgqfhvseqg/iXty2hjBf1zAOb7RNiNw==", "dev": true, "license": "MIT",...
10
3
3
[{"id": "G0", "claim": "copyCommand in TryItResultErrorContent.vue calls navigator.clipboard.writeText without try/catch, unlike handleCopyCommand in TryItResultContent.vue, so a rejected clipboard write leaves the copied feedback unhandled; the same error handling should be added.", "category": "correctness", "verdict...
null
yamadashy__repomix__1145
yamadashy/repomix
1,145
defect
abae2adb7541da0aba3066ecb29daeb2086af094
07b518ad49dcdabb82c3322402e5d4d786de1cb8
feat(cli): Auto-detect explicit remote URLs in positional arguments
Allow users to run `repomix https://github.com/user/repo` or `repomix git@github.com:user/repo.git` without the `--remote` flag. Only explicit URL formats (`https://` and `git@`) are auto-detected. Shorthand format (`owner/repo`) is not auto-detected to avoid ambiguity with local directory paths. Closes #1120 ## Che...
diff --git a/src/cli/cliRun.ts b/src/cli/cliRun.ts index a97ab2aca..143b8ba8b 100644 --- a/src/cli/cliRun.ts +++ b/src/cli/cliRun.ts @@ -2,6 +2,7 @@ import process from 'node:process'; import { Option, program } from 'commander'; import pc from 'picocolors'; import { getVersion } from '../core/file/packageJsonParse....
5
1
0
[{"id": "G0", "claim": "The PR only partially addresses issue #1120: it adds explicit URL auto-detection but does not implement the issue's full proposed precedence logic of checking local path existence before treating an argument as a remote URL, and the check's resolution asks that the precedence (explicit --remote ...
null
yamadashy__repomix__1149
yamadashy/repomix
1,149
defect
abae2adb7541da0aba3066ecb29daeb2086af094
a414f80f555246a589d6fd4481b39b3485205ba9
fix(core): Skip retry on archive extraction error
When downloading a GitHub repository archive, extraction errors (e.g., fflate failing on large ZIP files like `facebook/react`) would trigger unnecessary retries. Since the same archive will produce the same extraction error, retrying is wasteful and delays the fallback to git clone. Now extraction errors (`Failed to ...
diff --git a/src/core/git/gitHubArchive.ts b/src/core/git/gitHubArchive.ts index 74ba3e9ee6..fdcb711bf6 100644 --- a/src/core/git/gitHubArchive.ts +++ b/src/core/git/gitHubArchive.ts @@ -71,6 +71,12 @@ export const downloadGitHubArchive = async ( lastError = error as Error; logger.trace(`Archive downl...
3
1
1
[{"id": "G0", "claim": "The no-retry check relies on the error message string ('Failed to extract'), so it could break silently if the error wording ever changes; the reviewer suggests a comment referencing the source location or, later, error codes/types for more robust error classification.", "category": "maintainabi...
null
yamadashy__repomix__1153
yamadashy/repomix
1,153
defect
63a2b80597a3d26ccf23fc93f32578fc40525a44
d34764b830850d7ef704722393be506e0c0bd88f
perf(core): Replace ZIP archive with streaming tar.gz extraction
The previous ZIP-based archive download used fflate's in-memory extraction, which failed on large repositories (e.g. `facebook/react`) due to memory constraints and ZIP64 limitations. This PR switches to tar.gz format with Node.js built-in `zlib` + `tar` package, enabling a full streaming pipeline: ``` HTTP response ...
diff --git a/package-lock.json b/package-lock.json index a4ad59e099..3b63fdfe4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "clipboardy": "^5.0.2", "commander": "^14.0.2", "fast-xml-parser": "^5.3.3", - "fflate": "^0.8.2", "git-url-parse": "^16.1.0...
5
3
2
[{"id": "G0", "claim": "Wrapping every error from the combined streaming pipeline as RepomixError('Failed to extract archive: ...') makes transient network errors during streaming download be classified as extraction errors, so they are no longer retried and the retry mechanism is effectively broken.", "category": "cor...
null
yamadashy__repomix__1302
yamadashy/repomix
1,302
defect
35afdad46482b92258c7af26013577e82c05f0ab
43c74d0a6d724a5cf855a80d1260d38938a2b1fc
perf(core): Pre-initialize metrics worker pool to overlap tiktoken WASM loading
## Summary Cherry-picked from #1295. Pre-initializes the metrics worker pool during the file collection phase so that tiktoken WASM loading overlaps with security checks and file processing instead of blocking the metrics stage. ### Changes - **Pre-warm metrics worker pool** (`calculateMetrics.ts`, `packager.ts`): E...
diff --git a/src/config/configLoad.ts b/src/config/configLoad.ts index 649b09016..9180cd651 100644 --- a/src/config/configLoad.ts +++ b/src/config/configLoad.ts @@ -1,7 +1,6 @@ import * as fs from 'node:fs/promises'; import path from 'node:path'; import { pathToFileURL } from 'node:url'; -import { createJiti } from ...
10
1
1
[{"id": "G0", "claim": "The skill-generation path creates, warms up and immediately cleans up the metrics task runner without ever using it, wasting a full worker-pool initialization, and creation should be made conditional or the pre-warmed runner passed through to packSkill.", "category": "performance", "verdict": "u...
null
yamadashy__repomix__1310
yamadashy/repomix
1,310
defect
9959c3ab711e12a1f18c6461f2bb9e92633f9f57
c4b096f996adde0c644d635e0b6b1d819348af63
fix(skill): Detect tech stack from dependency files in subdirectories
Fix tech stack detection for monorepo setups where `--include` is used to target specific packages. Previously, `detectTechStack()` only checked root-level dependency files (`package.json`, `pom.xml`, etc.), causing `tech-stack.md` to be empty when users targeted subdirectories with `--include`. Now all dependency fi...
diff --git a/src/core/skill/skillTechStack.ts b/src/core/skill/skillTechStack.ts index b13c422a9..fac0f5e7d 100644 --- a/src/core/skill/skillTechStack.ts +++ b/src/core/skill/skillTechStack.ts @@ -474,7 +474,8 @@ function parseToolVersions(content: string): RuntimeVersion[] { /** * Detects tech stack from processe...
8
6
3
[{"id": "G0", "claim": "result.configFiles should be deduplicated like languages and frameworks are, for consistency and robustness.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "packageManager assignment uses last-wins, which is inconsistent w...
null
yamadashy__repomix__1311
yamadashy/repomix
1,311
defect
9959c3ab711e12a1f18c6461f2bb9e92633f9f57
18e4e386c990372168e0cf3b4d868a508aa94469
refactor(cli): Replace log-update with picospinner
Replace `log-update` dependency with `picospinner` (from tinylibs) for the CLI spinner implementation. `log-update` is a low-level terminal line rewriter on top of which repomix manually implemented spinner logic (frame animation, symbols, succeed/fail states). `picospinner` provides all of this out of the box with ze...
diff --git a/package-lock.json b/package-lock.json index 26168f184..98eb5060e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,9 +26,9 @@ "jiti": "^2.6.1", "jschardet": "^3.1.4", "json5": "^2.2.3", - "log-update": "^7.2.0", "minimatch": "^10.2.4", "picoco...
1
1
0
[{"id": "G0", "claim": "The explicit `if (this.isQuiet)` early-return checks in `start`, `update`, `succeed` and `fail` are redundant because the constructor already sets `this.spinner` to null in quiet mode, so they should be removed and the methods left to rely on optional chaining.", "category": "maintainability", "...
null
yamadashy__repomix__1338
yamadashy/repomix
1,338
defect
d762d383a9107133ce81d0c4002099e0c6a3c84b
d77d758075be66a6f77ce2e1127fcb68028d0e2a
perf(core): Skip worker pool for lightweight file processing
When files don't require tree-sitter parsing (compress/removeComments), the worker pool IPC overhead is unnecessary. Processing them on the main thread avoids serialization costs and is faster for lightweight workloads. Benchmark: Ubuntu -0.19s. ## Checklist - [x] Run `npm run test` - [x] Run `npm run lint` 🤖 Gener...
diff --git a/src/core/file/fileProcess.ts b/src/core/file/fileProcess.ts index be9876165..265433659 100644 --- a/src/core/file/fileProcess.ts +++ b/src/core/file/fileProcess.ts @@ -9,6 +9,79 @@ import type { FileProcessTask } from './workers/fileProcessWorker.js'; type GetFileManipulator = (filePath: string) => File...
7
3
1
[{"id": "G0", "claim": "The `deps === null` condition routes existing tests (which always pass deps) away from the new main-thread path, leaving the new processing logic untested; tests for that path should be added and the routing decoupled from the injected deps.", "category": "testing", "verdict": "supported", "prio...
null
yamadashy__repomix__1350
yamadashy/repomix
1,350
defect
3e1fc1a4951a3c18780c94802159137797a61343
bb677926fdf502282b1b7101aa0bc53da2c3603b
perf(core): Replace tiktoken WASM with gpt-tokenizer
Replace tiktoken (WASM-based) with gpt-tokenizer (pure JS) for token counting, eliminating ~200ms WASM initialization overhead while **keeping the existing worker pool infrastructure** for parallel processing. This is a minimal, focused replacement — only the tokenizer library changes. The worker pool, parallel chunk ...
diff --git a/package-lock.json b/package-lock.json index 0013cc8c6..6a230f4dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "fast-xml-builder": "^1.1.4", "git-url-parse": "^16.1.0", "globby": "^16.1.1", + "gpt-tokenizer": "^3.4.0", "handlebars": "^4....
15
3
2
[{"id": "G0", "claim": "Because the tokenCounters cache is populated only after `await tokenCounter.init()` resolves, concurrent calls to getTokenCounter can initialize multiple TokenCounter instances for the same encoding; an in-flight Promise cache would prevent this.", "category": "correctness", "verdict": "supporte...
null
yamadashy__repomix__1356
yamadashy/repomix
1,356
defect
81fc9ebd9e094c97882a893f766e898c70dc3b2d
bb73580586dde66465c7f69101a886006197d81b
perf(core): Cache empty directory paths to avoid redundant file search
<!-- Please include a summary of the changes --> When `includeEmptyDirectories` is enabled, `buildOutputGeneratorContext` called `searchFiles` a second time just to obtain `emptyDirPaths` — despite these already being computed during the initial file search in `packager`. This PR eliminates the redundant search by thr...
diff --git a/src/core/file/fileSearch.ts b/src/core/file/fileSearch.ts index 492af837e..e7e686ebb 100644 --- a/src/core/file/fileSearch.ts +++ b/src/core/file/fileSearch.ts @@ -189,11 +189,13 @@ export const searchFiles = async ( logger.debug('[globby] Starting file search...'); const globbyStartTime = Date.n...
7
3
2
[{"id": "G0", "claim": "Mirror the EPERM/EACCES to PermissionError mapping on the directory globby: with includeEmptyDirectories enabled, the dirPromise lacks the catch handler filePromise has, so directory permission failures fall through to the generic error wrapper instead of the dedicated permission path.", "catego...
null
yamadashy__repomix__1359
yamadashy/repomix
1,359
defect
81fc9ebd9e094c97882a893f766e898c70dc3b2d
17f62f468bf89034d52baff83251d0a96d930a01
perf(core): Overlap security check, file processing, and metrics with output generation
<!-- Cherry-picked from d8ac3488 --> ## Summary - Run security check and file processing concurrently: security check uses worker threads while file processing runs on the main thread, so they don't compete for CPU - Overlap output generation with metrics calculation: file metrics and git metrics start immediately vi...
diff --git a/src/core/metrics/calculateMetrics.ts b/src/core/metrics/calculateMetrics.ts index d727f30b3..266b741ef 100644 --- a/src/core/metrics/calculateMetrics.ts +++ b/src/core/metrics/calculateMetrics.ts @@ -43,7 +43,7 @@ const defaultDeps = { export const calculateMetrics = async ( processedFiles: Processed...
11
3
1
[{"id": "G0", "claim": "The `async`/`await` inside the `outputParts.map()` callback is redundant since `deps.calculateOutputMetrics` already returns a promise, and the callback should return its result directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
yamadashy__repomix__1363
yamadashy/repomix
1,363
defect
81fc9ebd9e094c97882a893f766e898c70dc3b2d
f8ed85beba2ae3eab663870dbd40455298d0dc99
fix(cli): Prevent spinner ghost lines by deferring render on text update
Use render=false in PicoSpinner's setText() to avoid immediate re-rendering on every progress callback. The spinner's internal tick interval picks up the latest text on the next frame, matching the previous log-update behavior. The bug occurred because: 1. The spinner runs in a child process (Tinypool, stdio: "pipe") ...
diff --git a/src/cli/cliSpinner.ts b/src/cli/cliSpinner.ts index 8acd75843..aff1954ee 100644 --- a/src/cli/cliSpinner.ts +++ b/src/cli/cliSpinner.ts @@ -1,4 +1,4 @@ -import { Spinner as PicoSpinner } from 'picospinner'; +import { Spinner as PicoSpinner, renderer } from 'picospinner'; import type { CliOptions } from '....
5
1
1
[{"id": "G0", "claim": "The value of process.env.COLUMNS should be validated before being assigned to renderer.terminalWidth, because a non-numeric or non-positive value would make Number() return NaN or 0, which might lead to incorrect line-clearing calculations or runtime errors in the spinner's rendering logic.", "c...
null
yamadashy__repomix__1372
yamadashy/repomix
1,372
defect
9d6e224a94df25c1bd06b23455296a70561266d8
fcfdf50ea0e255a94491110568cb7a7673cac91f
perf(cli): Eliminate child process in default action
Run `pack()` directly in the main process instead of spawning a child process via `initTaskRunner`. The child process startup cost (~250ms for Node.js init + module re-loading) was pure overhead since the spinner and pack ran in the same child process anyway. This removes: - The `defaultActionWorker` indirection - The...
diff --git a/src/cli/actions/defaultAction.ts b/src/cli/actions/defaultAction.ts index ccd835a9f..397ebd112 100644 --- a/src/cli/actions/defaultAction.ts +++ b/src/cli/actions/defaultAction.ts @@ -8,22 +8,16 @@ import { repomixConfigCliSchema, } from '../../config/configSchema.js'; import { readFilePathsFromStdin ...
7
2
0
[{"id": "G0", "claim": "Consolidate the duplicated pack() calls for the stdin and non-stdin cases by determining targetPaths beforehand and passing stdinFilePaths directly, since it is undefined outside stdin mode.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
yamadashy__repomix__1374
yamadashy/repomix
1,374
defect
03828983d04ccdbaaea75564f1ab01d253938baa
23abf8a9ceaa5f1e5232d6501d1d77bfab9bb691
perf(metrics): Warm up all metrics worker threads in parallel
Previously, the metrics warmup fired only a single task, so only one worker thread had gpt-tokenizer pre-loaded. Additional threads had to cold-start the expensive `gpt-tokenizer` dynamic import when real metrics tasks arrived. Now `createMetricsTaskRunner` fires one warmup task per `maxThreads`, so every worker threa...
diff --git a/src/core/metrics/calculateMetrics.ts b/src/core/metrics/calculateMetrics.ts index eff6896a8a..d20dea52c6 100644 --- a/src/core/metrics/calculateMetrics.ts +++ b/src/core/metrics/calculateMetrics.ts @@ -1,5 +1,5 @@ import type { RepomixConfigMerged } from '../../config/configSchema.js'; -import { initTaskR...
18
11
5
[{"id": "G0", "claim": "The metrics runner is created and all worker threads warmed before the skill-generation branch, but packSkill() never receives or uses it, so that path pays maxThreads tokenizer imports for no benefit; instantiate the metrics runner only on the non-skill path.", "category": "performance", "verdi...
null
yamadashy__repomix__1375
yamadashy/repomix
1,375
defect
03828983d04ccdbaaea75564f1ab01d253938baa
2a3aa205b6511bf9a0444d00b8571f37175447ea
perf(git): Use codeload.github.com directly to skip 302 redirect
Use `codeload.github.com` directly instead of `github.com/.../archive/` for downloading repository archives. This eliminates the intermediate HTTP 302 redirect, saving ~100-300ms per remote repository download. ### Before ``` github.com/{owner}/{repo}/archive/refs/heads/{branch}.tar.gz → 302 redirect → codeload.gith...
diff --git a/src/core/git/gitHubArchiveApi.ts b/src/core/git/gitHubArchiveApi.ts index e0a0dd932f..ab5f5bbd64 100644 --- a/src/core/git/gitHubArchiveApi.ts +++ b/src/core/git/gitHubArchiveApi.ts @@ -2,29 +2,30 @@ import { RepomixError } from '../../shared/errorHandle.js'; import type { GitHubRepoInfo } from './gitRemo...
5
2
0
[{"id": "G0", "claim": "The URL construction logic in buildGitHubArchiveUrl should be simplified to a single consistent format by dropping the explicit refs/heads/ prefix and the commit-SHA check, since codeload.github.com resolves all ref types directly after /tar.gz/, which also avoids the unnecessary 404 on the firs...
null
yamadashy__repomix__1380
yamadashy/repomix
1,380
defect
a57938198c91dcdffd8c9488037ed37adbcc537b
1c99f9617b977ba559423d8be46966171f06ce6e
perf(security): Batch security check tasks to reduce IPC overhead
Batch security check items into groups of 500 per worker task instead of sending individual files. This reduces worker thread IPC round-trips from ~990 to ~2 for a typical repository, significantly cutting thread creation and message-passing overhead. ### Changes - Introduce `SecurityCheckItem` and batched `SecurityCh...
diff --git a/src/core/security/securityCheck.ts b/src/core/security/securityCheck.ts index 3fffed911..fd08268e3 100644 --- a/src/core/security/securityCheck.ts +++ b/src/core/security/securityCheck.ts @@ -5,7 +5,9 @@ import type { RepomixProgressCallback } from '../../shared/types.js'; import type { RawFile } from '.....
11
2
1
[{"id": "G0", "claim": "BATCH_SIZE of 500 is too large for optimal parallelism and progress granularity; reduce it (suggested to 100) so multi-core systems actually use their cores.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "numOfTasks should be...
null
yamadashy__repomix__1409
yamadashy/repomix
1,409
defect
4a0eb983a5d63457125c930db7b5d8e7fbd4f74c
2a879425a0708c14127fcf38627613a8ad2460ef
perf(core): Reduce worker thread contention for faster pipeline execution
Add `maxWorkerThreads` option to `WorkerOptions` for explicit thread count capping, then use it to reduce CPU contention when metrics and security worker pools run concurrently during the pipeline overlap phase. ### Changes - **`processConcurrency.ts`**: Add optional `maxWorkerThreads` to `WorkerOptions`. `getWorkerT...
diff --git a/src/core/metrics/calculateMetrics.ts b/src/core/metrics/calculateMetrics.ts index d20dea52c..f42873448 100644 --- a/src/core/metrics/calculateMetrics.ts +++ b/src/core/metrics/calculateMetrics.ts @@ -1,5 +1,10 @@ import type { RepomixConfigMerged } from '../../config/configSchema.js'; -import { getWorkerT...
4
4
1
[{"id": "G0", "claim": "Add an early return when totalItems === 0 in runSecurityCheck so worker pool setup/teardown is skipped on empty inputs.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The macOS benchmark regression (+7.7%) warrants investig...
null
yamadashy__repomix__1411
yamadashy/repomix
1,411
defect
9d5b92822c40aa6a78c0300e7f9870fe2eced4f1
1c6b5a8d4b386f45606795449043fc9ddf90124f
perf(metrics): Batch token counting IPC to reduce worker round-trip overhead
Batch token counting items into groups of 50 per worker task instead of sending individual files. This reduces worker thread IPC round-trips from ~991 to ~20 for a typical repository, significantly cutting thread creation and message-passing overhead. ### Changes - Add `TokenCountBatchTask` / `MetricsWorkerTask` / `Me...
diff --git a/src/core/metrics/calculateGitDiffMetrics.ts b/src/core/metrics/calculateGitDiffMetrics.ts index cbe3ec5aec..32fdb28aef 100644 --- a/src/core/metrics/calculateGitDiffMetrics.ts +++ b/src/core/metrics/calculateGitDiffMetrics.ts @@ -1,8 +1,7 @@ import type { RepomixConfigMerged } from '../../config/configSch...
2
1
0
[{"id": "G0", "claim": "The allResults array should be built with Array.prototype.flat() on the Promise.all result instead of a manual for-loop with spread, which also lets the pre-declared allResults be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
yamadashy__repomix__1415
yamadashy/repomix
1,415
defect
ffe67700293394d90da29ef7cccb118ea0dff280
dd94bfb8ef7ad1ec9d937eeca2f9ed50167c03a2
perf(metrics): Increase output token counting chunk size from 100KB to 200KB
Increase `TARGET_CHARS_PER_CHUNK` from 100KB to 200KB for output token counting. 200KB chunks reduce worker round-trips while maintaining good parallelism across available CPU cores. For a ~4MB output (typical large repo), this reduces chunks from 39 to 20. Benchmark (repomix self-pack, `node bin/repomix.cjs`, 5 runs...
diff --git a/src/core/metrics/calculateOutputMetrics.ts b/src/core/metrics/calculateOutputMetrics.ts index 05f97a62fe..c2314315e2 100644 --- a/src/core/metrics/calculateOutputMetrics.ts +++ b/src/core/metrics/calculateOutputMetrics.ts @@ -2,10 +2,10 @@ import { logger } from '../../shared/logger.js'; import { type Met...
3
2
0
[{"id": "G0", "claim": "The comments added by this PR state chunk and content sizes in byte units ('KB'/'MB') even though the constant counts JavaScript UTF-16 characters (~2 bytes each), so the comments should say 'characters' (e.g., '200K characters', '1.1M characters') for technical accuracy.", "category": "document...
null
yamadashy__repomix__1420
yamadashy/repomix
1,420
defect
eca9ad78cdcb222c8e545b60953bbbc4930c231d
68fdc175a4bca27ef7d3a0caa5a5de615f1bad75
feat(core): Add progressCallback parameter to runDefaultAction
Add an optional `progressCallback` parameter to `runDefaultAction` so callers can receive detailed progress messages from `pack()` (e.g., "Searching for files...", "Collecting files...", "Generating output..."). The callback is invoked alongside the existing spinner updates, so CLI behavior is unchanged. This enables ...
diff --git a/src/cli/actions/defaultAction.ts b/src/cli/actions/defaultAction.ts index 3cadb9b119..0eb3364bb6 100644 --- a/src/cli/actions/defaultAction.ts +++ b/src/cli/actions/defaultAction.ts @@ -13,6 +13,7 @@ import { generateDefaultSkillName } from '../../core/skill/skillUtils.js'; import { RepomixError, rethrowV...
4
4
2
[{"id": "G0", "claim": "Progress callbacks can be assigned async functions whose rejections become unhandled and crash the Node process, so the progressCallback invocation in handleProgress should be wrapped to isolate both sync and async failures from the main pack flow.", "category": "correctness", "verdict": "suppor...
null
yamadashy__repomix__1436
yamadashy/repomix
1,436
defect
eafa70a7ca875f6737a86349397d3233c2d9fa13
b2911c5413e1da9d2870939af69c5e184b013750
perf(core): Lazy-load handlebars, fast-xml-builder, and @clack/prompts
## Summary - Defer importing handlebars (~25ms), fast-xml-builder (~3ms), @clack/prompts (~16ms) from startup to actual usage - Lazy-load packSkill module chain via dynamic import in packager.ts Cherry-picked from 082f8b4a (PR #1428) ## Test plan - [x] All tests passing - [x] Build clean <!-- devin-review-badge-beg...
diff --git a/src/cli/actions/migrationAction.ts b/src/cli/actions/migrationAction.ts index 236ba8e3e..d98b73fd2 100644 --- a/src/cli/actions/migrationAction.ts +++ b/src/cli/actions/migrationAction.ts @@ -1,6 +1,5 @@ import * as fs from 'node:fs/promises'; import path from 'node:path'; -import * as prompts from '@cla...
11
7
2
[{"id": "G0", "claim": "The lazy-loaded Handlebars code should use `import type` (or the real `Handlebars`/`Handlebars.TemplateDelegate` types) instead of `any`, manually-declared shapes and biome-ignore suppressions, to keep type safety without an eager runtime import.", "category": "maintainability", "verdict": "supp...
null
yamadashy__repomix__1489
yamadashy/repomix
1,489
defect
eba8a841f21abd461ae33a1a7a9c32b613073f0e
52254d73b60171f6db9c7bd9a9bfcf3d1e1c6698
perf(config): Migrate configSchema from zod to valibot (experimental)
## Summary Experimental migration of `src/config/configSchema.ts` from zod to valibot to evaluate cold-start impact as a simpler alternative to #1484 (which defers zod via async loading + a separate `configDefaults.ts`). Draft PR — not for merge as-is. Kept for comparison with #1484. ## Benchmark Results `hyperfine...
diff --git a/package-lock.json b/package-lock.json index 97eab8fba2..86198592c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,6 +33,7 @@ "tar": "^7.5.13", "tinyclip": "^0.1.12", "tinypool": "^2.1.0", + "valibot": "^1.3.1", "web-tree-sitter": "^0.26.8", ...
36
20
5
[{"id": "G0", "claim": "The permissive base schema and the strict default schema for tokenCount.encoding combine so that a user config with a non-standard encoding string passes file-level validation but fails at merge time with a confusing error, which is a breaking change for users with custom encoding values.", "cat...
null
yamadashy__repomix__1493
yamadashy/repomix
1,493
defect
b8ef0ec8336415f77a9d181f36f90e5a237111a2
628227cddef01951070264068f940bae405ba0d8
feat(server): Log pack options and validation reject reasons
## Summary Follow-up to PR #1483 adding three observability signals that the first-pass PR intentionally deferred to keep scope small. Each maps to a question raised during the recent traffic-spike investigation but left unanswered. | Question | How it's answered now | |---|---| | What size of repo drives OOM risk? |...
diff --git a/website/server/monitoring/dashboard.json b/website/server/monitoring/dashboard.json index 3fde57e76..3496be429 100644 --- a/website/server/monitoring/dashboard.json +++ b/website/server/monitoring/dashboard.json @@ -163,6 +163,123 @@ } } }, + { + "xPos": 0, + "...
10
8
4
[{"id": "G0", "claim": "classifyRejectReason always returns 'unknown' for Zod validation errors because validateRequest wraps them in an AppError that discards the .issues array, leaving the new reject-reason dashboard buckets useless.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
yamadashy__repomix__1506
yamadashy/repomix
1,506
defect
99ea7d2de7a5730498cac249c70f520e485cd92a
b4c3323965d19452cec59ad3f4a3ccf47a5752ac
perf(core): Automated performance tuning by Claude
## Summary Speed up `searchFiles` when `output.includeEmptyDirectories` is enabled by collapsing its two separate globby traversals into one and parallelizing the per-directory `readdir` calls used to filter empty directories. ## Background When `output.includeEmptyDirectories` is enabled — the default for `repomix....
diff --git a/src/core/file/fileSearch.ts b/src/core/file/fileSearch.ts index 4421f7a3d5..f72f04c218 100644 --- a/src/core/file/fileSearch.ts +++ b/src/core/file/fileSearch.ts @@ -1,7 +1,7 @@ import type { Stats } from 'node:fs'; import fs from 'node:fs/promises'; import path from 'node:path'; -import { type Options ...
2
1
1
[{"id": "G0", "claim": "Running fs.readdir on all directories simultaneously via unbounded Promise.all can lead to EMFILE errors on large repositories; implement a concurrency limit to keep the parallelism stable.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
yamadashy__repomix__1521
yamadashy/repomix
1,521
defect
7dfd2b96657cc88ff60b8ec1fd88b467aa1f8aba
6fc1d8613bc2021d1d6a6f416304d014d8c68e50
perf(core): Automated performance tuning by Claude
## Summary Automated performance tuning. Increases `METRICS_BATCH_SIZE` in `src/core/metrics/calculateFileMetrics.ts` from **10 to 50**, cutting per-thread IPC overhead in the metrics worker pool by ~80%. Also adds a multi-batch regression test that asserts result order, completeness, and per-batch progress callback f...
diff --git a/src/core/metrics/calculateFileMetrics.ts b/src/core/metrics/calculateFileMetrics.ts index 0a4d60201..158273e8d 100644 --- a/src/core/metrics/calculateFileMetrics.ts +++ b/src/core/metrics/calculateFileMetrics.ts @@ -7,11 +7,13 @@ import type { TokenEncoding } from './TokenCounter.js'; import type { FileMe...
4
1
0
[{"id": "G0", "claim": "The documentation in src/core/metrics/workers/calculateMetricsWorker.ts still references the previous batch size of 10 and its impact on a sample of 991 files, so it should be updated to remain consistent with the batch-size increase to 50.", "category": "documentation", "verdict": "supported", ...
null
yamadashy__repomix__212
yamadashy/repomix
212
defect
b263c8738c94fb997932e91c9d7580a5ebeab123
08d72474262b4fd005ec855ee03a63ba17c0b1ba
Support commit SHA in --remote-branch option
## Related: - https://github.com/yamadashy/repomix/issues/195?notification_referrer_id=NT_kwDOByTsI7UxMzc1NzczNzE5ODoxMTk4NjAyNTk - https://github.com/yamadashy/repomix/pull/196 - https://github.com/yamadashy/repomix/pull/199 The older PR claims to support branch names, tags, and commit hashes, but commit ...
diff --git a/src/core/file/gitCommand.ts b/src/core/file/gitCommand.ts index b8801ee7bb..0146d3a42e 100644 --- a/src/core/file/gitCommand.ts +++ b/src/core/file/gitCommand.ts @@ -26,5 +26,14 @@ export const execGitShallowClone = async ( execAsync, }, ) => { - await deps.execAsync(`git clone --depth 1 ${branch...
8
2
2
[{"id": "G0", "claim": "The remoteBranch (branch) parameter is interpolated directly into shell commands without sanitization, which could allow command injection, and should be validated before use.", "category": "security", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The o...
null
yamadashy__repomix__746
yamadashy/repomix
746
defect
ee9d71dfed02ade0f53fbcae93145f31d97926d4
6290ec9f952ba0327d0a930559b445c58ebcf083
feat(core): Improve error handling and performance optimizations
related - https://github.com/yamadashy/repomix/issues/739
diff --git a/src/core/file/workers/fileCollectWorker.ts b/src/core/file/workers/fileCollectWorker.ts index 2efdd227a..c20cf98da 100644 --- a/src/core/file/workers/fileCollectWorker.ts +++ b/src/core/file/workers/fileCollectWorker.ts @@ -1,16 +1,17 @@ import path from 'node:path'; -import { logger, setLogLevelByEnv } f...
9
1
0
[{"id": "G0", "claim": "Consider adding type guards or validation in getTokenCounter if invalid encodings could be passed.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error-cause logging in handleError could be better formatted, logging error.caus...
null
yamadashy__repomix__798
yamadashy/repomix
798
defect
5e6918f9f51863b718fa06ab4efb939f7892d6ff
8d117d94b751135cecd262d6419c00aecd2690f8
feat(cli): Report files detected as binary by content inspection
related: - #752 ## Summary This PR implements a new feature that reports files which are detected as binary by content inspection (not by extension) in the CLI output. Previously, these files were silently excluded with only debug-level logging, which could confuse users when files with text extensions containe...
diff --git a/src/cli/cliReport.ts b/src/cli/cliReport.ts index c308e8f73..107589c99 100644 --- a/src/cli/cliReport.ts +++ b/src/cli/cliReport.ts @@ -1,6 +1,7 @@ import path from 'node:path'; import pc from 'picocolors'; import type { RepomixConfigMerged } from '../config/configSchema.js'; +import type { SkippedFileI...
14
4
3
[{"id": "G0", "claim": "The worker's trailing `return {}` leaves an unexpected readRawFile state (content null, no skip reason) silently dropping the file, so that supposedly unreachable path should fail loudly (throw an error) instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in...
null
yamadashy__repomix__896
yamadashy/repomix
896
defect
7c118c9ad101352d5aa5a8c2cb2b1464c84c9964
5ed451506df8ec286a9f09a8d19af072daea12d4
feat(cli,core,config): Add --include-full-directory-structure and full repository tree
## Summary Adds `--include-full-directory-structure` to display the full repository directory tree (subject to ignore rules) in the Directory Structure section when `--include` is used. File processing remains scoped to the `--include` patterns. The flag is opt‑in and defaults to `false` (non‑breaking). ## Motivation ...
diff --git a/src/cli/actions/defaultAction.ts b/src/cli/actions/defaultAction.ts index 8ce60554da..00b20e7d65 100644 --- a/src/cli/actions/defaultAction.ts +++ b/src/cli/actions/defaultAction.ts @@ -234,6 +234,13 @@ export const buildCliConfig = (options: CliOptions): RepomixConfigCli => { }; } + if (options...
8
7
3
[{"id": "G0", "claim": "The ignore-pattern preparation block in listDirectories is duplicated from searchFiles; extract it into a shared helper (e.g. getPreparedIgnorePatterns) to improve maintainability and avoid future inconsistencies.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"...
null
yaml__go-yaml__286
yaml/go-yaml
286
defect
6d97a84ef13c520d255c2c1777737e56c1544b6e
73b1f0481f4c88fb470ebe1591aa5dc0a801f4d3
Convert version presets to functions
The version presets V2, V3, and V4 were previously package-level vars evaluated at init time. While this works fine for simple formatting options, it becomes problematic for future enhancements where presets need to include heavier configuration like plugin registrations. As vars: - All three are instantiated at in...
diff --git a/cmd/go-yaml/main.go b/cmd/go-yaml/main.go index 09d909ac..94375aac 100644 --- a/cmd/go-yaml/main.go +++ b/cmd/go-yaml/main.go @@ -59,13 +59,13 @@ func initOptionRegistry() { optionRegistry = map[string]optionSpec{ // Version presets "v2": {typ: "preset", handler: func(string) ([]yaml.Option, error)...
4
3
1
[{"id": "G0", "claim": "The doc's claim that `yaml.Dump(&data, yaml.WithV3Defaults())` \"matches Marshal\" is inaccurate because Marshal also applies WithLineWidth(-1), so the example should include the line-width option or the wording should be softened to only claim matching indentation/compactness.", "category": "do...
null
yanagishima__yanagishima__318
yanagishima/yanagishima
318
defect
42ca1a8137ce043ba3926e1a3557e8ec3e4f1aac
6b597f14fb63d4aa9e7b422961840a9a86c9102c
Add test for ShareController.get() method
Let's start adding controller tests for important features.
diff --git a/build.gradle b/build.gradle index b03b425a..8f094645 100644 --- a/build.gradle +++ b/build.gradle @@ -152,6 +152,8 @@ dependencies { // Lombok compileOnly 'org.projectlombok:lombok:1.18.8' annotationProcessor 'org.projectlombok:lombok:1.18.8' + testCompileOnly 'org.projectlombok:lombok:1....
1
1
1
[{"id": "G0", "claim": "getPublishId() should build the md5 publish id from elasticsearch.name() (the engine getQueryId is based on) instead of the hardcoded \"test-engine\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yandex-qatools__htmlelements__131
yandex-qatools/htmlelements
131
defect
c6f1accd4e54c7ffa88ec5b0d1d99373fd555a42
d086274c2047dc44e6c68264aef8487188647839
Fix array out of bounds
The following code would fail in case if headings is less then row headers set: ``` return rows.stream() .map(row -> row.stream() .collect(toMap(e -> headings.get(row.indexOf(e)), identity()))) ```
diff --git a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/Table.java b/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/Table.java index bd2836f6..e71283a7 100644 --- a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/Table.java +++ b/htmlelements-ja...
3
3
1
[{"id": "G0", "claim": "The pull request should add tests describing the array-index-out-of-bounds issue it fixes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Indentations are broken in several places in the changed files.", "category": "maintainabil...
null
yandex-qatools__htmlelements__84
yandex-qatools/htmlelements
84
defect
51eba9c7aeb850709875d436bac51228557c2c45
24a878dc40cd699bf8771a833103233b72861c2b
Form.fill() doesn't clear text inputs before calling sendKeys()
``` @Test public void test() { Map<String, Object> data = new HashMap<>(); data.put("login", "email_login"); MainPage page = new MainPage(new FirefoxDriver()); page.open(); page.fillLogin(data); Assert.assertEquals(data.get("login"), page.getLogin()); pa...
diff --git a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/Form.java b/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/Form.java index ba6a4a8a..e988879d 100644 --- a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/Form.java +++ b/htmlelements-java/...
5
5
2
[{"id": "G0", "claim": "Form should use the corresponding element classes' methods (e.g. TextElement) to set values instead of falling back to sendKeys and similar methods, which duplicates logic already solved for other elements.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"...
null
yandex-qatools__htmlelements__91
yandex-qatools/htmlelements
91
defect
fc3fad75bf5e013de96ee84c00622c396677a321
d70e891fab73be8038fb612bfc790d628d7329f8
add TypifiedElement.exists and HtmlElement.exists
I remember using exists().matches(element) several times. I saw PR #83 and thought that I'm not the only one who needs this functionality.
diff --git a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/HtmlElement.java b/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/HtmlElement.java index ed1f8249..36717f6d 100644 --- a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/HtmlElement.java +++...
2
1
0
[{"id": "G0", "claim": "The `return true` in HtmlElement.exists() should be at the end of the method rather than in the middle of the try block (a code-style/coverage-report improvement, not something that does not work).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"},...
null
yandex-qatools__htmlelements__98
yandex-qatools/htmlelements
98
defect
fc3fad75bf5e013de96ee84c00622c396677a321
8bf98e819495248e5730f3ea1261fd79682d7e4f
Update to Java 8
Fixed previous botched PR. This relates to issue #96.
diff --git a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/Radio.java b/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/Radio.java index 182c5ddf..e0849270 100644 --- a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/Radio.java +++ b/htmlelements-ja...
7
6
2
[{"id": "G0", "claim": "The new selectByValue filter calls getAttribute(\"value\").equals(value), which is not NPE-safe if a button's value attribute is null; it should be value.equals(buttonValue) with a precondition check, or StringUtils.equals.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
yandex-qatools__htmlelements__99
yandex-qatools/htmlelements
99
defect
e922536c4f1d2c5f226bfe851c594642f6b2195e
8e875ccabc9a165bbc20ecfc0be2d501276496f5
Fix for #94
Resubmitting PR for #94 after doing a bad job of conflating two different issues on the same branch.
diff --git a/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/loader/decorator/HtmlElementDecorator.java b/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/loader/decorator/HtmlElementDecorator.java index 3d44bbc5..fa635def 100644 --- a/htmlelements-java/src/main/java/ru/yandex/qatools/htmle...
3
2
0
[{"id": "G0", "claim": "Rename the new test method non_element_private_fields_should_not_be_decorated_as_elements to use camelCase notation.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Keep the previous sequential if statements and only add t...
null
yandex__odyssey__147
yandex/odyssey
147
defect
c25c5bd050248d8a665765de2688a83161d147d8
2d982906097e14b1c03dcc0935352073bf361ac8
t-digest for latencies
This algorithm has an experiment proves high efficiency. We can support it to have the ability to calculate quantiles even for high-rate "SELECT 1" queries. I found only one serious trouble for using it - it doesn't support the calculation of quantiles in the rolling window by default. But it has a cool property - ...
diff --git a/deploy b/deploy new file mode 100644 index 000000000..0d03134a9 --- /dev/null +++ b/deploy @@ -0,0 +1,3 @@ +rm /usr/bin/odyssey +cp sources/odyssey /usr/bin/odyssey +service odyssey restart \ No newline at end of file diff --git a/sources/CMakeLists.txt b/sources/CMakeLists.txt index 4c0918200..67f873439 1...
13
10
1
[{"id": "G0", "claim": "The digest window size 5 hard-coded in od_stat is an unexplained magic number — the reviewer asks why 5.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A commented-out od_hgram_add_data_point line is left in od_stat_query_end and ...
null
yandex__odyssey__881
yandex/odyssey
881
defect
58535af16ff4d4ffb7ed6ce391dc259f83bd7720
26d5a4092c426a430b5a37c0da713c682d4714da
add compare-and-wait functionality to machinarium wait list
The current wait_list implementation is vulnerable to lost wake-ups. This problem can be fixed by improving the wait_list interface. For additional details, refer to machinarium.h.
diff --git a/sources/global.h b/sources/global.h index bf40bd1f0..8b31c3533 100644 --- a/sources/global.h +++ b/sources/global.h @@ -33,7 +33,7 @@ static inline int od_global_init(od_global_t *global, od_instance_t *instance, global->hba = hba; od_atomic_u64_set(&global->pause, 0ULL); - global->resume_waiters = m...
5
3
0
[{"id": "G0", "claim": "Move the `#include <stdatomic.h>` line added to third_party/machinarium/sources/machinarium.h into c.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The wait list's 'word' field/parameter is a confusing name for a 64-bi...
null
yandex__odyssey__888
yandex/odyssey
888
defect
00be9a887430bff10426ad6f160a146e0dec430f
cdd34c55a28ece251b4827fd94c7a4cefa8cb245
rewrite wait list (notify_all, sleepy release)
1. The current implementation of mm_wait_list is non-linearizable because the mm_wait_list_notify_all function is not atomic with respect to other wait_list operations. This makes a wait list an extremely hard structure to reason about. It also makes the guarantees that a wait_list provides very unclear. This proposal ...
diff --git a/test/machinarium/test_wait_list_notify_all.c b/test/machinarium/test_wait_list_notify_all.c index 0d0a367ab..1abccb2b8 100644 --- a/test/machinarium/test_wait_list_notify_all.c +++ b/test/machinarium/test_wait_list_notify_all.c @@ -1,58 +1,85 @@ #include <machinarium.h> #include <odyssey_test.h> +#defi...
3
3
1
[{"id": "G0", "claim": "Use '<' instead of '!=' as the loop comparison in mm_wait_list_notify_all, per project style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "sleepies_count is no longer atomic, so it should still be explicitly initialized...
null
yangyin5127__go-xss__4
yangyin5127/go-xss
4
defect
a496a53108872cd3c74efe250b1ed4fc404e2c7f
d7888bff67d4961b24021c139ce3bd7e5ba0db1f
fix: 防止获取标签属性panic
防止获取标签属性时panic,html为外部恶意输入,可以构造类似于\<a&nbsp;&nbsp;&nbsp;\>场景会造成数组越界panic
diff --git a/xss.go b/xss.go index c2a5fdc..a1e4877 100644 --- a/xss.go +++ b/xss.go @@ -62,6 +62,7 @@ type AttrResult struct { Closing bool } +// GetAttrs 获取标签属性 func GetAttrs(html string) AttrResult { i := spaceIndex(html) if i == -1 { @@ -71,8 +72,11 @@ func GetAttrs(html string) AttrResult { } } ht...
2
2
2
[{"id": "G0", "claim": "The guard should be `len(html) > 0` instead of `len(html) >= 0`, since `>= 0` is always true and does not prevent the index-out-of-range panic on `html[len(html)-1]`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Test cases ...
null
yannh__kubeconform__83
yannh/kubeconform
83
defect
d536a659bdb20ee6d06ab55886b348cd1c0fa21b
941047114211eb536d6d782a278fee47c99453a3
Add -v flag to output version
This will output the version based off the git tag, e.g.: ``` » ./bin/kubeconform -v development ```
diff --git a/.goreleaser.yml b/.goreleaser.yml index 67481b94..140481af 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,6 +20,7 @@ builds: - -a ldflags: - -extldflags "-static" + - -X github.com/yannh/kubeconform/pkg/config.version={{.Tag}} archives: - format: tar.gz @@ -58,4 +59...
1
1
0
[{"id": "G0", "claim": "FromFlags should only parse feature flags, and the version should be printed directly in main when cfg.Version is set.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yanyiwu__cppjieba__218
yanyiwu/cppjieba
218
defect
b236d3a735ec2589ac38e6d418bda792ec50c06d
834102686f40441e52974dd6eba00e8462448dca
Handle Windows Unicode paths when loading cppjieba resource files
`cppjieba` could fail on Windows when dictionary-related files were located under non-ASCII paths because several loaders still opened UTF-8 paths through narrow `std::ifstream(path.c_str())`. This updates the shared file-loading path so dictionary, user dictionary, HMM model, IDF, and stop-word resources can be opened...
diff --git a/include/cppjieba/DictTrie.hpp b/include/cppjieba/DictTrie.hpp index 22b0100e..e3e1a7e4 100644 --- a/include/cppjieba/DictTrie.hpp +++ b/include/cppjieba/DictTrie.hpp @@ -15,6 +15,7 @@ #include <unordered_set> #include "limonp/StringUtil.hpp" #include "limonp/Logging.hpp" +#include "UnicodeFile.hpp" #in...
1
1
1
[{"id": "G0", "claim": "The non-UTF-8 fallback in OpenInputFile uses the narrow Windows API, which interprets char* paths as the system ANSI code page rather than UTF-8, so passing a UTF-8 path to ifs.open(char*) can be misinterpreted and fail, and behavior becomes inconsistent depending on whether the input happens to...
null
yargs__yargs__1033
yargs/yargs
1,033
defect
a5ac2133f712a546c88bb00e2443bb9aeb82d0ac
153214f8f1a5fe7f8961e67a5aefcfaa0c0291fd
Use chai 4.x
This fix is required to package chai for Debian. From a Debian packager: > (...) in debian, we want to use a single version of chai for all modules we ship and some modules need chai 4. So we need to port all modules still using chai < 4 to chain 4.x. I've updated the tests accordingly, and tested for stylisti...
diff --git a/package.json b/package.json index d03f42ebc..7df4e5709 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "yargs-parser": "^8.1.0" }, "devDependencies": { - "chai": "^3.4.1", + "chai": "^4.1.2", + "chai-things": "^0.2.0", "chalk": "^1.1.3", "coveralls": "^2.11.11",...
1
1
0
[{"id": "G0", "claim": "Use chai's built-in `.deep.include` assertion instead of the `chai-things` helper, so the extra dependency need not be pulled in.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yargs__yargs__1043
yargs/yargs
1,043
defect
232f9cac56a1096188a8a6b769564225ed497f8b
54122cfac6fec83bcb071ef3ea6ccb5567aeb86a
fix: requiresArg should only be enforced if argument exists
fixes #1041 CC: @TheLarkInn, @shellscape, @jddxf
diff --git a/lib/validation.js b/lib/validation.js index 3f5c49dbb..6cb70b329 100644 --- a/lib/validation.js +++ b/lib/validation.js @@ -59,13 +59,15 @@ module.exports = function validation (yargs, usage, y18n) { self.missingArgumentValue = function missingArgumentValue (argv) { const defaultValues = [true, fal...
1
1
0
[{"id": "G0", "claim": "The new key-presence check should use argv.hasOwnProperty(key) instead of Object.keys(argv).indexOf(key).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yargs__yargs__1119
yargs/yargs
1,119
defect
744d29926ab95b879f949aceb9d205c5e49f4c44
12719e59ab18f1c5b60a8f9b3f990b89bec78db2
PR-AN-01: Global Middleware feature.
PR-AN-03: Update API readme. PR-AN-01: Fix tests. PR-AN-01: Remove param defaults for Node 4 comp. PR-AN-01: Remove spread operator for Node 4 comp. PR-AN-01: Add unit tests for middleware. PR-AN-01: Bind this to middleware for chaining.
diff --git a/docs/api.md b/docs/api.md index 37ca64ef9..f9b30707a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -929,6 +929,35 @@ To submit a new translation for yargs: <a name="nargs"></a>.nargs(key, count) ----------- +.middleware(callbacks) +------------------------------------ + +Define global middleware functi...
3
2
0
[{"id": "G0", "claim": "The new .middleware docs leave unclear whether a single function can be passed instead of an array; bcoe asked whether a single function can be passed in.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add one functional te...
null
yargs__yargs__118
yargs/yargs
118
defect
a758e0b2556184f067cf3d9c4ef886d39817ebd2
7612906ecf03e7eb344e4f5c4403e76bcdd2b15c
added support for bash completion to yargs
yargs now supports bash completion for commands and options. 1. have your application call `yargs.showCompletionScript()`, to print out a script that can be installed in a user's `.bashrc`. 2. set the `.completion('completion')` flag to enable bash completion. ``` js var yargs = require('yargs') .completion('comple...
diff --git a/README.md b/README.md index 84b90c7dc..466529100 100644 --- a/README.md +++ b/README.md @@ -702,6 +702,58 @@ yargs.showHelp(); Later on, ```argv``` can be retrived with ```yargs.argv``` +.completion(cmd, [description], [fn]); +------------- + +Enable bash-completion shortcuts for commands and options....
1
1
0
[{"id": "G0", "claim": "The typo `descrption` in the new README section should be corrected to `description`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yargs__yargs__1256
yargs/yargs
1,256
defect
8789bf4f56940248316c58997b107b029dbdb297
b9b97ad54f67ba9fba28bb7b0504c787c669da6a
Adds sort to command usage help output
When showing the usage (if no command is available) the order of commands isn't sorted, this might be a undesirable and could be put into a config setting, but I'd like to see the tolerance to default to sorted rather than as-defined.
diff --git a/lib/usage.js b/lib/usage.js index 9be8a995b..5813ae7c1 100644 --- a/lib/usage.js +++ b/lib/usage.js @@ -34,7 +34,6 @@ module.exports = function usage (yargs, y18n) { let failureOutput = false self.fail = function fail (msg, err) { const logger = yargs._getLoggerInstance() - if (fails.length...
4
4
1
[{"id": "G0", "claim": "Command sorting should be opt-in via a `sort-commands` configuration option (defaulting to false) passed through parserConfiguration, instead of always sorting the commands in the help output.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
yargs__yargs__1366
yargs/yargs
1,366
defect
266ed91772e947de3659e7221a93fe703d558c4c
7822bb36ed6a35caf07e3baaca9cbb32e9f97826
fix: properties accessed on singleton now reflect current state of instance
`singletonify()` used to set `Argv`'s properties to `inst`'s properties values _at the time of `Argv`'s last call_. So `Argv`'s properties and the `inst`'s ones could diverge afterwards, such as `parsed` after a call to `parse()`, still being `false` in `Argv.parsed`, not in `inst.parse`. `singletonify()` now add...
diff --git a/index.js b/index.js index dfed54bc5..25bde57d1 100644 --- a/index.js +++ b/index.js @@ -25,8 +25,10 @@ function singletonify (inst) { Object.keys(inst).forEach((key) => { if (key === 'argv') { Argv.__defineGetter__(key, inst.__lookupGetter__(key)) + } else if (typeof inst[key] === 'functi...
3
1
0
[{"id": "G0", "claim": "The singleton should special-case only '$0' and 'parsed' (via an explicit property-list check) instead of leaking every non-function property of the instance through getters, and no more stateful variables should be leaked on the yargs object going forward.", "category": "design", "verdict": "op...
null
yargs__yargs__1384
yargs/yargs
1,384
defect
e3981fd3a5f65427b4d8daae7331f956c4d2d70d
ca6c5d6faf27516b8d2532e60676a366ac55448d
Support multiple epilogs being added
# Context We wrap our commands in a function that adds `docs`, `maintainer`, and `slack` properties to the command module object. We use these properties as part of an automatically generated epilog that we add to each command. # Problem Currently subsequent calls to `epilog` will overwrite any previous epilog. ...
diff --git a/lib/usage.js b/lib/usage.js index ded4fc427..0fa8f1201 100644 --- a/lib/usage.js +++ b/lib/usage.js @@ -122,9 +122,9 @@ module.exports = function usage (yargs, y18n) { } self.getDescriptions = () => descriptions - let epilog + let epilogs = [] self.epilog = (msg) => { - epilog = msg + ep...
1
1
1
[{"id": "G0", "claim": "Add one additional test case covering multiple epilogs, beyond chaining a second epilog call into the existing single-epilog test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yargs__yargs__1386
yargs/yargs
1,386
defect
674f69a2bf6dd770fe7bcbc73d04a69501d7cc85
5a4f3779b0a9b61188a0038a4d11f738c5a2c124
feat: formalize existing callback argument to showHelp
This PR adds doc and test for an existing feature: Supplying a print callback to `usage.showHelp` instead of a `console` function name. We use the callback in our code to explicitly specify the stdout/stderr stream dependencies of yargs - tests can use it instead of mocking the console. Thanks for making this gre...
diff --git a/docs/api.md b/docs/api.md index 0d0589ca5..272c9d4e0 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1331,6 +1331,17 @@ yargs.showHelp("log"); //prints to stdout using console.log() Later on, `argv` can be retrieved with `yargs.argv`. +.showHelp(printCallback) +--------------------------- + +Print the ...
3
3
0
[{"id": "G0", "claim": "The docs should state that showHelp can be called with no callback, printing help to stdout.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The showHelp documentation should use one combined signature like .showHelp([level ...
null
yargs__yargs__1411
yargs/yargs
1,411
defect
8792d13445458c51bdff6612b1edda5aa344b6a0
9b79e8990b8086bdc018a6dfa9a34cd9163ee10c
feat: make it possible to merge configurations when extending other config.
Default behavoir is as before. But you can add 'merge-extends': true to your parser configuration that will change so that configurations will be deeply merged instead of overwritten per key. See https://github.com/yargs/yargs/issues/1363
diff --git a/lib/apply-extends.js b/lib/apply-extends.js index 864567a61..53eaa62c7 100644 --- a/lib/apply-extends.js +++ b/lib/apply-extends.js @@ -16,7 +16,22 @@ function getPathToDefaultConfig (cwd, pathToExtend) { return path.resolve(cwd, pathToExtend) } -function applyExtends (config, cwd) { +function mergeD...
3
3
0
[{"id": "G0", "claim": "This yargs option is not parser-related, so applyExtends should not read getParserConfiguration(); instead a mergeExtends() function setting a mergeExtends boolean (like strict() does) should be added.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
yargs__yargs__1412
yargs/yargs
1,412
defect
b7ec0dfd0177ab6e0be5c40210bfc77f2d3b3099
a5cfd86a4954811ad44729097babf0451e2a3bce
fix: populate correct value on yargs.parsed and stop warning on access
This should address a couple minor issues that lead to #1144: 1. `self.parsed` was being populated with an `argv` instance rather than a `yargsParser.detailed` instance, leading to the missing fields that raised exceptions. 2. once `1.` was addressed, the help message was incorrect, because `async` handlers prior t...
diff --git a/index.js b/index.js index b36531b43..2db543ed3 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,6 @@ function singletonify (inst) { return inst.$0 }) Argv.__defineGetter__('parsed', () => { - console.warn('In future major releases of yargs, "parsed" will be a private field. U...
4
3
1
[{"id": "G0", "claim": "With exitProcess set to false, fail() throws inside the .catch handler so the rejection stays unhandled; the unhandled rejection issue should be addressed (e.g. wrapping fail in try/catch) before merging.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
yargs__yargs__1414
yargs/yargs
1,414
defect
b7ec0dfd0177ab6e0be5c40210bfc77f2d3b3099
3e2d0fb1e2fc4534a288dfa93ff70de089fc8d32
Make strict() work with options containing hyphens
Fixes #1039 #1171 #1236 #1325
diff --git a/lib/validation.js b/lib/validation.js index 527a0d539..414a7cb28 100644 --- a/lib/validation.js +++ b/lib/validation.js @@ -96,7 +96,7 @@ module.exports = function validation (yargs, usage, y18n) { if (specialKeys.indexOf(key) === -1 && !positionalMap.hasOwnProperty(key) && !yargs....
2
2
1
[{"id": "G0", "claim": "The pull request should add a couple more test cases covering the happy paths of strict() with hyphenated options.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The helper should be renamed to match the naming convention, e.g. i...
null
yargs__yargs__1540
yargs/yargs
1,540
defect
8ebcdebe6b29a71a7d0b739b23c1fcdf859b0d30
4362c9c8d84e9e6539f011310393c7a886c62ae6
feat: introduces strictCommands() subset of strict mode
I have met your demands @boneskull This seemed like a reasonable feature request, and I'm excited to see whether you get use out of it. Code review appreciated. --- ~BREAKING CHANGE: if you use `.demandCommand()` or `.demandCommand(1)`, in conjunction with defining commands, `.strictCommands()` is enabled...
diff --git a/docs/api.md b/docs/api.md index e6659dd79..4350af7f9 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1401,6 +1401,16 @@ corresponding description, will be reported as an error. Unrecognized commands will also be reported as errors. +.strictCommands([enabled=true]) +--------- + +Similar to `.strict()`, ...
4
3
1
[{"id": "G0", "claim": "The failure message for unrecognized commands should read \"Unknown command\" rather than the existing \"Unknown argument\", which is too similar to the unknown-argument output.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
yargs__yargs__231
yargs/yargs
231
defect
c17c3b41ddeab725d1c7d7646342bb85fc2280ef
8fbe67753c997f12d8565afc53bf2584a114b2ab
detect a user's locale using os-locale
This pull moves us to phase 2.0 of locales in yargs, we now automatically detect the operating system's locale using @sindresorhus' [os-locale](https://github.com/sindresorhus/os-locale) module. ``` sh LC_ALL=pt_BR ./test.js --help ``` outputs: ``` sh Opções: -h, --help Mostra ajuda ...
diff --git a/README.md b/README.md index a310d3134..33981686c 100644 --- a/README.md +++ b/README.md @@ -653,7 +653,8 @@ Optionally `.implies()` can accept an object specifying multiple implications. .locale(locale) --------------- -Set a locale other than the default `en` locale: +Set a locale other than the opera...
2
2
1
[{"id": "G0", "claim": "It would be better for y18n to fall back to the language-only code (e.g. `es`) when no locale/json file is found for a language_territory code (e.g. `es_MX`), so that guessLocale() need not split the result of osLocale.sync() on '_' here, which could be prohibitive of adding territory-specific t...
null
yargs__yargs__273
yargs/yargs
273
defect
a79900a51360e5bc5b6af0e385aae2741ffc94c0
222c074fcfe495e2276ededd31c3e60d4a4df4cc
Output failure message only once
Fixes issue #270 (concerning when `.exitProcess(false)` is used) by implementing the simplest solution mentioned [in comment](https://github.com/bcoe/yargs/issues/270#issuecomment-144551525) there. Includes and satisfies test specs from PR #269.
diff --git a/lib/usage.js b/lib/usage.js index 2245bc558..5637f95a3 100644 --- a/lib/usage.js +++ b/lib/usage.js @@ -28,17 +28,22 @@ module.exports = function (yargs, y18n) { return self } + var outputFailure = true self.fail = function (msg) { if (fails.length) { fails.forEach(function (f) { ...
2
2
0
[{"id": "G0", "claim": "The failure flag should start in a false state (e.g. `failureOutput = false`, set to `true` once an error is spat out) instead of `outputFailure = true`.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Confirm that the new tests fa...
null
yargs__yargs__281
yargs/yargs
281
defect
feb5a38e9fe11fa4a09597817ed26429bf4b0819
365593ddddc575088ae340b1e55de3ae9261c45e
fix dot notation parsing issues brought up in #279
fixes #279 addresses several parsing issues brought up by @mir3z in #279: - an alias referencing an inner key was not respected (weird things happened like the inner object being turned into an array). - an outer `foo.bar` key was being set by the `setPlaceholderKeys` method. - an exception could be created by setting ...
diff --git a/index.js b/index.js index 03f5bb4a1..a3628ff1b 100644 --- a/index.js +++ b/index.js @@ -565,6 +565,9 @@ function Argv (processArgs, cwd) { function setPlaceholderKeys (argv) { Object.keys(options.key).forEach(function (key) { + // don't set placeholder keys for dot + // notation options...
1
1
0
[{"id": "G0", "claim": "The dot-notation placeholder check should use `indexOf('.')` instead of a RegExp, as the simplest possible solution.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yargs__yargs__289
yargs/yargs
289
defect
db17363a883933c4849da57f0d39a64aaca92ae1
ed1de1d76a3e26eef5f745a3e7d6921112048e09
allow options to be placed in custom groups
Allow options to be placed in groups under headings other than the default `Options:` heading, like so: ``` js var yargs = require('yargs')(['--help']) .help('help') .group('batman', 'Heroes:') .describe('batman', "world's greatest detective") .argv ``` --- ``` Options: --help Show help ...
diff --git a/README.md b/README.md index 3ebd31c2d..dadad7e6a 100644 --- a/README.md +++ b/README.md @@ -649,6 +649,26 @@ Method to execute when a failure occurs, rather than printing the failure messag `fn` is called with the failure message that would have been printed. +<a name="group"></a>.group(key(s), groupN...
5
4
0
[{"id": "G0", "claim": "The three lines in self.group could be replaced with the single line groups[groupName] = (groups[groupName] || []).concat(opts), which is both shorter and significantly faster than Array.prototype.push.apply per the jsperf benchmark.", "category": "performance", "verdict": "supported", "priority...
null
yargs__yargs__291
yargs/yargs
291
defect
db17363a883933c4849da57f0d39a64aaca92ae1
ff01297d73904bf39e0e4c2cf39e86b1259bb905
handle edge-cases when setting alias keys
In the ongoing effort to make yargs unsinkable, this pull request handles edge-cases when setting aliases. This behavior used to fail: ``` js var argv = require('yargs') .alias('x', 'y') .alias('y', 'z') ``` As did this: ``` js var argv = require('yargs') .alias('z', 'zm') .alias('zoom', 'zoop') .alias('zm...
diff --git a/index.js b/index.js index 424c04b0a..77540e6be 100644 --- a/index.js +++ b/index.js @@ -166,7 +166,25 @@ function Argv (processArgs, cwd) { self.alias(key, x[key]) }) } else { - options.alias[x] = (options.alias[x] || []).concat(y) + // perhaps 'x' is already an alias in anot...
2
2
0
[{"id": "G0", "claim": "The test title should read 'should merge two lists of aliases if they collide' instead of 'if the collide'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The first condition `(options.alias[x] || aliases)` in the merge sta...
null
yargs__yargs__321
yargs/yargs
321
defect
5d704023d9a704661aae85485d102188a4b9892c
ec081f13198e5ab17a399820733f45a638e37cd9
allow a custom parser to be passed to config()
Allow a custom parsing function to be passed to config. Fixes #304 Reviewers: @sebastienbarre, @indieisaconcept, @nexdrew
diff --git a/README.md b/README.md index 435172360..1a1f09197 100644 --- a/README.md +++ b/README.md @@ -549,7 +549,7 @@ var argv = require('yargs') .argv; ``` -<a name="config"></a>.config(key, [description]) +<a name="config"></a>.config(key, [parseFn], [description]) ------------ Tells the parser that if t...
5
3
1
[{"id": "G0", "claim": "Consider using `for` loops instead of `.forEach` in the new code, since they are faster and would remove the leading semicolons, while conceding readability may be worth the trade.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
yargs__yargs__343
yargs/yargs
343
defect
f21fba5924c69f84d2487c89496a67b29161b172
395b82539f6fd7eb25dbd9c6487102b2a10b89d2
default to the version we read in the package using yargs
This is an update to @maxrimue's awesome work adding tests. I found the test cases slightly tricky to simulate, I ended up: 1. copying the current yargs module to a fixtures directory so that I could test the normal behavior. 2. creating a symlink in the fixtures directory so that I could test the symlink behavior. I...
diff --git a/README.md b/README.md index a997ed256..3a83248fa 100644 --- a/README.md +++ b/README.md @@ -1120,13 +1120,14 @@ present script similar to how `$0` works in bash or perl. `opts` is optional and acts like calling `.options(opts)`. -.version([option], [description], version) +.version([option], [descript...
4
1
0
[{"id": "G0", "claim": "The README should also document that the `description` and/or `option` parameters can be left out while still passing a `version` parameter (e.g. `.version(desc, ver)` and `.version(ver)`), not only the no-argument form.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "s...
null
yargs__yargs__395
yargs/yargs
395
defect
e0d55f154084967e095816054bf5f2aec1de7412
e52afb56b0d6067e5413a5f5bddf6b7f0fb69794
Preserve groups containing global keys
Heya! I used yargs in a new CLI tool the other day. This tool takes some global options as well as per-command options. I noticed I had to [restore the global option groups](https://github.com/novemberborn/wilee/blob/cdf47828ae17dd9ffd3944def85adf189205f403/src/lib/cli.js#L45) for each command, which I was not expectin...
diff --git a/index.js b/index.js index 216fc5f02..74d7815ea 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,7 @@ function Argv (processArgs, cwd) { var self = {} var command = null var completion = null + var groups = {} var usage = null var validation = null var y18n = Y18n({ @@ -69,6 +70,17 @@ fu...
3
2
2
[{"id": "G0", "claim": "The `groups` variable should be declared higher up in Argv regardless of this PR, since `reset()` seems to be called before the current declaration is reached.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Per #336 and...
null
yargs__yargs__494
yargs/yargs
494
defect
a54c7429fecac5c64a0ede4f80f85dcb5c67c661
2b7d6910892bdb1810ba7ad8187015a4cd3a0cf6
Add .commandDir(dir) to API to apply all command modules from a relative directory
This replaces #463, opting to require modules from a single directory at a time via `require-directory` (instead of supporting globs). The implementation is slightly trickier than I originally thought, but it allows a consumer to do things like the following. ### Example setup **directory structure**: ``` cli.js com...
diff --git a/README.md b/README.md index c6cc0e8ce..652e0122a 100644 --- a/README.md +++ b/README.md @@ -587,8 +587,138 @@ yargs.command('get <source> [proxy]', 'make a get HTTP request', require('my-mod .argv ``` -.completion([cmd], [description], [fn]); ----------------------------------------- +.commandDir(dir...
3
3
1
[{"id": "G0", "claim": "The pull request ships the new .commandDir() feature without any tests, and a test should be added to the mix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Allowing command modules without builder and handler functions may be u...
null
yargs__yargs__556
yargs/yargs
556
defect
3c2e4791a38967f554412c1b8abd6dae30cb3985
0426bd420a419814296ad39814191bd45a9d6333
add config lookup for .implies()
This will eventually fix #547 This PR is still a WIP as the new added test passes regardless of whether `boolean-negation` is turned on or off, however, I'd love to hear what folks think about the general approach already.
diff --git a/lib/validation.js b/lib/validation.js index b2cb2f6af..718dbb244 100644 --- a/lib/validation.js +++ b/lib/validation.js @@ -221,6 +221,7 @@ module.exports = function (yargs, usage, y18n) { Object.keys(implied).forEach(function (key) { var num const origKey = key + const booleanNegat...
4
4
2
[{"id": "G0", "claim": "The new test is not async, so it should not accept a done argument and should drop the 'return done()' line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test title 'should ignore the --no- part if boolean negation ...
null
yargs__yargs__613
yargs/yargs
613
defect
cbc36360b5abab42384f42c8ffab7083a28b1961
4115d4637f1cb9a4836fa61637eb13686ce1c1ad
Also pass yargs to the fail handler
This is needed to display a complete help message for a command that failed in a top-level `fail` handler
diff --git a/README.md b/README.md index 1f441f912..4cdeb2c20 100644 --- a/README.md +++ b/README.md @@ -1055,15 +1055,17 @@ yargs have been validated. Method to execute when a failure occurs, rather than printing the failure message. -`fn` is called with the failure message that would have been printed and the -`...
3
3
2
[{"id": "G0", "claim": "The pull request should add a test covering the new behaviour of passing the yargs instance to the fail handler.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test added for the fail handler fails — the exception thrown in t...
null
yargs__yargs__646
yargs/yargs
646
defect
23cf8366226c3bf3eb6ce12410a12d4209c4a793
669d5e64cd2e4ef39347c6f1f6f04a849ab834b8
feat: reworking yargs API to make it easier to run in headless environments, e.g., Slack
after discussion today, @nexdrew and I settled on what I think is a pretty clever extension to the `parse()` function, as a simple API extension that supports running yargs in headless mode (yargs with no terminal output). --- A callback `fn` can optionally be provided as the second argument to `.parse()`. If a callb...
diff --git a/lib/usage.js b/lib/usage.js index f362fb713..03a896e75 100644 --- a/lib/usage.js +++ b/lib/usage.js @@ -30,6 +30,9 @@ module.exports = function (yargs, y18n) { var failureOutput = false self.fail = function (msg, err) { + const logger = yargs.getLoggerInstance() + const exitFn = yargs.getExit...
13
11
8
[{"id": "G0", "claim": "Perhaps `require('es6-promise').polyfill()` should be added to test/yargs.js as well, since its new tests use Promises.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If a custom check returns an `Error` instance, that Error shou...
null
yargs__yargs__647
yargs/yargs
647
defect
23cf8366226c3bf3eb6ce12410a12d4209c4a793
ed82c47b3e836316accb2603828924eda2f888f7
feat: initial support for command aliases
Allows a command to have aliases if given as an array, e.g. ``` js .command(['start', 'run', 'go'], 'Start the app', builder, handler) ``` The first element in the array is treated as the canonical command, which supports positional args; the remaining elements are considered aliases. Aliases inherit their positional...
diff --git a/lib/command.js b/lib/command.js index 3d6615dff..1b2b7ec56 100644 --- a/lib/command.js +++ b/lib/command.js @@ -8,27 +8,35 @@ module.exports = function (yargs, usage, validation) { const self = {} var handlers = {} + var aliasMap = {} self.addHandler = function (cmd, description, builder, handl...
1
1
0
[{"id": "G0", "claim": "The German translation \"Aliase\" for the \"aliases:\" locale string should be implemented directly into this PR rather than left for a follow-up translation issue.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
yargs__yargs__658
yargs/yargs
658
defect
1059ed2ffbd4c8436a2f7d32bca35d965fdb97c8
16d9b6a20e19bd9553b98143ccf318f3bd686ad5
feat(command): add camelcase commands to argv
Populate argv object with camelcase variants of hyphenated arguments. Fixes #653
diff --git a/lib/command.js b/lib/command.js index 35b307791..ebfb82a5d 100644 --- a/lib/command.js +++ b/lib/command.js @@ -1,5 +1,6 @@ const path = require('path') const inspect = require('util').inspect +const camelCase = require('camelcase') // handles parsing positional arguments, // and populating argv with...
3
2
1
[{"id": "G0", "claim": "The camel-case expansion logic duplicated in the required- and optional-argument branches should be pulled into a helper function, e.g. addCamelcaseExpansions(), since the logic is the same in both places.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro...
null
yargs__yargs__668
yargs/yargs
668
defect
d4f578de4f012a7decbd15c8295e765ea9170f27
517ef81f3f4a995de71807dd25465465807a55cd
Suggestions to improve headless yargs
This adds 3 things to the existing `headless-yargs` branch: 1. Changes `.parse(msg, cb)` so that the original `exitProcess` setting is reinstated after callback invocation 2. Resets the `parseFn` after each call such that you can mix and match `.parse(msg, cb)` calls (where `cb` is invoked) and `.parse(msg)` calls (whe...
diff --git a/README.md b/README.md index 527546493..9bf8d5ed6 100644 --- a/README.md +++ b/README.md @@ -1137,7 +1137,7 @@ Give some example invocations of your program. Inside `cmd`, the string present script similar to how `$0` works in bash or perl. Examples will be printed out as part of the help message. -.exi...
1
1
0
[{"id": "G0", "claim": "The new README note should say that it is providing a callback to `parse()`, rather than just providing a callback.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yargs__yargs__727
yargs/yargs
727
defect
9bdaab7ebffbfb70e76fa4067c3cafb4a700ef10
1f82d2e2c9c6630a0fff1b121b3e2bd1f9dd95e8
feat: support for positional argument aliases
When migrating one of npm, Inc's internal chat-bots to yargs, I ran into some help strings that were documented like so: `delete <user|org> delete a user or organization` Given that it's not a huge amount of work, I thought it would be worth adding this syntax to yargs' command API, in the form of positional a...
diff --git a/README.md b/README.md index 2f4cacc76..b87deb2fb 100644 --- a/README.md +++ b/README.md @@ -609,6 +609,18 @@ yargs.command('get <source> [proxy]', 'make a get HTTP request') .argv ``` +#### Positional Argument Aliases + +Aliases can be provided for positional arguments using the +`|` character. As an...
2
2
1
[{"id": "G0", "claim": "The command parser should allow whitespace in positionals — e.g. between aliases, as in 'get <username | email> [ password ]' — with or without aliases.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new alias tests shoul...
null
yargs__yargs__790
yargs/yargs
790
defect
57a8490d3843acad83d387c782efc61e7facf1b7
9c2064341a804eba4dbb2aaa4e847c34d4354d46
fix: running parse() multiple failed when help() enabled
there was a bug that caused an exception to be raised when `parse()` was called multiple times on the same yargs instance if `help()` is enabled. fixes #776
diff --git a/test/command.js b/test/command.js index 9396e144e..8c6df70bb 100644 --- a/test/command.js +++ b/test/command.js @@ -747,6 +747,21 @@ describe('Command', function () { counter.should.equal(2) }) + // addresses: https://github.com/yargs/yargs/issues/776 + it('allows command handler to be invoked ...
2
1
0
[{"id": "G0", "claim": "The function passed to y.parse should be optional, with a noop used when none is passed in.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The new test should spy on a method and assert it was called twice, possibly outside the se...
null
yargs__yargs__881
yargs/yargs
881
defect
bead82c6e28d80bcc7da721bf6771fea317aae1b
3d0cf3073c7ffbdd025c46b8446f74c9e50abbd8
feat: middleware
OK this is a very WIP and ugly first draft of the middleware feature. I will need some help to change passing the middleware using a chaining function instead of an array. For more context check https://github.com/yargs/yargs/issues/876 @bcoe I would love to get some feedback from you. TODO : - [x] Add docum...
diff --git a/lib/command.js b/lib/command.js index 3567cf953..70a4ef6ef 100644 --- a/lib/command.js +++ b/lib/command.js @@ -3,7 +3,7 @@ const inspect = require('util').inspect const camelCase = require('camelcase') const DEFAULT_MARKER = '*' - +const objectAssign = require('object-assign') // handles parsing posi...
5
4
2
[{"id": "G0", "claim": "The command() method already takes many arguments and adding middleware as a fourth/fifth argument worsens the overload; the author should look for a workaround or a more natural way to add middleware to a command.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "intro...
null
yargs__yargs__922
yargs/yargs
922
defect
1ef44e03ef1a2779f92bd979984a6bab3a671ee9
43b8c2f604f757eaeb2830b12cb1e0cbd02fe584
Allow implies and conflicts to accept array values
Fixes #921 and fixes #845 `npm test` passes, but I haven't tried to run yargs with the changes, nor added any new tests (sorry). I've also not updated the docs.
diff --git a/lib/validation.js b/lib/validation.js index 74199d607..c1bc3498d 100644 --- a/lib/validation.js +++ b/lib/validation.js @@ -233,7 +233,14 @@ module.exports = function (yargs, usage, y18n) { }) } else { yargs.global(key) - implied[key] = value + if (!implied[key]) { + imp...
4
4
2
[{"id": "G0", "claim": "Appending the implied values by replacing the array via concat (instead of mutating the array with a push loop) is ugly and slow, and the code should use a faster, cleaner append.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cla...
null
yargs__yargs__962
yargs/yargs
962
defect
d1b23f33ccff1a4f3f342204fc9596c9a33e703a
ef8cc4a60f44a38b176db476d2b85b81fff8cfd9
fix: show hidden options in help
Options with `description: false` will now show up help fixes #851
diff --git a/lib/usage.js b/lib/usage.js index 47cbf75a9..b7bb7c0a6 100644 --- a/lib/usage.js +++ b/lib/usage.js @@ -138,6 +138,7 @@ module.exports = function usage (yargs, y18n) { .concat(Object.keys(demandedOptions)) .concat(Object.keys(demandedCommands)) .concat(Object.keys(options.default)) + ...
3
3
1
[{"id": "G0", "claim": "The ternary nested three levels deep that computes `desc` is hard to understand and should be split into several cases to make it easier to read.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR currently shows optio...
null
yarnpkg__berry__3250
yarnpkg/berry
3,250
defect
01586a88806a2bebd7edb28d1bee3581b1fd3762
66412d9b3de5620a9cf2e40fd3e75193de90bdf3
feat: add support for `workspace:~` and `workspace:^` aliases
**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> closes #2658 **How did you fix it?** <!-- A detailed description of your implementation. --> accept new alias in `@yarnpkg/core` and resolve to correct ver...
diff --git a/.yarn/versions/7c4f7995.yml b/.yarn/versions/7c4f7995.yml new file mode 100644 index 000000000000..fcc8ab89c244 --- /dev/null +++ b/.yarn/versions/7c4f7995.yml @@ -0,0 +1,32 @@ +releases: + "@yarnpkg/core": patch + "@yarnpkg/plugin-pack": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/pl...
6
6
1
[{"id": "G0", "claim": "The release bumps for @yarnpkg/core and @yarnpkg/plugin-pack should be minor instead of patch.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "@yarnpkg/cli also needs a minor release entry because these changes affect the CLI....
null
yarnpkg__berry__3332
yarnpkg/berry
3,332
defect
5bff855886feb1e506d96688fe4138f4ad1e0baa
f0d45b795708f235a3a92e3d2e62c03d0fe1e201
feat(nm): Adds fine-grained per-workspace control for workspace self-references creation
**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> Sometimes self-referencing symlinks in workspaces are expected and wanted and sometimes they cause troubles. The reasons they are not expected - is pre-workspace e...
diff --git a/.yarn/versions/d1681a7b.yml b/.yarn/versions/d1681a7b.yml new file mode 100644 index 000000000000..365c65fe5074 --- /dev/null +++ b/.yarn/versions/d1681a7b.yml @@ -0,0 +1,25 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/nm": patch + "@yarnpkg/plugin-nm": patch + "@yarnpkg/pnpify": patch + +declined...
4
4
1
[{"id": "G0", "claim": "The selfReferences setting example will not show up in the generated docs unless an entry for selfReferences is added to _exampleKeys in the manifest.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The private raw-field nam...
null
yarnpkg__berry__3774
yarnpkg/berry
3,774
defect
a2b645c6a8e75ae771b10adfe918a1cdb570bbb3
dee68efb12ffe741276e2049a5ce1b969bf3e554
Fix incorrect `ZipOpenFS.createReadStream().path`
**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> The `path` property of the stream object returned by `fs.createReadStream` incorrectly equals to the subpath of the file within the zip file. This pull request fi...
diff --git a/.yarn/versions/a282bd58.yml b/.yarn/versions/a282bd58.yml new file mode 100644 index 000000000000..174b33f21cc9 --- /dev/null +++ b/.yarn/versions/a282bd58.yml @@ -0,0 +1,36 @@ +releases: + "@yarnpkg/fslib": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plugin-constraints" + - "@yarnpkg...
2
2
2
[{"id": "G0", "claim": "The path assigned to the ZipOpenFS.createReadStream stream must be converted to a NativePath (e.g. with npath.fromPortablePath), because a PortablePath won't be transformed into a NativePath by the PosixFS ProxiedFS wrapping it, so patching fs breaks.", "category": "correctness", "verdict": "sup...
null
yarnpkg__berry__40
yarnpkg/berry
40
defect
1795e83702cb936d5f49ca371f62cbf619c3b661
268963f499c5c10bbe5fe417f203779049ea5036
Implements dlx
Implements `yarn dlx` (`dlx` for "download and execute"). This command is a bit like `npx` but is less jack-in-a-box. For example it won't ever run the local version of the package instead of the remote one, and won't run scripts (only binaries). Those two use cases are already solved by `yarn run`, so there's little p...
diff --git a/.pnp.js b/.pnp.js index 701013435e8f..a11182a8e649 100755 --- a/.pnp.js +++ b/.pnp.js @@ -9318,6 +9318,43 @@ function $$SETUP_STATE(hydrateRuntimeState) { ] ] ], + [ + "@berry/plugin-dlx", + [ + [ + "workspace:packages/plugin-dlx", + ...
1
1
0
[{"id": "G0", "claim": "The example should use create-react-app instead of create-react-native.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yarnpkg__berry__4356
yarnpkg/berry
4,356
defect
eb7fb790db07dd9e06c68e2990dd12dc4fc06847
d18970349a76b4596508cfb5e60fb6b481daa616
[plugin-npm-cli]: Add ability to exclude packages, or ignore specific advisories in `yarn npm audit`
**What's the problem this PR addresses?** Closes #4355 ... **How did you fix it?** This PR adds a `--exclude` flag to the `yarn npm audit` command in the `nmp-cli` plugin. This flag can be passed multiple times, and any package listed will be removed from the list of packages audited. This PR also adds a `...
diff --git a/.yarn/versions/2e7530b2.yml b/.yarn/versions/2e7530b2.yml new file mode 100644 index 000000000000..31f0d02b09d1 --- /dev/null +++ b/.yarn/versions/2e7530b2.yml @@ -0,0 +1,23 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/plugin-npm-cli": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/...
8
5
4
[{"id": "G0", "claim": "Syntax-wise the feature should be exposed through `--include`/`--exclude` flags, consistent with `foreach`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The exclude/ignore options would be better exposed as configuration setting...
null
yarnpkg__berry__4800
yarnpkg/berry
4,800
defect
a66e528506168f7bfaa4fa9fc02b8edb226e47d4
721735e28190a6a184c553b885186939abc9ad65
fix(essentials): yarn add `--peer` and `--dev` do not work when used together
**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> Yarn add `--peer` and `--dev` do not work when used together Resolves #4691 ... **How did you fix it?** <!-- A detailed description of your implementation....
diff --git a/.yarn/versions/0d3ddb4d.yml b/.yarn/versions/0d3ddb4d.yml new file mode 100644 index 000000000000..b816f400e8d2 --- /dev/null +++ b/.yarn/versions/0d3ddb4d.yml @@ -0,0 +1,7 @@ +releases: + "@yarnpkg/plugin-essentials": patch + +declined: + - "@yarnpkg/plugin-interactive-tools" + - "@yarnpkg/plugin-types...
2
2
1
[{"id": "G0", "claim": "The version file must also mark `@yarnpkg/cli` for release, not only `@yarnpkg/plugin-essentials`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Acceptance tests should be added to packages/acceptance-tests/pkg-tests-specs/s...
null
yarnpkg__berry__5355
yarnpkg/berry
5,355
defect
15d31310cc6a5164df9ba4e7a99289657ec58be6
093ae5a668dceaba5e15c157d9b9e09583e9ecd0
fix(pnp): esm - use correct error code when module not found
**What's the problem this PR addresses?** This PR makes the PnP ESM loader throw with error code `ERR_MODULE_NOT_FOUND` (instead of `MODULE_NOT_FOUND`) when a request cannot be resolved. Closes #5334 **How did you fix it?** The error is thrown by the PnP CJS hook, and the ESM loader just calls the CJS hook...
diff --git a/.pnp.loader.mjs b/.pnp.loader.mjs index 38ccb9f3b166..ba6d4c66cb55 100644 --- a/.pnp.loader.mjs +++ b/.pnp.loader.mjs @@ -2011,10 +2011,18 @@ async function resolve$1(originalSpecifier, context, nextResolve) { } } } - const result = pnpapi.resolveRequest(specifier, issuer, { - conditions...
2
2
2
[{"id": "G0", "claim": "A test should be added to packages/acceptance-tests/pkg-tests-specs/sources/pnp-esm.test.ts covering the new error-code remapping.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The catch block must re-throw the error regardless ...
null
yarnpkg__berry__5508
yarnpkg/berry
5,508
defect
e10cb751a6956e3041e24b8a96579e3ff39801bd
3765bb7a471167cda14c308548394586491d6183
Adds support for running native binaries without JS intermediaries
**What's the problem this PR addresses?** Yarn currently cannot run native binaries without going through a JS jumper script. Other package managers don't have this restriction, and it makes the `yarn run` overhead worse on some scripts for little reasons - or doesn't work at all when packages don't use jumper scrip...
diff --git a/.yarn/versions/92ff1c9e.yml b/.yarn/versions/92ff1c9e.yml new file mode 100644 index 000000000000..8372b465ece6 --- /dev/null +++ b/.yarn/versions/92ff1c9e.yml @@ -0,0 +1,34 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/core": patch + "@yarnpkg/plugin-pnp": patch + +declined: + - "@yarnpkg/plugin-c...
3
2
1
[{"id": "G0", "claim": "Add a comment explaining the `.bin` entry in FORCED_EXTRACT_FILETYPES in jsInstallUtils.ts.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The same handling presumably needs to be applied at the other binary-exposition site...
null
yarnpkg__berry__5534
yarnpkg/berry
5,534
defect
dbfb5007fae4aa639fa969536a9158d391b347c7
932390b9a05e4d19814272e09722b5bb38e80422
Fixes registry used to check for deprecation settings
**What's the problem this PR addresses?** The new `yarn npm audit` implementation checks the packages' metadata on the audit server rather than the server configured to serve their metadata. Closes #5533 **How did you fix it?** Updated the code to use the new `getPackageMetadata` function, which should use...
diff --git a/.yarn/versions/3da18857.yml b/.yarn/versions/3da18857.yml new file mode 100644 index 000000000000..31f0d02b09d1 --- /dev/null +++ b/.yarn/versions/3da18857.yml @@ -0,0 +1,23 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/plugin-npm-cli": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/...
3
2
2
[{"id": "G0", "claim": "The pull request needs a test covering the deprecation behaviour it changes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "getPackageMetadata, which this change makes the audit command use for deprecations, does not include the ...
null
yarnpkg__berry__5631
yarnpkg/berry
5,631
defect
8d70543e4ec7bb67d94ccaf9fa931c40a1acaeda
058f8dd9ad668c078c90bcfe89333d4a4bf87da4
fix: support fragment in tar regex
**What's the problem this PR addresses?** fixes #5434 ... **How did you fix it?** Add support for tar resolver URLs with fragments ... **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you su...
diff --git a/.yarn/versions/3717145c.yml b/.yarn/versions/3717145c.yml new file mode 100644 index 000000000000..96b1f521fe0a --- /dev/null +++ b/.yarn/versions/3717145c.yml @@ -0,0 +1,5 @@ +releases: + "@yarnpkg/plugin-http": patch + +declined: + - "@yarnpkg/cli" diff --git a/packages/plugin-http/sources/constants.ts...
1
1
1
[{"id": "G0", "claim": "Please add a test to packages/acceptance-tests/pkg-tests-specs/sources/protocols/npm.test.js so the fragment-in-tarball-url case does not regress again.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yarnpkg__berry__5931
yarnpkg/berry
5,931
defect
0ee621357efda7a6ce292f35a3755537f191de5f
a2d2a929bf4b126341d3158fd237d29bfbcf3eac
Adds extensionless url support
**What's the problem this PR addresses?** The v2 never supported referencing packages exposed as extensionless tgz tarballs, despite other clients being fine with them. Us being stricter here doesn't provide any value, and just hurts compatibility. Fixes #5929 **How did you fix it?** Adds support for extens...
diff --git a/.yarn/versions/70b508e3.yml b/.yarn/versions/70b508e3.yml new file mode 100644 index 000000000000..c36e978ccb8a --- /dev/null +++ b/.yarn/versions/70b508e3.yml @@ -0,0 +1,24 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/plugin-http": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plu...
2
1
0
[{"id": "G0", "claim": "The TARBALL_REGEXP suggestion block should be applied and, since nicolo-ribaudo doesn't see where it is still used, the constant looks like leftover code.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The version file should...
null
yarnpkg__berry__5997
yarnpkg/berry
5,997
defect
db6210f48355d2986e965f90009b22f18d3b6342
d20823c7d3ae8172f152ac49bbe4b4eb3557874d
fix(core): determine if a module is a builtin using `module.isBuiltin`
**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> `builder plugin` may output `node:process` instead of `process` in the generated file. When executing `yarn.`, it will report an error like: ``` This plugin cannot access the package referenced via node:process which is neither a...
diff --git a/.yarn/versions/44a33643.yml b/.yarn/versions/44a33643.yml new file mode 100644 index 000000000000..d305afe9eb67 --- /dev/null +++ b/.yarn/versions/44a33643.yml @@ -0,0 +1,34 @@ +releases: + "@yarnpkg/core": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plugin-constraints" + - "@yarnpkg/...
1
1
0
[{"id": "G0", "claim": "The implementation should be changed to use Node.js's module.isBuiltin instead of enumerating builtinModules, and a test should be added to plugins.test.ts.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yarnpkg__berry__6066
yarnpkg/berry
6,066
defect
c68c716f75ab1617ed000b5608e925c8c85e32aa
ceed12d9b7e75102fb5884641dbaa055ccc6c064
Fix #5165 - missing executable perms when installing with pnpm linker
**What's the problem this PR addresses?** This is the fix for missing executable perms when installing dependencies like turbo and esbuild with pnpm linker (https://github.com/yarnpkg/berry/issues/5165, https://github.com/yarnpkg/berry/issues/5991) Resolves #5165 <!-- Describe the rationale of your PR. --> <!...
diff --git a/.yarn/versions/a5c55beb.yml b/.yarn/versions/a5c55beb.yml new file mode 100644 index 000000000000..3acb209179b9 --- /dev/null +++ b/.yarn/versions/a5c55beb.yml @@ -0,0 +1,37 @@ +releases: + "@yarnpkg/builder": patch + "@yarnpkg/cli": patch + "@yarnpkg/core": patch + "@yarnpkg/doctor": patch + "@yarnpk...
1
1
1
[{"id": "G0", "claim": "Chmodding the shared content-addressable index file when the source mode is not 0o644 risks corrupting the index if two packages contain the same file with different modes; the mode should be part of the index file name whenever it is not 644.", "category": "correctness", "verdict": "supported",...
null
yarnpkg__berry__6416
yarnpkg/berry
6,416
defect
9daddcfede17406c816fd842235f3cf84cebd15f
53302c3f60e82f678d011015684fd8f9ddb3b746
feat(nm): Add support for user-defined <workspace>/node_modules symlinks
## What's the problem this PR addresses? <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> Fixes: #6415 ## How did you fix it? <!-- A detailed description of your implementation. --> Now the `node-modules` linker do not try to delete or recrea...
diff --git a/.yarn/versions/b764a694.yml b/.yarn/versions/b764a694.yml new file mode 100644 index 000000000000..bd3ff1a3f753 --- /dev/null +++ b/.yarn/versions/b764a694.yml @@ -0,0 +1,23 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/plugin-nm": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plugi...
2
1
0
[{"id": "G0", "claim": "The two mkdir calls in the new test (mkdirPromise on trueInstallDir and mkdirpPromise on <root>/target) are redundant with each other.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test should be checked for whet...
null
yarnpkg__berry__6430
yarnpkg/berry
6,430
defect
2a4786715871e2febd03113249318637650aa5ab
c4bf2eaf1231699d3f14a5df79e197d00baebd8b
feat(shell): add unset command
## What's the problem this PR addresses? <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> Fixes #4447. ## How did you fix it? <!-- A detailed description of your implementation. --> I fixed it by adding an `unset` built-in. ## Checklist ...
diff --git a/.yarn/versions/2f8bb76f.yml b/.yarn/versions/2f8bb76f.yml new file mode 100644 index 000000000000..a8ed3ee7f3b6 --- /dev/null +++ b/.yarn/versions/2f8bb76f.yml @@ -0,0 +1,35 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/core": patch + "@yarnpkg/shell": patch + +declined: + - "@yarnpkg/plugin-compat...
3
3
1
[{"id": "G0", "claim": "The unset builtin's error handling and single-name behaviour deviate from the bash built-in `unset`: it must accept more than one name at a time, not providing a name must be allowed (exit 0), and unsetting a name that is not bound should not throw, so the implementation should be adjusted to ma...
null
yarnpkg__berry__6459
yarnpkg/berry
6,459
defect
7fab4f101d1b8a98691efe14696d18ce00ecd234
a430296ff1c9c794586fed24393c261200e019a5
Avoid crash in simplifyRanges by removing subsets up front
## What's the problem this PR addresses? Resolves #6373. The problem is that `simplifyRanges` doesn't correctly reduce redundant OR ranges. For example, `~1.0.1 || ~1.0.2` should be simplified to `~1.0.1`. As the algorithm runs, it will effectively calculate every _combination_ of terms in such ranges. For examp...
diff --git a/.yarn/versions/c255c43f.yml b/.yarn/versions/c255c43f.yml new file mode 100644 index 000000000000..2d6a48f178d8 --- /dev/null +++ b/.yarn/versions/c255c43f.yml @@ -0,0 +1,34 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/core": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plugin-con...
2
1
1
[{"id": "G0", "claim": "Use a filter on the already-parsed range's set instead of the hardcoded `||` split followed by `semver.subset` calls, to avoid parsing the ranges twice.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case that woul...
null
yarnpkg__berry__6752
yarnpkg/berry
6,752
defect
e06bacdb8091b7a25fdb7911c3466184b94fa040
f9ddf03f5e5a9040b3cf847861768ad38b404593
Adds support for the `jsr:` protocol
## What's the problem this PR addresses? I noticed https://github.com/pnpm/pnpm/pull/9358 and figured it'd make sense to support this in Yarn as well. ## How did you fix it? Yarn will natively understand the `jsr` protocol and automatically reroute the dependency to its `@jsr`-prefixed variant. Still need t...
diff --git a/.pnp.cjs b/.pnp.cjs index c6ba5b389981..78f352c8b08e 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -82,6 +82,10 @@ const RAW_RUNTIME_STATE = "name": "@yarnpkg/plugin-interactive-tools",\ "reference": "workspace:packages/plugin-interactive-tools"\ },\ + {\ + "name": "@yarnpkg/plugin-jsr...
3
1
1
[{"id": "G0", "claim": "The new jsr.mdx front-matter should say title \"JSR Protocol\" and \"How JSR dependencies work in Yarn.\" instead of the copied Npm Protocol wording.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Maybe the descriptor synta...
null
yarnpkg__berry__6781
yarnpkg/berry
6,781
defect
666aa3ac20de796e0159f9d4aa029715ccf5ec55
a138eff59994c2b68025e0f48c3909d963a1f5a8
fix(core): fix the value check for `publishConfig.provenance`
## What's the problem this PR addresses? This PR resolves an issue where the `publishConfig.provenance` field in `package.json` wasn't being read correctly. Specifically: - When `publishConfig.provenance: true` was set in `package.json`, Yarn's `npm publish` command wouldn't generate provenance statements - Whi...
diff --git a/.yarn/versions/2369a91f.yml b/.yarn/versions/2369a91f.yml new file mode 100644 index 000000000000..31f0d02b09d1 --- /dev/null +++ b/.yarn/versions/2369a91f.yml @@ -0,0 +1,23 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/plugin-npm-cli": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/...
1
1
1
[{"id": "G0", "claim": "The `workspace.manifest.publishConfig?.provenance` truthiness check in publish.ts is wrong and causes `{ \"publishConfig\": { \"provenance\": false } }` to be ignored — since a JSON-parsed manifest cannot have the key present with value `undefined`, `in` was correct, and the fact that `publishCo...
null
yarnpkg__berry__6988
yarnpkg/berry
6,988
defect
1d0e2e5176e91cc4f0309ffc3abb472ae64cc356
cf7fc6a8c6eb94eeaee568de5b30561164489d49
fix(fslib): handle float timestamps in convertToBigIntStats
## Summary Fixes RangeError when converting floating-point timestamps to BigInt in the `convertToBigIntStats` function. ## Problem The `convertToBigIntStats()` function fails when file stats contain non-integer timestamps (e.g., `1763746784088.47`), throwing: ``` RangeError: The number 1763746784088.47 cannot be...
diff --git a/.yarn/versions/78344001.yml b/.yarn/versions/78344001.yml new file mode 100644 index 000000000000..8b7012e60e18 --- /dev/null +++ b/.yarn/versions/78344001.yml @@ -0,0 +1,2 @@ +releases: + "@yarnpkg/fslib": patch diff --git a/packages/yarnpkg-fslib/sources/statUtils.ts b/packages/yarnpkg-fslib/sources/sta...
1
1
1
[{"id": "G0", "claim": "The nanosecond fields must also keep the fractional millisecond remainder, as otherwise millisecond precision is lost, e.g. `bigintStats.atimeNs = bigintStats.atimeMs * BigInt(1e6) + BigInt(Math.floor((stats.atimeMs % 1) * 1e3)) * BigInt(1e3)` for atime/mtime/ctime/birthtime.", "category": "corr...
null
yarnpkg__berry__7020
yarnpkg/berry
7,020
defect
571363e6d64044b85a1f8885491c7f3b84c09f4b
68017b018d57d1eb0e5fe803d589941059c5126f
feat: display registry URL when publishing packages
## What's the problem this PR addresses? <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> When using `yarn npm publish` with private registries, users have no way to verify which registry URL Yarn is targeting. When authentication fails with error `YN0...
diff --git a/.yarn/versions/1cdc2320.yml b/.yarn/versions/1cdc2320.yml new file mode 100644 index 000000000000..31f0d02b09d1 --- /dev/null +++ b/.yarn/versions/1cdc2320.yml @@ -0,0 +1,23 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/plugin-npm-cli": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/...
1
1
0
[{"id": "G0", "claim": "Since the registry is now reported unconditionally, the dry-run message below should not repeat it, and the tag should be reported in the initial message so the dry-run message can become \"Package archive not published (dry run)\".", "category": "design", "verdict": "supported", "priority": "P2...
null
yarnpkg__yarn__1444
yarnpkg/yarn
1,444
defect
6f62e7a5630c0667030bfc83e2c22f22b30429c5
7e5c5208b56ee589b8e43a3414f607003136f2ee
Feature: Interactive update
This is similar to `npm-check` interactive update mode. It provides an easy way to update outdated packages. ``` $ yarn upgrade-interactive ``` > Currently, there is no test with this PR. But, If someone can guide me with some scenarios, I will write them, Thanks. <img width="906" alt="screenshot 2016-10-25 ...
diff --git a/package.json b/package.json index b275b4ec0c..1196a91181 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "diff": "^2.2.1", "eslint-plugin-react": "5.2.2", "ini": "^1.3.4", + "inquirer": "^1.2.2", "invariant": "^2.2.0", "is-builtin-module": "^1.0.0", "leven": ...
6
1
0
[{"id": "G0", "claim": "Pulling rx into Yarn is a concern because it is very large; the reviewer asks how much it increases the installed size of Yarn (measurable via the build-dist scripts).", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The alias ...
null
yarnpkg__yarn__1666
yarnpkg/yarn
1,666
defect
96fbeea6afb144652a5a05c0ee8571057d78c4b6
35924ad2e982f6ef62591ee5ee3f65223e44f517
Fix request authentication for scoped private registry tarballs
**Summary** Yarn correctly sends authorization headers when resolving metadata, but when it's time to download the tarballs, it calls registry.request with a full tarball url. This causes the getRegistry() function to incorrectly return the DEFAULT_REGISTRY url which means the authorization headers are no longer...
diff --git a/src/registries/npm-registry.js b/src/registries/npm-registry.js index 6d5dcdfcb2..ed8495aa4f 100644 --- a/src/registries/npm-registry.js +++ b/src/registries/npm-registry.js @@ -139,7 +139,12 @@ export default class NpmRegistry extends Registry { } getRegistry(packageName: string): string { - //...
14
4
1
[{"id": "G0", "claim": "getRegistry() derives the registry from a tarball URL's protocol and host only, but a registry may also include a path (e.g. Nexus or Artifactory), so the extracted registry can be wrong for such registries.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
yarnpkg__yarn__1837
yarnpkg/yarn
1,837
defect
8ead0c7fe8cdd478493aab66b0c1ff4180ac924a
0a1bcb7abae7ad6c896953888a1edcfd8b942ea8
Set UID and GID of untared files to zero if user is root
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. --> **Summary** <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> Fixes #1750 `TarballFe...
diff --git a/__tests__/constants.js b/__tests__/constants.js index 1a36165f22..f16e198eef 100644 --- a/__tests__/constants.js +++ b/__tests__/constants.js @@ -1,6 +1,6 @@ /* @flow */ -import {getPathKey} from '../src/constants.js'; +import {getPathKey, isRootUser} from '../src/constants.js'; test('getPathKey', ()...
1
1
0
[{"id": "G0", "claim": "The second `platform !== 'win32'` check in `isRootUser` appears unnecessary, since a null uid would already make it return false.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yarnpkg__yarn__1997
yarnpkg/yarn
1,997
defect
45a32e0bfe6596437a485fe65edbd6beeb0f1310
6a713fe7f7729a93598f9253f5dfaa24f8a3ba2c
Properly skip installation of packages that do not need to be installed (incompatible optionalDependencies for example)
**Summary** This is a different approach to #1438 It should make sure that packages incompatible with the current environment are not installed. See #1954 for further motivation With this change, any `optionalDependencies` that is incompatible with the environment will be skipped entirely in the install. In...
diff --git a/src/cli/commands/check.js b/src/cli/commands/check.js index f547938f90..42c1e712bd 100644 --- a/src/cli/commands/check.js +++ b/src/cli/commands/check.js @@ -40,7 +40,7 @@ export async function run( } // get patterns that are installed when running `yarn install` - const [, rawPatterns] = await in...
2
1
1
[{"id": "G0", "claim": "Calling install.hydrate(true) in yarn check makes the check fetch packages, which may not work offline and may make the check slower, and the reviewer asks why a check operation needs fetch at all.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"i...
null
yarnpkg__yarn__2024
yarnpkg/yarn
2,024
defect
099e76dc075763427605a6a63906127402370bb2
7631d1a7f4479de3d73aa454f39488dbb752f3e4
Fix yarn check --integrity behavior not aligning with yarn install's integrity checking
**Summary** There's a mismatch between what `yarn install` does for integrity checking and what `yarn check` does. `yarn check` [flattens the patterns](https://github.com/yarnpkg/yarn/blob/099e76dc075763427605a6a63906127402370bb2/src/cli/commands/install.js#L342), while `yarn check` doesn't, as it just uses Install....
diff --git a/__tests__/commands/_helpers.js b/__tests__/commands/_helpers.js index 44b72a550a..63e54d94fb 100644 --- a/__tests__/commands/_helpers.js +++ b/__tests__/commands/_helpers.js @@ -23,7 +23,7 @@ export const runInstall = run.bind( async (args, flags, config, reporter, lockfile): Promise<Install> => { ...
3
3
2
[{"id": "G0", "claim": "A test case should be added so that the yarn check --integrity behavior does not break in the future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test should run an explicit check with the integrity flag instead of relying...
null
yarnpkg__yarn__2128
yarnpkg/yarn
2,128
defect
1ea09c2969994648fcb7c4f3eb3e3753d132e440
c95dfd212e2cbef97d480010e0b56cd40fb03178
Add version lifecycle step to the version cli command
**Summary** Like npm having the option to perform commands during version publishing is important. This new lifecycle step `version` should add npm compatibility to the version cli command. **Test plan** I cannot find any tests to the version command. Is this a pr that should be tested? Can you give me some g...
diff --git a/src/cli/commands/version.js b/src/cli/commands/version.js index 6eb834d797..220740a955 100644 --- a/src/cli/commands/version.js +++ b/src/cli/commands/version.js @@ -124,6 +124,8 @@ export async function setVersion( // add manifest await spawn('git', ['add', pkgLoc]); + await config.ex...
2
2
2
[{"id": "G0", "claim": "The 'version' lifecycle script would only execute when the package is inside a Git repository, since the call was added inside the `if (isGit) {` condition, and it should also execute outside a Git repo.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null