Commit Graph

82 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
9584e5e86d fix(deps): update 2023-08-19 18:13:57 +03:00
Zoltan Kochan
efa465d630 chore(deps): update @types/node to v16 2023-08-08 14:25:32 +03:00
Zoltan Kochan
d4ad189e3b chore(deps): update 2023-07-29 22:32:10 +03:00
Zoltan Kochan
56564248c5 chore(release): libs 2023-07-24 22:08:46 +03:00
Zoltan Kochan
ee5157d7da chore(release): 8.6.10 2023-07-24 01:43:41 +03:00
Zoltan Kochan
a13a0e8f5c fix: don't fail when a non-optional dep of an optional dep fails (#6847)
close #6822
2023-07-22 16:53:49 +03:00
Zoltan Kochan
9d4c16876f docs: update sponsors list
This reverts commit a246e38031.
2023-07-19 15:19:55 +03:00
Zoltan Kochan
cd00a79ab2 chore(release): libs 2023-07-19 02:19:20 +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
a70c77ac43 test: use jest global setup/teardown to manage the registry mock (#6813)
close #6787
2023-07-15 23:00:41 +03:00
Zoltan Kochan
75673055f4 chore(deps): update 2023-07-13 18:40:03 +03:00
Zoltan Kochan
c099806f1d fix: remove console log from test-fixtures 2023-07-07 01:37:04 +03:00
Zoltan Kochan
8078084c8f chore(release): test-fixtures 2023-07-07 01:26:04 +03:00
Zoltan Kochan
d3a27cf43c chore(test-fixtures): rename files prefixed with an underscore 2023-07-06 23:22:10 +03:00
Zoltan Kochan
2f0fe96f0d chore(release): 8.6.6 2023-07-03 15:17:06 +03:00
Zoltan Kochan
9a7a249e1d chore(deps): update 2023-06-28 20:55:05 +03:00
Zoltan Kochan
3c2c426d13 chore(deps): update 2023-06-23 01:29:50 +03:00
Zoltan Kochan
f0af6b02cf chore(release): 8.6.3 2023-06-19 15:32:13 +03:00
Zoltan Kochan
43151bbd6e chore(release): 8.6.2 2023-06-11 21:35:42 +03:00
Zoltan Kochan
29a2a69806 docs: update flightcontrol logo 2023-06-07 20:02:00 +03:00
Zoltan Kochan
ce4a522c1a chore(release): 8.6.1 2023-06-05 15:10:32 +03:00
Zoltan Kochan
a246e38031 docs: update sponsors list 2023-06-05 14:25:28 +03:00
Zoltan Kochan
4b97f1f07a perf: don't use await inside loops (#6617) 2023-06-05 12:12:47 +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
bac97121c0 style: require-array-sort-compare for non-strings 2023-05-20 16:20:30 +03:00
Zoltan Kochan
925198bf97 chore(deps): update 2023-05-05 16:06:57 +03:00
Zoltan Kochan
fcfbf96429 chore(release): 8.4.0 2023-05-02 13:46:53 +03:00
Zoltan Kochan
e6b83c84e5 fix: don't create an empty node_modules directory (#6482) 2023-04-28 03:08:38 +03:00
Zoltan Kochan
c7235c0581 chore(deps): update 2023-04-25 03:14:06 +03:00
Zoltan Kochan
1e1033ad27 docs: add devowl to sponsors 2023-04-20 02:06:01 +03:00
Zoltan Kochan
25f5199002 docs: add new sponsor 2023-04-18 03:00:26 +03:00
Zoltan Kochan
0ab1e52504 fix(deps): update 2023-04-12 02:27:06 +03:00
Zoltan Kochan
fc8780ca9e feat: npmrc environment variable fallback (#6358)
close #6018
2023-04-04 22:53:51 +03:00
Zoltan Kochan
73f21b6873 docs: add moonrepo to sponsors 2023-03-31 04:31:39 +03:00
await-ovo
c45a4211f2 fix(deps): update @typescript-eslint/eslint-plugin and @typescript-eslint/parser (#6290) 2023-03-27 19:38:27 +03:00
Zoltan Kochan
65e3af8a09 fix: remove replaceall polyfill 2023-03-27 01:15:13 +03:00
Zoltan Kochan
51445f9557 fix: dedupe-peer-dependents should not remove peer deps from workspace root (#6280)
close #6154
2023-03-26 02:46:07 +02:00
Zoltan Kochan
eb5b7d5299 chore(release): 8.0.0-rc.0 2023-03-24 15:52:20 +02:00
Rex Zeng
cfb6bb3bfe feat: support resolving peers with npm aliases (#6220)
close #4301
Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-03-22 04:39:11 +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
962c2b78b9 docs: remove doppler from sponsors 2023-03-07 01:26:45 +02:00
Zoltan Kochan
1f81e70e1a Merge branch 'main' into v8 2023-03-05 15:06:47 +02:00
Zoltan Kochan
5c31fa8be6 feat: dedupe packages that have peers when dedupe-peer-dependents is true (#6153) 2023-03-03 08:31:41 +02:00
Zoltan Kochan
cfbab73a61 fix: update deps 2023-03-03 06:13:20 +02:00