Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Codex-/cosmiconfig-typescript-loader
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.2.0
Choose a base ref
...
head repository: Codex-/cosmiconfig-typescript-loader
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4.3.0
Choose a head ref
  • 12 commits
  • 4 files changed
  • 2 contributors

Commits on Oct 31, 2022

  1. Copy the full SHA
    e113efb View commit details
  2. Copy the full SHA
    e3859b2 View commit details

Commits on Nov 1, 2022

  1. Copy the full SHA
    c86a13b View commit details
  2. Copy the full SHA
    8a1d29b View commit details
  3. Merge pull request #58 from Codex-/renovate/lock-file-maintenance

    chore(deps): lock file maintenance
    Codex- authored Nov 1, 2022
    Copy the full SHA
    fad9ad8 View commit details

Commits on Nov 7, 2022

  1. Copy the full SHA
    37a3004 View commit details

Commits on Nov 30, 2022

  1. Copy the full SHA
    1dee2ce View commit details

Commits on Dec 1, 2022

  1. Copy the full SHA
    51fbabe View commit details

Commits on Dec 7, 2022

  1. Copy the full SHA
    82da489 View commit details

Commits on Dec 11, 2022

  1. Copy the full SHA
    22791a3 View commit details
  2. Copy the full SHA
    6e18a83 View commit details
  3. Release 4.3.0

    Codex- committed Dec 11, 2022
    Copy the full SHA
    e6133ac View commit details
Showing with 2,045 additions and 1,786 deletions.
  1. +9 −0 CHANGELOG.md
  2. +10 −9 lib/loader.spec.ts
  3. +2,016 −1,767 package-lock.json
  4. +10 −10 package.json
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,8 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [4.3.0](https://github.com/Codex-/cosmiconfig-typescript-loader/compare/4.2.0...4.3.0)

- chore(deps): lock file maintenance [`#58`](https://github.com/Codex-/cosmiconfig-typescript-loader/pull/58)
- chore(deps): bump root dependencies in package. [`6e18a83`](https://github.com/Codex-/cosmiconfig-typescript-loader/commit/6e18a83ab6c3ab02bf86dc1411cf13ee32646680)
- chore(deps): update dependency esbuild to ^0.16.0 [`82da489`](https://github.com/Codex-/cosmiconfig-typescript-loader/commit/82da4890bed9e026132510a0664694cecf91f1a9)
- chore(deps): update vitest monorepo to ^0.25.0 [`37a3004`](https://github.com/Codex-/cosmiconfig-typescript-loader/commit/37a30047620e9fe5826d37ca78e67a958ed8341d)

#### [4.2.0](https://github.com/Codex-/cosmiconfig-typescript-loader/compare/4.1.1...4.2.0)

> 31 October 2022
- test: convert tests to use vitest. [`c70ee5e`](https://github.com/Codex-/cosmiconfig-typescript-loader/commit/c70ee5e72751f911d8c51005ce28f0d6162f1db1)
- chore(deps): lock file maintenance [`ff0bc14`](https://github.com/Codex-/cosmiconfig-typescript-loader/commit/ff0bc144f31d2ccfeed9b4ae1a80fb47df9ece40)
- chore(deps): lock file maintenance [`0249b27`](https://github.com/Codex-/cosmiconfig-typescript-loader/commit/0249b27588642c94064a22a3e401085bda597e9d)
19 changes: 10 additions & 9 deletions lib/loader.spec.ts
Original file line number Diff line number Diff line change
@@ -12,26 +12,27 @@ import {
SpyInstance,
vi,
} from "vitest";
import * as tsnode from "ts-node";

import { TypeScriptLoader } from "./loader";
import { TypeScriptCompileError } from "./typescript-compile-error";

vi.mock("ts-node", async () => {
const tsnode = await vi.importActual<typeof import("ts-node")>("ts-node");
const actualTsnode = await vi.importActual<typeof import("ts-node")>(
"ts-node"
);

let writableTsNode: any = {};
Object.keys(tsnode).forEach((key) =>
const writableTsNode: any = {};
Object.keys(actualTsnode).forEach((key) =>
Object.defineProperty(writableTsNode, key, {
value: (tsnode as any)[key],
value: (actualTsnode as any)[key],
writable: true,
})
);

return writableTsNode;
});

import * as tsnode from "ts-node";

import { TypeScriptLoader } from "./loader";
import { TypeScriptCompileError } from "./typescript-compile-error";

describe("TypeScriptLoader", () => {
const fixturesPath = path.resolve(__dirname, "__fixtures__");
const tsNodeSpy = vi.spyOn(tsnode, "register");
3,783 changes: 2,016 additions & 1,767 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cosmiconfig-typescript-loader",
"version": "4.2.0",
"version": "4.3.0",
"description": "TypeScript loader for cosmiconfig",
"author": "Alex Miller <codex.nz@gmail.com>",
"license": "MIT",
@@ -40,19 +40,19 @@
"typescript": ">=3"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@vitest/coverage-istanbul": "^0.24.3",
"chalk": "^5.1.2",
"esbuild": "^0.15.12",
"eslint": "^8.26.0",
"@typescript-eslint/eslint-plugin": "^5.46.0",
"@vitest/coverage-istanbul": "^0.25.7",
"chalk": "^5.2.0",
"esbuild": "^0.16.4",
"eslint": "^8.29.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
"release-it": "^15.5.0",
"typescript": "^4.8.4",
"vitest": "^0.24.3"
"prettier": "^2.8.1",
"release-it": "^15.5.1",
"typescript": "^4.9.4",
"vitest": "^0.25.7"
},
"keywords": [
"cosmiconfig",