Commit Graph

57 Commits

Author SHA1 Message Date
Brandon Cheng
e9aa6f682a chore(deps): update TypeScript 5.1.6 -> 5.2.2 (#7016)
* test: use sha512 integrity in fixtures to fix ci break

* test: update snapshots for sha512 fixture change

* chore(deps): remove unneeded peer dependency exception

The `peerDependencyRules.allowedVersions` exception on
`@typescript-eslint/eslint-plugin` no longer seems to be necessary.
Removing it does not introduce any new peer dependency errors on
`pnpm install`.

I suspect this was needed for the
`eslint-config-standard-with-typescript` dependency in the past, but a
@typescript-eslint/eslint-plugin upgrade made it no longer necessary.

* chore(deps): update @typescript-eslint dependencies 5.62.0 -> 6.5.0

@typescript-eslint 6.5.0 is the first version to introduce support for
TypeScript 5.2.

https://github.com/typescript-eslint/typescript-eslint/releases/tag/v6.5.0

```
=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <5.2.0

YOUR TYPESCRIPT VERSION: 5.2.2

Please only submit bug reports when using the officially supported version.
```

* chore(deps): update eslint-config-standard-with-typescript 37.0.0 -> 39.0.0

Version 38.0.0 is the first version to support @typescript-eslint v6.
https://github.com/standard/eslint-config-standard-with-typescript/releases/tag/v38.0.0

Otherwise the following error appears.

```
> eslint "src/**/*.ts" "test/**/*.ts" "--fix"

Oops! Something went wrong! :(

ESLint: 8.47.0

Error: ../../.eslintrc.json » @pnpm/eslint-config » eslint-config-standard-with-typescript:
        Configuration for rule "@typescript-eslint/restrict-plus-operands" is invalid:
        Value {"checkCompoundAssignments":true} should NOT have additional properties.

    at ConfigValidator.validateRuleOptions (/Users/gluxon/Developer/pnpm/node_modules/.pnpm/@eslint+eslintrc@2.1.2/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2039:23)
    at /Users/gluxon/Developer/pnpm/node_modules/.pnpm/@eslint+eslintrc@2.1.2/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2094:18
```

* chore: remove unnecessary disables for restrict-template-expressions

The `@typescript-eslint/restrict-template-expressions` rule relaxed
what types are allowed in template expressions.

c13ce0b4f7 (diff-b852e1e199d2976eee1183fc84ac12a5d42fc61f0ae4b1c290dd54d621546db0)

Many of these disables were for interpolated values that had an `any`
type.

* chore: remove unnecessary disables for restrict-plus-operands

The original error was:

```
Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`. eslint@typescript-eslint/restrict-plus-operands
```

It look like the newer version now allows `any`.

* style: fix errors of prefer-optional-chain and prefer-nullish-coalescing

The `@typescript-eslint/prefer-optional-chain` and
`@typescript-eslint/prefer-nullish-coalescing` rules got a bit
smarter. This commit applies autofixes. I believe the changes should be
equivalent to what existed before.

Example of the new `@typescript-eslint/prefer-optional-chain` lints.

```
pnpm/pkg-manifest/exportable-manifest/src/index.ts
  71:10  error  Prefer using an optional chain expression instead, as it's more concise and easier to read  @typescript-eslint/prefer-optional-chain
  87:10  error  Prefer using an optional chain expression instead, as it's more concise and easier to read  @typescript-eslint/prefer-optional-chain
```

Example of the new `@typescript-eslint/prefer-nullish-coalescing` lints.

```
pnpm/fs/find-packages/src/index.ts
  32:38  error  Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read  @typescript-eslint/prefer-nullish-coalescing
```

* chore(deps): update TypeScript 5.1.6 -> 5.2.2

* chore(deps): update @yarnpkg/core->@types/lodash override to 4.14.197

This fixes a compilation error that appears on TypeScript 5.2.2. This
error was fixed in a later version of `@types/lodash`.

https://github.com/DefinitelyTyped/DefinitelyTyped/pull/66123

```
../node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/index.d.ts:45:15 - error TS2428: All declarations of 'WeakMap' must have identical type parameters.

45     interface WeakMap<K extends object, V> { }
                 ~~~~~~~

Found 4 errors.
```
2023-08-31 16:27:01 +03:00
Zoltan Kochan
c8a6ea8ae9 refactor: rename tarball-worker to worker 2023-08-26 17:26:21 +03:00
Zoltan Kochan
e6353f964c perf: fetch directories to CAFS in worker (#6984) 2023-08-26 15:43:32 +03:00
Zoltan Kochan
c1c5eb9aef test: don't use additional verdaccio 2023-08-25 23:55:30 +03:00
Zoltan Kochan
4c959b7122 test: do not finish the workers after each test run 2023-08-25 18:13:41 +03:00
Jacob Ley
d57e4de6dc feat(deploy): apply publishConfig to all packages during deploy (#6943)
When deploying packages, the package.json of the deployed package
(as well as any other locally defined dependencies)
should be treated as if it published, and mutate the package.json
according to `publishConfig` and local `workspace:` dependencies.

close #6693

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-08-25 02:13:29 +03:00
Zoltan Kochan
f2009d1756 perf: use a worker pool to link packages (#6950)
ref #6808
2023-08-24 20:05:53 +03:00
Zoltan Kochan
9584e5e86d fix(deps): update 2023-08-19 18:13:57 +03:00
Zoltan Kochan
083bbf5907 perf: extract packages in a worker pool (#6850) 2023-08-14 02:07:39 +03:00
Zoltan Kochan
96e165c7ff perf: improve tarball fetching speed (#6819) 2023-08-09 01:41:28 +03:00
Zoltan Kochan
362f41741f chore(release): 8.6.12 2023-08-06 14:10:47 +03:00
Zoltan Kochan
840b65bda6 perf: report download progress less often (#6906)
ref https://github.com/pnpm/pnpm/pull/6819
2023-08-04 12:33:13 +03:00
Zoltan Kochan
3dfaf33c98 chore(release): libs 2023-07-30 14:32:08 +03:00
Zoltan Kochan
d4ad189e3b chore(deps): update 2023-07-29 22:32:10 +03:00
Zoltan Kochan
ee5157d7da chore(release): 8.6.10 2023-07-24 01:43:41 +03:00
Zoltan Kochan
5ce333519d refactor: rename cafs to store.cafs 2023-07-19 01:53:42 +03:00
Zoltan Kochan
a35ec3fd92 chore(release): 8.6.8 2023-07-17 12:19:50 +03:00
Zoltan Kochan
250f7e9fe9 Merge pull request from GHSA-5r98-f33j-g8h7
* test: extracting files with similar names

* test: manifest extraction

* fix: pick last file from tarball

* fix: pick last file from tarball

* fix: always resolve from the last occurence of the manifest
2023-07-17 11:27:06 +03:00
Zoltan Kochan
e4ef6f46c9 chore(release): 8.6.7 2023-07-10 01:30:28 +03:00
Zoltan Kochan
2f0fe96f0d chore(release): 8.6.6 2023-07-03 15:17:06 +03:00
Zoltan Kochan
43151bbd6e chore(release): 8.6.2 2023-06-11 21:35:42 +03:00
Zoltan Kochan
ce4a522c1a chore(release): 8.6.1 2023-06-05 15:10:32 +03:00
Zoltan Kochan
d55b41a8b3 fix(deps): update 2023-06-04 02:23:19 +03:00
Zoltan Kochan
1989a068b3 chore(deps): update 2023-06-03 22:41:42 +03:00
Zoltan Kochan
f0817fa165 chore(release): 8.6.0 2023-05-28 14:59:16 +03:00
Zoltan Kochan
0ab1e52504 fix(deps): update 2023-04-12 02:27:06 +03:00
Zoltan Kochan
eb5b7d5299 chore(release): 8.0.0-rc.0 2023-03-24 15:52:20 +02:00
Zoltan Kochan
eceaa8b8b7 feat!: drop Node.js 14 support 2023-03-18 17:11:38 +02:00
Zoltan Kochan
ee61ca4cb7 style: update eslint (#6236) 2023-03-18 14:57:29 +02:00
Zoltan Kochan
f15fde7eb8 chore(deps): update 2023-03-18 00:27:58 +02:00
Zoltan Kochan
d66dcb452d Merge branch 'main' into v8 2023-03-14 03:48:44 +02:00
Zoltan Kochan
abd556bfac chore(release): 7.29.2 2023-03-14 03:46:08 +02:00
Zoltan Kochan
a4ce8e1f27 Merge branch 'main' into v8 2023-02-23 13:13:30 +02:00
await-ovo
77c754b10a chore: eslint issues (#6123) 2023-02-23 12:12:32 +02:00
Zoltan Kochan
91b8027441 ci: use pnpm v8 (#6116) 2023-02-22 17:50:20 +02:00
Zoltan Kochan
0058ecfbb9 chore(release): 8.0.0-alpha.0 2023-02-20 23:19:20 +02:00
Zoltan Kochan
acb9a902a9 chore(release): 7.27.1 2023-02-18 03:40:46 +02:00
Zoltan Kochan
2241f77adf fix: print a hint on integrity error (#6090)
ref #6087
2023-02-16 04:25:06 +02:00
Zoltan Kochan
9120b19cf2 chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
Zoltan Kochan
583e3954be fix: remove suppressImplicitAnyIndexErrors from typescript settings (#5991) 2023-01-28 18:19:26 +02:00
Zoltan Kochan
2c615198f9 chore(release): 7.24.3 2023-01-11 03:11:36 +02:00
Zoltan Kochan
1e6de89b6b fix(deps): update dependencies 2023-01-11 01:10:11 +02:00
Zoltan Kochan
bcbcc47530 chore(release): 7.24.0 2023-01-09 19:25:36 +02:00
Zoltan Kochan
c7b05cd9a4 fix: don't build git-hosted dependencies when scripts are ignored (#5897)
close #5876
2023-01-09 03:59:37 +02:00
Zoltan Kochan
2895389ae1 chore(release): 7.22.0 2023-01-03 15:30:16 +02:00
Zoltan Kochan
ec97a31057 fix: print a better error message on prepare pkg failure (#5847)
ref #5845
2023-01-01 23:28:33 +02:00
Zoltan Kochan
00dea18c60 chore(deps): update 2022-12-30 22:05:59 +02:00
Zoltan Kochan
964d5ff278 chore(release): 7.20.0 2022-12-26 00:59:32 +02:00
Zoltan Kochan
339c0a7046 fix: run prepublish scripts of packages installed from Git (#5837)
close #5826
2022-12-25 21:18:18 +02:00
Zoltan Kochan
d7ea8b486a chore(release): 7.19.0 2022-12-21 12:55:30 +02:00