Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update devdependencies #625

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 30, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/glob (source) 8.0.0 -> 8.1.0 age adoption passing confidence
@types/lodash (source) 4.14.186 -> 4.14.202 age adoption passing confidence
@types/verror (source) 1.10.6 -> 1.10.9 age adoption passing confidence
@vitest/ui (source) 0.34.6 -> 0.34.7 age adoption passing confidence
del-cli 5.0.0 -> 5.1.0 age adoption passing confidence
expect-type 0.14.2 -> 0.17.3 age adoption passing confidence
sinon (source) 14.0.0 -> 14.0.2 age adoption passing confidence
sqlite3 5.0.8 -> 5.1.2 age adoption passing confidence
typescript (source) 4.8.4 -> 4.9.5 age adoption passing confidence
uuid 9.0.0 -> 9.0.1 age adoption passing confidence

Release Notes

vitest-dev/vitest (@​vitest/ui)

v0.34.7

Compare Source

sindresorhus/del-cli (del-cli)

v5.1.0

Compare Source

v5.0.1

Compare Source

  • Fix Windows compatibility for use with npx 537e5b3
mmkal/expect-type (expect-type)

v0.17.3

Compare Source

v0.17.2

Compare Source

Diff(truncated - scroll right!):

test('toEqualTypeOf with tuples', () => {
  const assertion = `expectTypeOf<[[number], [1], []]>().toEqualTypeOf<[[number], [2], []]>()`
  expect(tsErrors(assertion)).toMatchInlineSnapshot(`
-    "test/test.ts:999:999 - error TS2344: Type '[[number], [2], []]' does not satisfy the constraint '{ [x: number]: { [x: number]: number; [iterator]: (() => IterableIterator<1>) | (() => IterableIterator<number>) | (() => IterableIterator<never>); [unscopables]: (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }); length: 0 | 1; toString:  ... truncated!!!!'.
-      Types of property 'sort' are incompatible.
-        Type '(compareFn?: ((a: [] | [number] | [2], b: [] | [number] | [2]) => number) | undefined) => [[number], [2], []]' is not assignable to type '\\"Expected: function, Actual: function\\"'.
+    "test/test.ts:999:999 - error TS2344: Type '[[number], [2], []]' does not satisfy the constraint '{ 0: { 0: number; }; 1: { 0: \\"Expected: literal number: 2, Actual: literal number: 1\\"; }; 2: {}; }'.
+      The types of '1[0]' are incompatible between these types.
+        Type '2' is not assignable to type '\\"Expected: literal number: 2, Actual: literal number: 1\\"'.
    999 expectTypeOf<[[number], [1], []]>().toEqualTypeOf<[[number], [2], []]>()
                                                          ~~~~~~~~~~~~~~~~~~~"
  `)
})

v0.17.1

Compare Source

  • disallow .not and .branded together cf38918

(this was actually documented in the v0.17.0 release but really it was only pushed here)

v0.17.0

Compare Source

#​16 went in to - hopefully - significantly improve the error messages produce on failing assertions. Here's an example of how vitest's failing tests were improved:

Before:

image

After:

image

Docs copied from the readme about how to interpret these error messages


Error messages

When types don't match, .toEqualTypeOf and .toMatchTypeOf use a special helper type to produce error messages that are as actionable as possible. But there's a bit of an nuance to understanding them. Since the assertions are written "fluently", the failure should be on the "expected" type, not the "actual" type (expect<Actual>().toEqualTypeOf<Expected>()). This means that type errors can be a little confusing - so this library produces a MismatchInfo type to try to make explicit what the expectation is. For example:

expectTypeOf({a: 1}).toEqualTypeOf<{a: string}>()

Is an assertion that will fail, since {a: 1} has type {a: number} and not {a: string}. The error message in this case will read something like this:

test/test.ts:999:999 - error TS2344: Type '{ a: string; }' does not satisfy the constraint '{ a: \\"Expected: string, Actual: number\\"; }'.
  Types of property 'a' are incompatible.
    Type 'string' is not assignable to type '\\"Expected: string, Actual: number\\"'.

999 expectTypeOf({a: 1}).toEqualTypeOf<{a: string}>()

Note that the type constraint reported is a human-readable messaging specifying both the "expected" and "actual" types. Rather than taking the sentence Types of property 'a' are incompatible // Type 'string' is not assignable to type "Expected: string, Actual: number" literally - just look at the property name ('a') and the message: Expected: string, Actual: number. This will tell you what's wrong, in most cases. Extremely complex types will of course be more effort to debug, and may require some experimentation. Please raise an issue if the error messages are actually misleading.

The toBe... methods (like toBeString, toBeNumber, toBeVoid etc.) fail by resolving to a non-callable type when the Actual type under test doesn't match up. For example, the failure for an assertion like expectTypeOf(1).toBeString() will look something like this:

test/test.ts:999:999 - error TS2349: This expression is not callable.
  Type 'ExpectString<number>' has no call signatures.

999 expectTypeOf(1).toBeString()
                    ~~~~~~~~~~

The This expression is not callable part isn't all that helpful - the meaningful error is the next line, Type 'ExpectString<number> has no call signatures. This essentially means you passed a number but asserted it should be a string.

If TypeScript added support for "throw" types these error messagess could be improved. Until then they will take a certain amount of squinting.

Concrete "expected" objects vs typeargs

Error messages for an assertion like this:

expectTypeOf({a: 1}).toEqualTypeOf({a: ''})

Will be less helpful than for an assertion like this:

expectTypeOf({a: 1}).toEqualTypeOf<{a: string}>()

This is because the TypeScript compiler needs to infer the typearg for the .toEqualTypeOf({a: ''}) style, and this library can only mark it as a failure by comparing it against a generic Mismatch type. So, where possible, use a typearg rather than a concrete type for .toEqualTypeOf and toMatchTypeOf. If it's much more convenient to compare two concrete types, you can use typeof:

const one = valueFromFunctionOne({some: {complex: inputs}})
const two = valueFromFunctionTwo({some: {other: inputs}})

expectTypeOf(one).toEqualTypeof<typeof two>()

Kinda-breaking changes: essentially none, but technically, .branded no longer returns a "full" ExpectTypeOf instance at compile-time. Previously you could do this:

expectTypeOf<{a: {b: 1} & {c: 1}}>().branded.not.toEqualTypeOf<{a: {b: 1; c: ''}}>()
expectTypeOf<{a: {b: 1} & {c: 1}}>().not.branded.toEqualTypeOf<{a: {b: 1; c: ''}}>()

Now that won't work (and it was always slightly nonsensical), so you'd have to use // @&#8203;ts-expect-error instead of not if you have a negated case where you need branded:

// @&#8203;ts-expect-error
expectTypeOf<{a: {b: 1} & {c: 1}}>().branded.not.toEqualTypeOf<{a: {b: 1; c: ''}}>()

What's Changed

New Contributors

Full Changelog: mmkal/expect-type@v0.16.0...v0.17.0

v0.16.0

Compare Source

What's Changed

Note that #​21 has affected behavior for intersection types, which can result in (arguably) false errors:

// @&#8203;ts-expect-error the following line doesn't compile, even though the types are arguably the same.
// See https://github.com/mmkal/expect-type/pull/21
expectTypeOf<{a: 1} & {b: 2}>().toEqualTypeOf<{a: 1; b: 2}>()

Full Changelog: mmkal/expect-type@v0.15.0...v16.0.0

v0.15.0

Compare Source

What's Changed

New Contributors

Full Changelog: mmkal/expect-type@v0.14.2...v0.15.0

sinonjs/sinon (sinon)

v14.0.2

Compare Source

Released by Morgan Roderick on 2022-11-07.

v14.0.1

Compare Source

  • 6c4753ef
    Fixed CSS selectors in _base.scss and changed blockquote default size to 16px. (Jose Lupianez)
  • A bunch of dependency updates

Released by Carl-Erik Kopseng on 2022-10-03.

microsoft/vscode-node-sqlite3 (sqlite3)

v5.1.2

Compare Source

Microsoft/TypeScript (typescript)

v4.9.5: TypeScript 4.9.5

Compare Source

For release notes, check out the release announcement.

Downloads are available on:

Changes:

v4.9.4: TypeScript 4.9.4

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

Changes:

This list of changes was auto generated.

v4.9.3: TypeScript 4.9

Compare Source

For release notes, check out the release announcement.

Downloads are available on:

Changes:

See More
  • 3d2b401 Fix assertion functions accessed via wildcard imports (#​51324)
  • 64d0d5a fix(51301): Fixing an unused import at the end of a line removes the newline (#​51320)
  • 754eeb2 Update CodeQL workflow and configuration, fix found bugs (#​51263)
  • d8aad26 Update package-lock.json
  • d4f26c8 fix(51245): Class with parameter decorator in arrow function causes "convert to default export" refactoring failure (#​51256)
  • 16faf45 Update package-lock.json
  • 8b1ecdb fix(50654): "Move to a new file" breaks the declaration of referenced variable (#​50681)
  • 170a17f Dom update 2022-10-25 (#​51300)
  • 9c4e14d Remove "No type information for this code" from baseline (#​51311)
  • 88d25b4 fix(50068): Refactors trigger debug failure when JSX text has a ' and a tag on the same line. (#​51299)
  • 8bee69a Update package-lock.json
  • 702de1e Fix early call to return/throw on generator (#​51294)
  • 2c12b14 Add a GH Action to file a new issue if we go a week without seeing a typescript-error-deltas issue (#​51271)
  • 6af270d Update package-lock.json
  • 2cc4c16 Update package-lock.json
  • 6093491 Fix apparent typo in getStringMappingType (#​51248)
  • 61c2609 Update package-lock.json
  • ef69116 Generate shortest rootDirs module specifier instead of first possible (#​51244)
  • bbb42f4 Fix typo in canWatchDirectoryOrFile found by CodeQL (#​51262)
  • a56b254 Include 'this' type parameter in isRelatedTo fast path (#​51230)
  • 3abd351 Fix super property transform in async arrow in method (#​51240)
  • eed0511 Update package-lock.json
  • 2625c1f Make the init config category order predictable (#​51247)
  • 1ca99b3 fix(50551): Destructuring assignment with var bypasses "variable is used before being assigned" check (2454) (#​50560)
  • 3f28fa1 Update package-lock.json
  • 906ebe4 Revert structuredTypeRelatedTo change and fix isUnitLikeType (#​51076)
  • 8ac4652 change type (#​51231)
  • 245a02c fix(51222): Go-to-definition on return statements should jump to the containing function declaration (#​51227)
  • 2dff34e markAliasReferenced should include ExportValue as well (#​51219)
  • 5ef2634 Update package-lock.json
  • d0f0e35 Remove old tslint comments (#​51220)
  • 85d405a Fixed a false positive "await has no effect on the type" diagnostic with mixed generic union (#​50833)
  • 1f8959f fix: avoid downleveled dynamic import closing over specifier expression (#​49663)
  • 11066b2 Rename internal functions to narrowTypeBySwitchOnTypeOf and narrowTypeByInKeyword (#​51215)
  • 4c9afe8 Update package-lock.json
  • f25bcb7 fix(49196): add jsdoc snippet for interface member functions (#​51135)
  • 7406ee9 fix(51170): Completing an unimplemented property overwrites rest of line (#​51175)
  • a1d82fc Remove some unnecessary code discovered by rollup (#​51204)
  • 0481773 LEGO: Merge pull request 51200
  • 98c19cb LEGO: Merge pull request 51190
  • 13c9b05 Update package-lock.json
  • 673475e Update package-lock.json
  • f6cf510 Add more tracing to node16/nodenext resolution (#​51168)
  • 83c5581 Update package-lock.json
  • be5f0fe Add an extra regression test for awaited unresolvable recursive union (#​51167)
  • 2cb7e77 fix(50416): correctly names disabled export refactors (#​50663) [ #​50416 ]
  • 2bcfed0 feat(37440): Provide a quick-fix for non-exported types (#​51038)
  • a24201c Remove VSDevMode.ps1 and createPlaygroundBuild (#​51166)
  • 2da62a7 fix(51112): omit parameter names that precede the type (#​51142)
  • cf1b6b7 feat(51163): show QF to fill in the missing properties for the mapped type. (#​51165)
  • bdcc240 Remove bug-causing carve-out in conditional type instantiation that hopefully is no longer required (#​51151)
  • 37317a2 Check nested weak types in intersections on target side of relation (#​51140)
  • 9f49f9c Update package-lock.json
  • 4f54e7e Fix isExhaustiveSwitchStatement to better handle circularities (#​51095)
  • 503604c Overloads shouldn't gain @​deprecated tags of other overloads in quick info (#​50904)
  • e14a229 Update package-lock.json
  • 67256e5 Remove unused declarations array in extractSymbol's TargetRange (#​51091)
  • 9c87ded fix(51100): ensure tsserver shuts down when parent process is killed (#​51107)
  • c01ae01 Fix nightly publish oops in Gulpfile (#​51131)
  • a7d10f1 Update package-lock.json
  • d0bfd8c fix(51072): ts.preProcessFile finds import in template string after conditional expression with template strings (#​51082)
  • ad56b5c Convert scripts/Gulpfile to checked mjs/cjs so they can run without compilation (#​50988)
  • dbeae5d fix(51017): Make lineText in the references response opt-out (#​51081)
  • d06a592 Properly defer resolution of mapped types with generic as clauses (#​51050)
  • 42b1049 Update package-lock.json
  • 5f3e6cc Plugin probe location is higher priority than peer node_modules (#​51079) [ #​34616 ]
  • 2648f6a Plugins in project were adding up after every config file reload (#​51087)
  • c18791c Fix incorrect options type to WatchOptions (#​51064)
  • b0795e9 Update package-lock.json
  • 43c6fd4 Covert some of the config testing to baselines for easy validation (#​51063)
  • fc5e72b Remove unused defaultWatchFileKind method since useFsEvents is default for tsserver and tsc (#​51044)
  • 8af9a93 Use typescript.d.ts in APISample tests (#​51061)
  • 4953316 Remove configureLanguageServiceBuild, instrumenter (#​51048)
  • 9dfffd0 Update GitHub Actions (#​51045)
  • 4635a5c Update package-lock.json
  • 33a34e5 Adding a JSDoc comment to the es5 type declarations to describe the functionality of Date.now() (#​50630)
  • 299745c Fix crash in goto-def on @override (#​51016)
  • 7dcf11f fix(50750): Object type literal with string literal property in contextual typing position causes language service error on all literal type references (#​50757)
  • 5cd49f6 Update package-lock.json
  • 8a1b858 Update package-lock.json
  • 96894db Include type parameter defaults in contextual typing (#​50994) [ #​51002 ]
  • 0d0a793 Allow Unicode extended escapes in ES5 and earlier (#​50918)
  • 58bae8d Update package-lock.json
  • 0ce72ef Add option to OrganizeImports for removal only (#​50931)
  • 42f9143 feat: codefix for for await of (#​50623)
  • ecf50e8 Properly compute SymbolFlags.Optional for intersected properties (#​50958)
  • d1586de Fully resolve aliases when checking symbol flags (#​50853)
  • 45148dd Update LKG to 4.8.4 (#​50987)
  • 9a83f25 Update package-lock.json
  • 865848f Fix <= and > comparisons when compared against prerelease versions (#​50915)
  • fbfe934 Fix comparability between type parameters related by a union constraint (#​50978)
  • b09e93d Merge pull request #​50041 from microsoft/fix/47969
  • 0ac12bb Update package-lock.json
  • 8192d55 Pick correct compilerOptions when checking if we can share emitSignatures (#​50910) [ #​50902 ]
  • 16faef1 During uptodate ness check with buildInfo, check if there are errors explicitly with noEmit (#​50974) [ #​50959 ]
  • 63791f5 Update package-lock.json
  • 09368bc Handle if project for open file will get recollected because of pending cleanup from closed script info (#​50908) [ #​50868 ]
  • c81bf4d fix(49594): Typescript 4.7.3 bracketed class property compilation error strictPropertyInitialization:true (#​49619)
  • bc9cbbe Merge pull request #​49912 from microsoft/fix/47508
  • 5a10f46 Update package-lock.json
  • 8e71f42 Fixing pr comments
  • c100c64 Update package-lock.json
  • 2a91107 Update package-lock.json
  • 4ab9e76 Use paths in package.json 'files' array that work with npm 6 and later. (#​50930)
  • 549b542 Use paths in package.json 'files' array that work with npm 6 and later.
  • 7f37d25 Update version to 4.9.1-beta and LKG.
  • f16ca7d Remove 'async' dependency, used only in errorCheck.ts, modernize file (#​50667)
  • c6bef3f LEGO: Merge pull request 50921
  • 6753027 Update package-lock.json
  • 9740bcc Pluralized hasInvalidatedResolution -> hasInvalidatedResolutions (#​50912)
  • 84c29cd 🤖 Pick PR #​50912 (Pluralized `hasInvalidatedResolutio...) into release-4.9 (#​50913)
  • a26f634 Merge remote-tracking branch 'origin/main' into release-4.9
  • a455955 Make hasInvalidatedResolution non internal for program and add it watchApi (#​50776) [ #​48057 ]
  • 645d1cd Fix assert in addIndirectUser in FAR (#​50905)
  • bbec17d LEGO: Merge pull request 50900
  • a9ecc67 Update package-lock.json
  • 221cf55 package.json exports should have priority over typesVersions (#​50890)
  • acb8977 Remove .github/tsc.json (#​50664)
  • 7a3de81 fix(49993): skip the quick fix for an expression with an enum type (#​50625)
  • 2644f28 fix(49200): skip duplicated method declarations (#​50609)
  • 98652a3 Bump version to 4.9.0-beta and LKG.
  • 4d91204 fix(37030): Expand Selection in function and arrow function skips body block (#​50711)
  • e2dd508 DOM update 2022/09/21 (#​50884)
  • 1d9ab83 fix(50866): emit modifiers from export declarations (#​50874)
  • 92a1b12 LEGO: Merge pull request 50877
  • e383db6 Fix debug.ts __debugKind check (#​50871)
  • 01054e0 Consistently add undefined/missing to optional tuple element types (#​50831)
  • d90795e Improve escape sequence handling in private names (#​50856)
  • 938a69a Fix import statement completions followed by interface declaration (#​50350)
  • e002159 feat(49962): Disallow comparison against NaN (#​50626)
  • 80ae43d Fixing spaces
  • abc58bd Fixing baseline errors
  • 305f4bd Merge branch 'main' into fix/47969
  • 23746af fix(50591): RangeError: Maximum call stack size exceeded (#​50594)
  • 168186f Allow a union property of a private/protected member and an intersection property including that same member (#​50328)
  • 812ebcf Update package-lock.json
  • 16156b1 Add rules from eslint's recommended set that triggered good lints (#​50422)
  • a11c416 Improve checking of in operator (#​50666)
  • 67f2b62 Gabritto/jsemitfixsilly (#​50849)
  • 3014dec Don't elide imports when transforming JS files (#​50404)
  • 57c7aa7 LEGO: Merge pull request 50842
  • 48a8e89 Improve check of whether type query node possibly contains reference to type parameter (#​50070)
  • af9ced1 LEGO: Merge pull request 50825
  • a8e13f7 Fixed an issue with destructured bindings from a generic union constraint not being narrowed correctly (#​50221)
  • 08af0b6 Update package-lock.json
  • 0df46e8 Fix test around RegExp match vs. exec results (#​50813)
  • 906510e Fixes for pr
  • 2970c5d make RegExpExecArray always include index 0 (#​50713)
  • 0507192 Accepting baselines
  • 29e50b3 Rewording documentation
  • 01cae69 fix(50796): omit questionToken in object literal method completions (#​50802)
  • 3b84f76 Fix crash caused by incorrect bounds check (regression in 4.8) ([#​50797](https:/

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (squash) October 30, 2023 02:00
@renovate renovate bot force-pushed the renovate/devdependencies branch 13 times, most recently from bcba0f7 to 2a7e398 Compare November 6, 2023 16:43
@renovate renovate bot force-pushed the renovate/devdependencies branch 2 times, most recently from 00f509b to c77e668 Compare November 7, 2023 22:40
@renovate renovate bot merged commit ec31e84 into main Dec 4, 2023
6 checks passed
@renovate renovate bot deleted the renovate/devdependencies branch December 4, 2023 16:14
Copy link

Released in v3.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants