Commit Graph

221 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
a35ec3fd92 chore(release): 8.6.8 2023-07-17 12:19:50 +03:00
Zoltan Kochan
75673055f4 chore(deps): update 2023-07-13 18:40:03 +03:00
Zoltan Kochan
3c2c426d13 chore(deps): update 2023-06-23 01:29:50 +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
c7235c0581 chore(deps): update 2023-04-25 03:14:06 +03:00
Zoltan Kochan
dadef0e950 chore(release): 8.3.0 2023-04-18 03:03:07 +03:00
Jake Bailey
c0760128d6 perf: bump semver to 7.4.0 (#6377) 2023-04-11 12:03:55 +03:00
Zoltan Kochan
61b7919ad4 chore(release): 8.1.1 2023-04-04 02:40:53 +03:00
Zoltan Kochan
94f94eed63 fix: installing local dep from directory that starts with @ (#6350)
close #6332
2023-04-04 02:36:30 +03:00
Zoltan Kochan
5087636b66 fix: installation of packages with () in scope name (#6349)
close #6348
2023-04-04 00:18:43 +03:00
Zoltan Kochan
eb5b7d5299 chore(release): 8.0.0-rc.0 2023-03-24 15:52:20 +02:00
Zoltan Kochan
0e26acb0fb refactor: dependency-path 2023-03-24 15:25:53 +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
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
0058ecfbb9 chore(release): 8.0.0-alpha.0 2023-02-20 23:19:20 +02:00
Zoltan Kochan
ec5d01199f chore: update tags 2023-02-19 16:10:07 +02:00
Zoltan Kochan
ca8f51e60b feat: change the way directory names are shortened inside .pnpm 2023-02-10 16:30:00 +02:00
Zoltan Kochan
524feda1e7 chore(release): 7.27.0-0 2023-02-08 15:39:16 +02:00
Zoltan Kochan
2b54be3031 chore(release): 7.27.0-0 2023-02-05 12:51:29 +02:00
Zoltan Kochan
d89d7a0786 fix(dependency-path): parsing a local dep 2023-02-05 12:35:05 +02:00
Zoltan Kochan
47e45d717d feat!: breaking config changes in v8 (#6035)
* auto-install-peers=true
* save-workspace-protocol=rolling
* publishConfig.linkDirectory true by default
* resolve-peers-from-workspace-root is true by default
* set dedupeDirectDeps to true by default in @pnpm/core.
2023-02-05 11:43:22 +02:00
Zoltan Kochan
515aa14bee chore(release): 7.26.3 2023-02-01 03:10:02 +02:00
Zoltan Kochan
9247f6781b fix: issues with storybook and the new lockfile format (#5998)
close #5976
2023-01-30 17:28:20 +02:00
Zoltan Kochan
583e3954be fix: remove suppressImplicitAnyIndexErrors from typescript settings (#5991) 2023-01-28 18:19:26 +02:00
Zoltan Kochan
95d82077ea chore(release): 7.24.1 2023-01-10 11:49:54 +02:00
Zoltan Kochan
0f6e95872a fix: lockfile v6 should not be corrupted on repeat install (#5905)
* fix: lockfile v6 should not be corrupted on repeat install

* fix: don't add empty specifiers to lockfile v6

* fix: lockfile v6 should be saved to node_modules/.pnpm/lock.yaml

* fix: frozen lockfile with lockfile v6
2023-01-10 11:41:17 +02:00
Zoltan Kochan
bcbcc47530 chore(release): 7.24.0 2023-01-09 19:25:36 +02:00
Zoltan Kochan
3ebce5db7a feat!: lockfile format v6 (#5810) 2023-01-09 14:37:05 +02:00
Zoltan Kochan
d7ea8b486a chore(release): 7.19.0 2022-12-21 12:55:30 +02:00
Zoltan Kochan
90ec7fcf3f chore: release libs 2022-12-13 04:08:28 +02:00
Zoltan Kochan
313702d76b refactor: all packages should be in the @pnpm scope (#5785) 2022-12-13 03:46:56 +02:00
Zoltan Kochan
9cbe293876 refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
Zoltan Kochan
e379ec8a77 refactor: use more utils from ramda (#5656) 2022-11-19 04:29:21 +02:00
Zoltan Kochan
a276532641 chore(release): 7.15.0 2022-11-10 00:58:28 +02:00
Zoltan Kochan
0da2f04122 fix(deps): update dependencies 2022-10-31 14:46:40 +02:00
Zoltan Kochan
5e77de2cfc chore(release): 7.13.6 2022-10-20 01:29:11 +03:00
Zoltan Kochan
9ef5ebd9dc chore(deps): update 2022-10-09 16:55:34 +03:00
Zoltan Kochan
86bd1b171e fix(deps): update 2022-10-04 15:03:31 +03:00
Zoltan Kochan
a74d26c0a0 chore(release): 7.13.0 2022-10-03 03:43:25 +03:00
Zoltan Kochan
cc0514ca9b chore(release): 7.12.0 2022-09-18 21:52:34 +03:00
Zoltan Kochan
dbac0ca01d fix(deps): update (#5190)
close #5191
2022-08-14 00:19:54 +03:00
Zoltan Kochan
761be978b2 chore(release): 7.8.0 2022-07-31 11:25:05 +03:00
Zoltan Kochan
716a29acc9 chore(deps): update 2022-07-06 03:01:33 +03:00
Zoltan Kochan
c1493a4c55 chore(release): 7.5.0 2022-07-02 16:07:26 +03:00
Zoltan Kochan
b2d271d29c chore: use workspace with star to reference workspace dependencies 2022-07-01 03:45:20 +03:00
Zoltan Kochan
b2b341ebee chore(release): 7.4.0-4 2022-06-28 02:38:10 +03:00