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
5 changes: 3 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- *Breaking:* removed support for Node 20.
- added support for node 26.
- *Breaking:* Removed support for Node 20.
- Added support for node 26.
- Replaces obsolete glob-slasher dependency with a local path/glob normalization utility.
- Replaces join-path with native utilities.
26 changes: 0 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"connect": "^3.7.0",
"destroy": "^1.0.4",
"is-url": "^1.2.2",
"join-path": "^1.1.1",
"mime-types": "^2.1.35",
"minimatch": "^6.1.6",
"morgan": "^1.8.2",
Expand Down
2 changes: 1 addition & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ cli
.action((folder, options) => {
return new Promise((resolve) => {
const app = server({
cwd: path.join(process.cwd(), folder),
cwd: path.join(process.cwd(), folder ?? ""),
Comment thread
bkendall marked this conversation as resolved.
config: options.config,
port: options.port,
hostname: options.hostname,
Expand Down
3 changes: 1 addition & 2 deletions src/loaders/config-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

const fs = require("fs");

const join = require("join-path");
const path = require("path");
const { isPlainObject } = require("../utils/objectutils");

Expand Down Expand Up @@ -49,7 +48,7 @@ module.exports = function (filename) {

if (Array.isArray(filename)) {
filename = filename.find((name) => {
return fs.existsSync(join(process.cwd(), name));
return fs.existsSync(path.join(process.cwd(), name));
});
}

Expand Down
5 changes: 2 additions & 3 deletions src/providers/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import * as crypto from "node:crypto";
import { stat as fsStat } from "node:fs/promises";
import * as fs from "node:fs";
const pathjoin = require("join-path");
import * as path from "node:path";

async function multiStat(
paths: string[],
Expand Down Expand Up @@ -103,8 +103,7 @@ module.exports = function provider(options: any) {
}

const fullPathnames: string[] = publicPaths.map((p) =>
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
pathjoin(cwd, p, pathname),
path.join(cwd as string, p, pathname),
);

try {
Expand Down
Loading