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: browserify/resolve
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 26e54e89e38b603ae7a6397d7de00dbc80aa5413
Choose a base ref
...
head repository: browserify/resolve
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b8298720c6ece9d3b7231ea90bd920f266a449a8
Choose a head ref

Commits on Mar 3, 2016

  1. [New] add simple CLI util (#94)

     - requires it is executed directly, not via `node`, and not required
     - supports `--preserve-symlinks`, only when node itself supports it
     - supports `--` to stop further argument parsing
     - errors if a specifier is omitted
    
    Co-authored-by: j- <j@skeoh.com>
    Co-authored-by: Jordan Harband <ljharb@gmail.com>
    j- and ljharb committed Mar 3, 2016
    Copy the full SHA
    613efb2 View commit details

Commits on Mar 19, 2021

  1. [Tests] invalid_main fixture had an invalid "name" field

    This error might obscure the real problem with this fixture, so, fixing it
    ljharb committed Mar 19, 2021
    Copy the full SHA
    5fd6ef6 View commit details

Commits on Apr 7, 2021

  1. Copy the full SHA
    7f23b0c View commit details

Commits on May 9, 2021

  1. Copy the full SHA
    1c67407 View commit details
  2. Copy the full SHA
    af633dd View commit details
  3. Copy the full SHA
    6af77d4 View commit details
  4. [Deps] update is-core-module

    ljharb committed May 9, 2021
    Copy the full SHA
    700eb64 View commit details

Commits on May 26, 2021

  1. [Dev Deps] update eslint

    ljharb committed May 26, 2021
    Copy the full SHA
    1262e72 View commit details
  2. [Deps] update path-parse

    ljharb committed May 26, 2021
    2
    Copy the full SHA
    d7f5c3e View commit details

Commits on Nov 1, 2021

  1. [Refactor] sync: Do not throw on missing files in isFile/`isDirec…

    …tory` (#256)
    Mark Molinaro authored and ljharb committed Nov 1, 2021
    Copy the full SHA
    d688575 View commit details

Commits on Nov 2, 2021

  1. Copy the full SHA
    f669601 View commit details
  2. Copy the full SHA
    09fa26b View commit details
  3. Copy the full SHA
    3e18d90 View commit details
  4. [Deps] update is-core-module

    ljharb committed Nov 2, 2021
    Copy the full SHA
    18c5ad5 View commit details

Commits on Dec 29, 2021

  1. [Tests] add coverage for absolute paths

    Closes #261
    ljharb committed Dec 29, 2021
    Copy the full SHA
    931ad2b View commit details
  2. Copy the full SHA
    dfab53f View commit details
  3. Copy the full SHA
    ebbe162 View commit details
  4. [Dev Deps] update eslint, @ljharb/eslint-config, `array.prototype…

    ….map`, `safe-publish-latest`, `tape`
    ljharb committed Dec 29, 2021
    Copy the full SHA
    c2b7070 View commit details
  5. Copy the full SHA
    d6e0871 View commit details

Commits on Dec 30, 2021

  1. Copy the full SHA
    e538c8a View commit details
  2. Copy the full SHA
    2e23786 View commit details

Commits on Jan 3, 2022

  1. [Dev Deps] update eslint

    ljharb committed Jan 3, 2022
    Copy the full SHA
    6f8d3c4 View commit details
  2. [meta] backport FUNDING.yml

    ljharb committed Jan 3, 2022
    Copy the full SHA
    677ab33 View commit details
  3. [Tests] backport appveyor.yml

    ljharb committed Jan 3, 2022
    Copy the full SHA
    14d92b8 View commit details
  4. v1.21.0

     - [New] add top-level granular entry points
     - [New] add simple CLI util (#94)
     - [Refactor] `sync`: Do not throw on missing files in `isFile`/`isDirectory` (#256)
     - [Deps] update `is-core-module`, `path-parse`
     - [readme] pull in changes from default branch
     - [readme] remove defunct travis badge; update badges
     - [meta] backport FUNDING.yml
     - [meta] skip deleted files in `eclint` check
     - [meta] use `prepublishOnly`, for npm 7+
     - [actions] reuse common workflows
     - [actions] pull in workflows from default branch
     - [actions] use `node/install` instead of `node/run`; use `codecov` action
     - [Tests] backport appveyor.yml
     - [Tests] add coverage for a malformed package.json
     - [Tests] only run `eclint` on intended files
     - [Tests] add coverage for absolute paths
     - [Tests] `invalid_main` fixture had an invalid "name" field
     - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `array.prototype.map`, `safe-publish-latest`, `tape`
     - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape`
    ljharb committed Jan 3, 2022
    Copy the full SHA
    da9e8af View commit details

Commits on Jan 21, 2022

  1. Copy the full SHA
    6f2b872 View commit details
  2. Copy the full SHA
    c6307c2 View commit details
  3. Copy the full SHA
    41fbf65 View commit details
  4. v1.21.1

     - [Fix] `bin/resolve`: allow `npx resolve` usage
     - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape`
     - [Tests] add tests comparing `resolve.sync` to `require.resolve`
    ljharb committed Jan 21, 2022
    Copy the full SHA
    1f3dec5 View commit details
  5. [Deps] update is-core-module

    ljharb committed Jan 21, 2022
    Copy the full SHA
    e543f9e View commit details

Commits on Jan 22, 2022

  1. [New] add default support for paths to include `$HOME/.node_{module…

    …s,libraries}` (#273)
    
    Note, this is a rarely used feature that should be aggressively avoided, but it‘s important to minimize gaps between node and this package.
    
    Fixes #163
    ljharb committed Jan 22, 2022
    Copy the full SHA
    9bd06c0 View commit details
  2. v1.22.0

     - [New] add default support for `paths` to include `$HOME/.node_{modules,libraries}` (#273)
     - [Deps] update `is-core-module`
    ljharb committed Jan 22, 2022
    Copy the full SHA
    cd52b64 View commit details
  3. Copy the full SHA
    134d1fe View commit details

Commits on Feb 11, 2022

  1. Copy the full SHA
    232bff4 View commit details
  2. [Test] add some sync coverage

    ljharb committed Feb 11, 2022
    Copy the full SHA
    e9e764c View commit details
  3. Copy the full SHA
    cf1d4cc View commit details

Commits on Feb 15, 2022

  1. Copy the full SHA
    3ab1da8 View commit details

Commits on Apr 23, 2022

  1. Copy the full SHA
    761e1d6 View commit details
  2. [Deps] update is-core-module

    ljharb committed Apr 23, 2022
    Copy the full SHA
    412518e View commit details

Commits on May 23, 2022

  1. [Fix] support windows virtual drive paths

    pos777 authored and ljharb committed May 23, 2022
    Copy the full SHA
    0008477 View commit details

Commits on May 31, 2022

  1. Copy the full SHA
    d171f96 View commit details
  2. Copy the full SHA
    d06a8dc View commit details

Commits on Jun 1, 2022

  1. Copy the full SHA
    f5cf55d View commit details

Commits on Jun 17, 2022

  1. v1.22.1

     - [Fix] support windows virtual drive paths (#284)
     - [Deps] update `is-core-module`
     - [meta] use `npmignore` to autogenerate an npmignore file
     - [meta] do not publish `appveyor.yml`
     - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`
     - [Test] add tests for `"main": false`
     - [Tests] fix tests on node v12.0-12.2
     - [Test] add some `sync` coverage
     - [Test] fix incorrect `require.resolve` paths logic; enable these tests
     - [Tests] avoid tests breaking on node 11.11 - 11.13
    ljharb committed Jun 17, 2022
    Copy the full SHA
    8eea601 View commit details

Commits on Aug 4, 2022

  1. [Deps] update is-core-module

    ljharb committed Aug 4, 2022
    Copy the full SHA
    94978fe View commit details

Commits on Oct 18, 2022

  1. [Dev Deps] update aud, tape

    ljharb committed Oct 18, 2022
    Copy the full SHA
    6960e34 View commit details
  2. [Deps] update is-core-module

    ljharb committed Oct 18, 2022
    Copy the full SHA
    04ca704 View commit details

Commits on Nov 18, 2022

  1. Copy the full SHA
    39c7143 View commit details
  2. Copy the full SHA
    531b6f6 View commit details

Commits on Jan 27, 2023

  1. Copy the full SHA
    1454fdf View commit details
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

44 changes: 35 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "@ljharb",
"root": true,

"extends": "@ljharb",

"rules": {
"array-bracket-newline": 0,
"array-element-newline": 0,
"indent": [2, 4],
"strict": 0,
"complexity": 0,
@@ -12,28 +12,54 @@
"dot-notation": [2, { "allowKeywords": true }],
"func-name-matching": 0,
"func-style": 0,
"global-require": 0,
"id-length": [2, { "min": 1, "max": 30 }],
"global-require": 1,
"id-length": [2, { "min": 1, "max": 40 }],
"max-lines": [2, 350],
"max-lines-per-function": 0,
"max-nested-callbacks": 0,
"max-params": 0,
"max-statements-per-line": [2, { "max": 2 }],
"max-statements": 0,
"no-magic-numbers": 0,
"no-console": 0,
"no-shadow": 0,
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
"no-use-before-define": 0,
"object-curly-newline": 0,
"operator-linebreak": [2, "before"],
"sort-keys": 0,
},
"overrides": [
{
"files": "bin/**",
"rules": {
"no-process-exit": "off",
},
},
{
"files": "example/**",
"rules": {
"no-console": 0,
},
},
{
"files": "test/resolver/nested_symlinks/mylib/*.js",
"rules": {
"no-throw-literal": 0,
},
},
{
"files": "test/**",
"parserOptions": {
"ecmaVersion": 5,
"allowReserved": false,
},
"rules": {
"dot-notation": [2, { "allowPattern": "throws" }],
"max-lines": 0,
"max-lines-per-function": 0,
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
},
},
],

"ignorePatterns": [
"./test/resolver/malformed_package_json/package.json",
],
}
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/resolve
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
19 changes: 19 additions & 0 deletions .github/workflows/executable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: resolve executable

on: [push, pull_request]

jobs:
_:
name: cli

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: ljharb/actions/node/install@main
- run: "[ $(./bin/resolve fs) = 'fs' ]"
name: run inside the package with a direct path
- run: "npm link && [ $(resolve fs) = 'fs' ] && npm uninstall -g resolve"
name: run linked as a global in the PATH
- run: "[ $(npx resolve fs) = 'fs' ]"
name: run via npx
54 changes: 0 additions & 54 deletions .github/workflows/node-4+.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/node-aught.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Tests: node.js < 10'

on: [pull_request, push]

jobs:
tests:
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '< 10'
type: minors
command: npm run tests-only

node:
name: 'node < 10'
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
57 changes: 0 additions & 57 deletions .github/workflows/node-iojs.yml

This file was deleted.

24 changes: 2 additions & 22 deletions .github/workflows/node-pretest.yml
Original file line number Diff line number Diff line change
@@ -3,25 +3,5 @@ name: 'Tests: pretest/posttest'
on: [pull_request, push]

jobs:
pretest:
runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v2
- uses: ljharb/actions/node/run@main
name: 'npm install && npm run pretest'
with:
node-version: 'lts/*'
command: 'pretest'

posttest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ljharb/actions/node/run@main
name: 'npm install && npm run posttest'
with:
node-version: 'lts/*'
command: 'posttest'
tests:
uses: ljharb/actions/.github/workflows/pretest.yml@main
18 changes: 18 additions & 0 deletions .github/workflows/node-tens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Tests: node.js >= 10'

on: [pull_request, push]

jobs:
tests:
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '>= 10'
type: minors
command: npm run tests-only

node:
name: 'node >= 10'
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
57 changes: 0 additions & 57 deletions .github/workflows/node-zero.yml

This file was deleted.

12 changes: 3 additions & 9 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -4,12 +4,6 @@ on: [pull_request_target]

jobs:
_:
name: "Automatic Rebase"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ljharb/rebase@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ljharb/actions/.github/workflows/rebase.yml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 1 addition & 3 deletions .github/workflows/require-allow-edits.yml
Original file line number Diff line number Diff line change
@@ -9,6 +9,4 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ljharb/require-allow-edits@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ljharb/require-allow-edits@main
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -9,3 +9,5 @@ yarn.lock

# symlinked file used in tests
test/resolver/symlinked/_/node_modules/package

.npmignore
13 changes: 0 additions & 13 deletions .npmignore

This file was deleted.

Loading