Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ updates:
directory: /
schedule:
interval: monthly
cooldown:
default-days: 5
groups:
github-actions:
patterns:
Expand All @@ -14,6 +16,8 @@ updates:
versioning-strategy: widen
schedule:
interval: weekly
cooldown:
default-days: 5
groups:
dependencies:
dependency-type: "production"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
node-version: [22.x]
node-version: [24.x]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
steps:
Expand All @@ -30,6 +30,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
run: npm install --ignore-scripts
- name: Run tests
run: npm run test
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
package-lock=false
ignore-scripts=true
save-exact=true
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "tsc",
"prepublishOnly": "npm run build && pkg-ok",
"test": "tsx --test test/**/*.test.ts",
"test": "node --test test/**/*.test.ts",
"coverage": "c8 -r html npm test",
"lint": "eslint src test"
},
Expand Down Expand Up @@ -39,16 +39,15 @@
},
"homepage": "https://github.com/TopCli/stdin#readme",
"dependencies": {
"fastest-levenshtein": "^1.0.16"
"fastest-levenshtein": "1.0.16"
},
"devDependencies": {
"@openally/config.eslint": "^2.1.0",
"@openally/config.typescript": "^1.0.3",
"@openally/config.eslint": "^2.2.0",
"@openally/config.typescript": "^1.2.1",
"@types/node": "^25.0.2",
"c8": "^10.1.3",
"pkg-ok": "^3.0.0",
"tsx": "^4.19.4",
"typescript": "^5.8.3"
"typescript": "^5.9.3"
},
"engines": {
"node": ">=22"
Expand Down
2 changes: 1 addition & 1 deletion src/class/Completion.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { stripVTControlCharacters } from "node:util";
import {
localMatchOf,
stringLength
} from "../utils/index.js";
} from "../utils/index.ts";

export interface FindHintOptions {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/class/InputBuffer.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import * as TTY from "node:tty";

// Import Internal Dependencies
import { Cursor } from "./Cursor.class.js";
import { stringLength } from "../utils/index.js";
import { Cursor } from "./Cursor.class.ts";
import { stringLength } from "../utils/index.ts";

export interface ReplaceOptions {
clearOutput?: boolean;
Expand Down
6 changes: 3 additions & 3 deletions src/class/KeyListener.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import * as TTY from "node:tty";

// Import Internal Dependencies
import { History } from "./History.class.js";
import { Completion } from "./Completion.class.js";
import { InputBuffer } from "./InputBuffer.class.js";
import { History } from "./History.class.ts";
import { Completion } from "./Completion.class.ts";
import { InputBuffer } from "./InputBuffer.class.ts";

type Key = {
sequence?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { emitKeypressEvents } from "node:readline";
import {
KeyListener,
type KeyListenerOptions
} from "./class/KeyListener.class.js";
} from "./class/KeyListener.class.ts";

export type StdinOptions = KeyListenerOptions;

Expand Down
4 changes: 2 additions & 2 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./localMatchOf.js";
export * from "./stringLength.js";
export * from "./localMatchOf.ts";
export * from "./stringLength.ts";
2 changes: 1 addition & 1 deletion test/KeyListener.class.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import assert from "node:assert";
import * as TTY from "node:tty";

// Import Internal Dependencies
import { KeyListener } from "../src/class/KeyListener.class.js";
import { KeyListener } from "../src/class/KeyListener.class.ts";

type MockTTYWriteStream = {
write: ReturnType<typeof mock.fn>;
Expand Down
2 changes: 1 addition & 1 deletion test/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import assert from "node:assert";
import {
localMatchOf,
stringLength
} from "../src/utils/index.js";
} from "../src/utils/index.ts";

describe("localMatchOf", () => {
const arr = ["hello world", "hello everyone", "foo bar", "baz qux", "hello", "foobar"];
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@openally/config.typescript",
"extends": "@openally/config.typescript/esm-ts-next",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src",
Expand Down