Commit Graph

247 Commits

Author SHA1 Message Date
Zoltan Kochan
19542ecd28 test: use sync operations for assertions (#7663) 2024-02-16 16:23:23 +01:00
Nacho Aldama
7733f3a943 feat: support scoped client certificates (#7626)
close #7427

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-02-14 12:11:12 +01:00
Zoltan Kochan
857c0547ac fix(deps): update 2024-02-12 22:46:58 +01:00
Zoltan Kochan
82aac81163 fix: update @pnpm/npm-lifecycle 2024-02-12 22:21:12 +01:00
Zoltan Kochan
98a126699c fix: resolve peer of peer from the deps of direct dependent package (#7606)
close #7444

Peer dependencies of peer dependencies are now resolved correctly. When peer dependencies have peer dependencies of their own, the peer dependencies are grouped with their own peer dependencies before being linked to their dependents.

For instance, if `card` has `react` in peer dependencies and `react` has `typescript` in its peer dependencies, then the same version of `react` may be linked from different places if there are multiple versions of `typescript`. For instance:

```
project1/package.json
{
  "dependencies": {
    "card": "1.0.0",
    "react": "16.8.0",
    "typescript": "7.0.0"
  }
}
project2/package.json
{
  "dependencies": {
    "card": "1.0.0",
    "react": "16.8.0",
    "typescript": "8.0.0"
  }
}
node_modules
  .pnpm
    card@1.0.0(react@16.8.0(typescript@7.0.0))
      node_modules
        card
        react --> ../../react@16.8.0(typescript@7.0.0)/node_modules/react
    react@16.8.0(typescript@7.0.0)
      node_modules
        react
        typescript --> ../../typescript@7.0.0/node_modules/typescript
    typescript@7.0.0
      node_modules
        typescript
    card@1.0.0(react@16.8.0(typescript@8.0.0))
      node_modules
        card
        react --> ../../react@16.8.0(typescript@8.0.0)/node_modules/react
    react@16.8.0(typescript@8.0.0)
      node_modules
        react
        typescript --> ../../typescript@8.0.0/node_modules/typescript
    typescript@8.0.0
      node_modules
        typescript
```

In the above example, both projects have `card` in dependencies but the projects use different versions of `typescript`. Hence, even though the same version of `card` is used, `card` in `project1` will reference `react` from a directory where it is placed with `typescript@7.0.0` (because it resolves `typescript` from the dependencies of `project1`), while `card` in `project2` will reference `react` with `typescript@8.0.0`.
2024-02-09 00:50:08 +01:00
Zoltan Kochan
e74688a30c chore(deps): update @pnpm/registry-mock 2024-02-08 00:40:22 +01:00
Nacho Aldama
1a3449e940 feat: support node-options in .npmrc file (#7601)
сlose #7596
2024-02-01 13:21:03 +01:00
Zoltan Kochan
977060fc67 fix: resolve peer having peer correctly (#7583)
close #7444
2024-01-31 00:28:16 +01:00
Zoltan Kochan
1fc7c86778 Merge branch 'v8' 2024-01-27 16:55:07 +01:00
Zoltan Kochan
778efe2022 chore(release): 8.15.0 2024-01-27 16:48:08 +01:00
Khải
31054a63e6 fix(update): stop downgrading prereleases (#7466)
close #7436

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-01-27 14:47:03 +01:00
Khải
0ec0a44da7 fix(update): stop downgrading prereleases (#7466)
close #7436

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-01-27 14:41:58 +01:00
Zoltan Kochan
0c383327ea fix: reduce the side-effects cache key length (#7563)
close #5056
2024-01-25 03:20:08 +01:00
Zoltan Kochan
a3f90c2757 fix: reduce the side-effects cache key length (#7563)
close #5056
2024-01-25 03:17:11 +01:00
Rex Zeng
b13d2dc1ae feat: add sub folder support for git url (#7487)
close #4765

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-01-24 02:15:02 +01:00
Zoltan Kochan
793d523103 Merge branch 'v8' 2024-01-22 10:14:47 +01:00
Zoltan Kochan
b93bc1aa41 chore(release): 8.14.2 2024-01-22 10:10:27 +01:00
await-ovo
be27890eea fix(dlx): set saveProd to true for getting pkgName from dependencies (#7540)
close #7424

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-01-19 16:28:39 +01:00
await-ovo
d172d73385 fix(dlx): set saveProd to true for getting pkgName from dependencies (#7540)
close #7424

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-01-19 16:27:29 +01:00
Zoltan Kochan
ecda06d7b5 Merge branch 'v8' 2024-01-10 16:04:26 +01:00
Zoltan Kochan
388e1cc1cb chore(release): 8.14.1 2024-01-10 15:57:53 +01:00
Zoltan Kochan
6e3b75a42f chore(release): 9.0.0-alpha.0 2024-01-08 19:12:45 +01:00
Zoltan Kochan
e7481629fe feat!: link-workspace-packages is false by default (#7485) 2024-01-08 11:57:44 +01:00
Zoltan Kochan
d381a6001c feat!: use dependency path format from lockfile v6 (#7470)
Drop lockfile v5 support.
2024-01-08 11:57:44 +01:00
Zoltan Kochan
43cdd87c0c feat!: drop Node.js 16 support 2024-01-08 11:57:44 +01:00
Nacho Aldama
5a5e42551e feat: allow using token helpers in pnpm publish (#7443)
Close #7316

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-01-08 01:24:57 +01:00
Zoltan Kochan
c0182b429f chore(release): 8.14.0 2024-01-02 23:57:01 +01:00
Zoltan Kochan
7bef886144 chore(release): libs 2024-01-02 10:31:17 +01:00
Brandon Cheng
a2f5f5c990 test: fix file system race conditions in tests by switching to an IPC server (#7472)
* test: create new @pnpm/test-ipc-server private util package

* test: use @pnpm/test-ipc-server for previously refactored tests

* test: use @pnpm/test-ipc-server for tests using json-append

* test: change how --no-bail is passed to avoid passing it to scripts

This test began failing after the conversion to use
`@pnpm/test-echo-server` since the `--no-bail` script was being passed
to scripts.

Changing how --no-bail is configured to fix this test.

* test: use @pnpm/test-ipc-server in exec/lifecycle fixture tests

* test: use @pnpm/test-ipc-server in pkg-manager/headless fixture tests

* test: use @pnpm/test-ipc-server in exec/prepare-package fixture tests

* test: switch pnpm test from json-append to @pnpm.e2e/hello-world-js-bin

* test: fix and re-enable 'rebuild multiple packages in correct order'

The pnpm-workspace.yaml file didn't contain all packages, causing:

```
2023-12-22T02:24:46.2277155Z FAIL test/recursive.ts
2023-12-22T02:24:46.2277881Z   ● rebuild multiple packages in correct order
2023-12-22T02:24:46.2278348Z
2023-12-22T02:24:46.2278734Z     expect(received).toStrictEqual(expected) // deep equality
2023-12-22T02:24:46.2279302Z
2023-12-22T02:24:46.2279517Z     - Expected  - 1
2023-12-22T02:24:46.2279932Z     + Received  + 0
2023-12-22T02:24:46.2280186Z
2023-12-22T02:24:46.2280791Z       Array [
2023-12-22T02:24:46.2281256Z         "project-1",
2023-12-22T02:24:46.2281733Z     -   "project-2",
2023-12-22T02:24:46.2282135Z       ]
2023-12-22T02:24:46.2282334Z
2023-12-22T02:24:46.2282475Z       216 |   }, [])
2023-12-22T02:24:46.2282870Z       217 |
2023-12-22T02:24:46.2283788Z     > 218 |   expect(server1.getMessages()).toStrictEqual(['project-1', 'project-2'])
2023-12-22T02:24:46.2284725Z           |                                 ^
2023-12-22T02:24:46.2285802Z       219 |   expect(server2.getMessages()).toStrictEqual(['project-1', 'project-3'])
2023-12-22T02:24:46.2286683Z       220 | })
2023-12-22T02:24:46.2287049Z       221 |
2023-12-22T02:24:46.2287269Z
2023-12-22T02:24:46.2287588Z       at Object.<anonymous> (test/recursive.ts:218:33)
```
2024-01-01 16:40:03 +01:00
Zoltan Kochan
568860daae chore(release): 8.13.1 2023-12-26 15:39:22 +01:00
Zoltan Kochan
ce809f6d91 chore: update registry-mock 2023-12-19 11:24:07 +01:00
Zoltan Kochan
99fd38bf2b style: fix 2023-12-14 20:29:52 +01:00
Zoltan Kochan
74e8f474f3 chore(release): libs 2023-12-14 16:15:57 +01:00
btea
e79ab3847b chore(dep): update @types/node (#7414)
* chore(dep): update @types/node

* chore: update
2023-12-13 14:06:52 +01:00
Zoltan Kochan
e71c0f17e5 chore(release): 8.12.1 2023-12-13 11:18:12 +01:00
Zoltan Kochan
49f0027f13 chore(release): 8.12.0 2023-12-08 23:25:14 +01:00
Khải
1474bfd89a fix(run): stop passing flags as fallback command (#7370)
close #7244

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-06 19:53:32 +01:00
Zoltan Kochan
81a2f249e7 chore(release): libs 2023-12-06 15:48:07 +01:00
Zoltan Kochan
8a86facc06 chore(release): libs 2023-12-05 19:44:18 +01:00
Brandon Cheng
6846e4c756 test: fix flaking --resume-from tests on windows (#7346) 2023-11-27 11:01:31 +01:00
Zoltan Kochan
058edcff85 chore(release): 8.11.0 2023-11-24 17:27:18 +01:00
Zoltan Kochan
3db0db8d12 revert: "feat: use-experimental-npmjs-files-index option (#7177)"
This reverts commit a2bf6a0e96.
2023-11-22 02:01:27 +02:00
Tristan Knight
a2bf6a0e96 feat: use-experimental-npmjs-files-index option (#7177)
close #1328
2023-11-19 02:45:33 +02:00
Zoltan Kochan
2d8015b0eb chore(deps): update 2023-11-16 17:36:11 +02:00
Zoltan Kochan
b54e815d79 chore(release): libs 2023-11-16 14:54:14 +02:00
Zoltan Kochan
5e44048943 chore(release): 8.10.5 2023-11-14 13:58:50 +02:00
Zoltan Kochan
0ef6785441 chore(release): 8.10.4 2023-11-13 17:00:59 +02:00
Zoltan Kochan
df9eade77c chore(release): 8.10.3 2023-11-12 14:02:55 +02:00
Zoltan Kochan
75d788a00c chore(release): 8.10.2 2023-11-01 18:23:05 +02:00
Zoltan Kochan
b06f501831 fix: don't rebuild unmodified deps on repeat install (#7270)
close #7268
2023-11-01 18:21:49 +02:00