@oh-my-pi/hashline 18.0.11 → 18.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/hashline",
4
- "version": "18.0.11",
4
+ "version": "18.1.1",
5
5
  "description": "Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Stencil Labs, Inc.",
@@ -25,16 +25,16 @@
25
25
  "main": "./src/index.ts",
26
26
  "types": "./dist/types/index.d.ts",
27
27
  "scripts": {
28
- "check": "biome check . && bun run check:types",
28
+ "check": "oxlint . && oxfmt --check --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts' && bun run check:types",
29
29
  "check:types": "tsgo -p tsconfig.json --noEmit",
30
- "lint": "biome lint .",
30
+ "lint": "oxlint .",
31
31
  "test": "bun test --parallel",
32
- "fix": "biome check --write --unsafe .",
33
- "fmt": "biome format --write ."
32
+ "fix": "oxlint --fix --fix-suggestions . && bun run fmt",
33
+ "fmt": "oxfmt --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts'"
34
34
  },
35
35
  "dependencies": {
36
- "@oh-my-pi/pi-natives": "18.0.11",
37
- "@oh-my-pi/pi-utils": "18.0.11"
36
+ "@oh-my-pi/pi-natives": "18.1.1",
37
+ "@oh-my-pi/pi-utils": "18.1.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/bun": "^1.3.14"
package/src/apply.ts CHANGED
@@ -259,7 +259,7 @@ function findReplacementGroup(edits: readonly AppliedEdit[], start: number): Rep
259
259
  */
260
260
  function repairReplacementIndentation(edits: AppliedEdit[], fileLines: readonly string[]): string[] {
261
261
  let repaired = false;
262
- for (let start = 0; start < edits.length; ) {
262
+ for (let start = 0; start < edits.length;) {
263
263
  const group = findReplacementGroup(edits, start);
264
264
  if (group === undefined) {
265
265
  start++;
package/src/recovery.ts CHANGED
@@ -115,7 +115,7 @@ interface AnchorNeighbors {
115
115
  function computeAnchorNeighbors(anchorLines: ReadonlySet<number>, lineCount: number): Map<number, AnchorNeighbors> {
116
116
  const sorted = [...anchorLines].sort((a, b) => a - b);
117
117
  const neighbors = new Map<number, AnchorNeighbors>();
118
- for (let i = 0; i < sorted.length; ) {
118
+ for (let i = 0; i < sorted.length;) {
119
119
  let j = i;
120
120
  while (j + 1 < sorted.length && sorted[j + 1] === sorted[j] + 1) j++;
121
121
  const start = sorted[i];