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
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x]
node-version: [24.x]
fail-fast: false
steps:
- name: Harden Runner
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.29.4",
"@openally/config.eslint": "^2.1.0",
"@openally/config.typescript": "^1.1.0",
"@openally/config.typescript": "1.2.1",
"@slimio/is": "^2.0.0",
"@types/node": "^24.0.2",
"@types/pacote": "^11.1.8",
"@types/semver": "^7.5.8",
"c8": "^10.1.2",
"pkg-ok": "^3.0.0",
"tsd": "^0.33.0",
"tsx": "^4.16.2",
"typescript": "^5.5.3"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.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": {
"composite": true
}
Expand Down
2 changes: 1 addition & 1 deletion workspaces/conformance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- Verifies SPDX license expression conformance and provides meta information about license expressions.

## Requirements
- [Node.js](https://nodejs.org/en/) v20 or higher
- [Node.js](https://nodejs.org/en/) v24 or higher

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion workspaces/conformance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "tsc -b",
"prepublishOnly": "npm run build",
"test-only": "tsx --test ./test/**/*.spec.ts",
"test-only": "node --test ./test/**/*.spec.ts",
"test-types": "attw --pack . --profile esm-only",
"test": "c8 -r html npm run test-only && npm run test-types",
"spdx:refresh": "node ./scripts/fetchSpdxLicenses.js"
Expand Down
2 changes: 1 addition & 1 deletion workspaces/conformance/src/class/LicenseResult.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
licenseIdConformance,
searchSpdxLicenseId,
type SpdxLicenseConformance
} from "../parse.js";
} from "../parse.ts";

export interface SpdxFileLicenseConformance extends SpdxLicenseConformance {
fileName: string;
Expand Down
4 changes: 2 additions & 2 deletions workspaces/conformance/src/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import {
} from "@nodesecure/mama";

// Import Internal Dependencies
import * as utils from "./utils/index.js";
import * as utils from "./utils/index.ts";
import {
LicenseResult,
type SpdxUnidentifiedLicense,
type SpdxFileLicenseConformance,
type SpdxExtractedResult
} from "./class/LicenseResult.class.js";
} from "./class/LicenseResult.class.ts";

// CONSTANTS
const kManifestFileName = "package.json";
Expand Down
4 changes: 2 additions & 2 deletions workspaces/conformance/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./extract.js";
export * from "./parse.js";
export * from "./extract.ts";
export * from "./parse.ts";
2 changes: 1 addition & 1 deletion workspaces/conformance/src/licenses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as levenshtein from "fastest-levenshtein";

// Import Internal Dependencies
import { spdx } from "./data/spdx.js";
import { spdx } from "./data/spdx.ts";

export interface SpdxConformance {
name: string;
Expand Down
4 changes: 2 additions & 2 deletions workspaces/conformance/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
licenseNameToId,
closestSpdxLicenseID,
checkSpdx
} from "./licenses.js";
import * as utils from "./utils/index.js";
} from "./licenses.ts";
import * as utils from "./utils/index.ts";

export interface SpdxLicenseConformance {
licenses: Record<string, string>;
Expand Down
4 changes: 2 additions & 2 deletions workspaces/conformance/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./extractDirentLicenses.js";
export * from "./spdx.js";
export * from "./extractDirentLicenses.ts";
export * from "./spdx.ts";
2 changes: 1 addition & 1 deletion workspaces/conformance/test/class/LicenseResult.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import assert from "node:assert";
import {
LicenseResult,
type SpdxExtractedResult
} from "../../src/class/LicenseResult.class.js";
} from "../../src/class/LicenseResult.class.ts";

const kMITSpdxConformance: SpdxExtractedResult = {
uniqueLicenseIds: ["MIT"],
Expand Down
4 changes: 2 additions & 2 deletions workspaces/conformance/test/extract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { ManifestManager } from "@nodesecure/mama";
import {
extractLicenses,
extractLicensesSync
} from "../src/index.js";
import expectedParsedLicense from "./fixtures/parseLicense.snap.js";
} from "../src/index.ts";
import expectedParsedLicense from "./fixtures/parseLicense.snap.ts";

// CONSTANTS
const __dirname = path.dirname(fileURLToPath(import.meta.url));
Expand Down
5 changes: 4 additions & 1 deletion workspaces/conformance/test/licenses.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { describe, test } from "node:test";
import assert from "node:assert";

// Import Internal Dependencies
import { closestSpdxLicenseID, checkSpdx } from "../src/licenses.js";
import {
closestSpdxLicenseID,
checkSpdx
} from "../src/licenses.ts";

describe("closestSpdxLicenseID", () => {
test("it should return the given LicenseID if no record match", () => {
Expand Down
5 changes: 4 additions & 1 deletion workspaces/conformance/test/parse.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { describe, test } from "node:test";
import assert from "node:assert";

// Import Internal Dependencies
import { licenseIdConformance, searchSpdxLicenseId } from "../src/index.js";
import {
licenseIdConformance,
searchSpdxLicenseId
} from "../src/index.ts";

describe("searchSpdxLicenseId", () => {
test("search for Apache 2.0 license", () => {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/conformance/test/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Dirent } from "node:fs";
import assert from "node:assert";

// Import Internal Dependencies
import * as utils from "../src/utils/index.js";
import * as utils from "../src/utils/index.ts";

describe("checkEveryTruthy", () => {
test("check a single true is true", () => {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/contact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</p>

## Requirements
- [Node.js](https://nodejs.org/en/) v20 or higher
- [Node.js](https://nodejs.org/en/) v24 or higher

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion workspaces/contact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "tsc -b",
"prepublishOnly": "npm run build",
"test-only": "tsx --test ./test/**/*.spec.ts",
"test-only": "node --test ./test/**/*.spec.ts",
"test-types": "npm run build && tsd && attw --pack . --profile esm-only",
"test": "c8 -r html npm run test-only && npm run test-types"
},
Expand Down
4 changes: 2 additions & 2 deletions workspaces/contact/src/ContactExtractor.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
UnlitContact,
type EnforcedContact,
type IlluminatedContact
} from "./UnlitContact.class.js";
import { NsResolver } from "./NsResolver.class.js";
} from "./UnlitContact.class.ts";
import { NsResolver } from "./NsResolver.class.ts";

export type {
IlluminatedContact,
Expand Down
2 changes: 1 addition & 1 deletion workspaces/contact/src/UnlitContact.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Contact } from "@nodesecure/npm-types";
import type { RequireAtLeastOne } from "type-fest";

// Import Internal Dependencies
import * as utils from "./utils/index.js";
import * as utils from "./utils/index.ts";

export type EnforcedContact = RequireAtLeastOne<
Contact,
Expand Down
4 changes: 2 additions & 2 deletions workspaces/contact/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./ContactExtractor.class.js";
export * from "./ContactExtractor.class.ts";
export {
compareContact
} from "./utils/index.js";
} from "./utils/index.ts";
4 changes: 2 additions & 2 deletions workspaces/contact/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./compareContact.js";
export * from "./parseRegexp.js";
export * from "./compareContact.ts";
export * from "./parseRegexp.ts";
2 changes: 1 addition & 1 deletion workspaces/contact/test/ContactExtractor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { faker } from "@faker-js/faker";
import {
ContactExtractor,
type ContactExtractorPackageMetadata
} from "../src/index.js";
} from "../src/index.ts";

// CONSTANTS
const __dirname = dirname(fileURLToPath(import.meta.url));
Expand Down
2 changes: 1 addition & 1 deletion workspaces/contact/test/types/ContactExtractor.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
// Import Internal Dependencies
import {
ContactExtractor
} from "../../dist/index.js";
} from "../../dist/index.ts";

expectType<ContactExtractor>(new ContactExtractor({
highlight: [
Expand Down
2 changes: 1 addition & 1 deletion workspaces/contact/test/utils/compareContact.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { describe, test } from "node:test";
import type { Contact } from "@nodesecure/npm-types";

// Import Internal Dependencies
import { compareContact } from "../../src/utils/index.js";
import { compareContact } from "../../src/utils/index.ts";

describe("compareContact", () => {
test("Given Contacts with the same name, it must return true", () => {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/contact/test/utils/parseRegexp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import assert from "node:assert";
import { describe, test } from "node:test";

// Import Internal Dependencies
import { parseRegExp } from "../../src/utils/index.js";
import { parseRegExp } from "../../src/utils/index.ts";

describe("parseRegExp", () => {
test("Given a literal with no slash then it must return null", () => {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/flags/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Requirements

- [Node.js](https://nodejs.org/en/) v20 or higher
- [Node.js](https://nodejs.org/en/) v24 or higher

## Getting Started

Expand Down
4 changes: 2 additions & 2 deletions workspaces/flags/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"scripts": {
"build": "tsc -b & cp -R ./src/flags ./dist/flags",
"prepublishOnly": "npm run build",
"test-only": "tsx --test \"./test/**/*.spec.ts\"",
"test-only": "node --test ./test/**/*.spec.ts",
"test-types": "attw --pack . --profile esm-only",
"test": "c8 -r html npm run test-only && npm run test-types",
"generateFlags": "tsx scripts/generateFlags.js"
"generateFlags": "node scripts/generateFlags.ts"
},
"keywords": [
"nodesecure",
Expand Down
4 changes: 2 additions & 2 deletions workspaces/flags/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./node.js";
export * from "./web.js";
export * from "./node.ts";
export * from "./web.ts";
2 changes: 1 addition & 1 deletion workspaces/flags/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { fileURLToPath } from "node:url";
import { Readable } from "node:stream";

// Import Internal Dependencies
import { getFlags } from "./web.js";
import { getFlags } from "./web.ts";

// CONSTANTS
const __dirname = path.dirname(fileURLToPath(import.meta.url));
Expand Down
2 changes: 1 addition & 1 deletion workspaces/flags/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
FLAGS,
type Flag,
type FlagDescriptor
} from "./manifest.js";
} from "./manifest.ts";

// CONSTANTS
const kNotFoundFlags = "🔴";
Expand Down
2 changes: 1 addition & 1 deletion workspaces/flags/test/fetchFlagFile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, it } from "node:test";
import assert from "node:assert";

// Import Internal Dependencies
import { getFlags, lazyFetchFlagFile } from "../src/index.js";
import { getFlags, lazyFetchFlagFile } from "../src/index.ts";

describe("lazyFetchFlagFile()", () => {
it("should throw an Error if no flag name is provided", () => {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/flags/test/getFlags.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, it } from "node:test";
import assert from "node:assert";

// Import Internal Dependencies
import { getFlags, getManifest } from "../src/index.js";
import { getFlags, getManifest } from "../src/index.ts";

describe("getFlags()", () => {
it("should return a Set with multiple flags", () => {
Expand Down
7 changes: 6 additions & 1 deletion workspaces/flags/test/getManifest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import { describe, it } from "node:test";
import assert from "node:assert";

// Import Internal Dependencies
import { getManifest, getEmojiFromTitle, getManifestEmoji, FlagDescriptor } from "../src/index.js";
import {
getManifest,
getEmojiFromTitle,
getManifestEmoji,
type FlagDescriptor
} from "../src/index.ts";

describe("getManifest()", () => {
it("should return a Record<string, flagObject>", () => {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/fs-walk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

## Requirements

- [Node.js](https://nodejs.org/en/) v20 or higher
- [Node.js](https://nodejs.org/en/) v24 or higher

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion workspaces/fs-walk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "tsc -b",
"prepublishOnly": "npm run build",
"test-only": "tsx --test \"./test/**/*.spec.ts\"",
"test-only": "node --test ./test/**/*.spec.ts",
"test-types": "attw --pack . --profile esm-only",
"test": "c8 -r html npm run test-only && npm run test-types"
},
Expand Down
6 changes: 3 additions & 3 deletions workspaces/fs-walk/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./walk.js";
export * from "./walkSync.js";
export * from "./types.js";
export * from "./walk.ts";
export * from "./walkSync.ts";
export * from "./types.ts";
4 changes: 2 additions & 2 deletions workspaces/fs-walk/src/walk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as fs from "node:fs/promises";
import * as path from "node:path";

// Import Internal Dependencies
import { EXCLUDED_DIRECTORY } from "./constants.js";
import type { WalkOptions, WalkEntry } from "./types.js";
import { EXCLUDED_DIRECTORY } from "./constants.ts";
import type { WalkOptions, WalkEntry } from "./types.ts";

/**
* @example
Expand Down
4 changes: 2 additions & 2 deletions workspaces/fs-walk/src/walkSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as fs from "node:fs";
import * as path from "node:path";

// Import Internal Dependencies
import { EXCLUDED_DIRECTORY } from "./constants.js";
import type { WalkOptions, WalkEntry } from "./types.js";
import { EXCLUDED_DIRECTORY } from "./constants.ts";
import type { WalkOptions, WalkEntry } from "./types.ts";

/**
* @example
Expand Down
2 changes: 1 addition & 1 deletion workspaces/fs-walk/test/walk.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from "node:path";
import { fileURLToPath } from "node:url";

// Import Internal Dependencies
import { walk, walkSync } from "../src/index.js";
import { walk, walkSync } from "../src/index.ts";

// CONSTANTS
const __dirname = path.dirname(fileURLToPath(import.meta.url));
Expand Down
2 changes: 1 addition & 1 deletion workspaces/github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Requirements

- [Node.js](https://nodejs.org/en/) v20 or higher
- [Node.js](https://nodejs.org/en/) v24 or higher

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion workspaces/github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "tsc -b",
"prepublishOnly": "npm run build",
"test-only": "tsx --test \"./test/**/*.spec.ts\"",
"test-only": "node --test ./test/**/*.spec.ts",
"test-types": "attw --pack . --profile esm-only",
"test": "c8 -r html npm run test-only && npm run test-types"
},
Expand Down
Loading