Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 27, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
arktype (source) 2.0.0-dev.12-cjs -> 2.0.4 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

arktypeio/arktype (arktype)

v2.0.4

Compare Source

  • Fix an issue causing global configs to be overwritten when the primary "arktype" entry point is imported:

config.ts

import { configure } from "arktype/config"

configure({ numberAllowsNaN: true })

main.ts

import "./config.ts"
import { type } from "arktype"
// now correctly allows NaN
type.number.allows(Number.NaN)

Previous versions of the docs mistakenly suggested this was possible in a single file. This is not the case in ESM due to hoisting. See the updated global configuration docs here.

  • Better ParseError when attempting to constraint a morph

Previously, attempting to directly constrain a transformed type was not a type error but gave a confusing error at runtime:

// ParseError: MinLength operand must be a string or an array (was never)
type("string.trim > 2")

We've added a type error and improved the runtime error:

// TypeScript: To constrain the output of string.trim, pipe like myMorph.to('number > 0')
// ParseError: MinLength operand must be a string or an array (was a morph)
type("string.trim > 2")
  • Fix an issue causing certain complex morph types to not infer output correctly, e.g.:
const types = type.module({
	From: { a: ["1", "=>", () => 2] },
	Morph: ["From", "=>", e => e],
	To: { a: "2" }
})
const U = types.Morph.pipe(e => e, types.To)

// was:
//    (In: never) => To<{ a: 2 }>
// now fixed to:
//    { a: 2 }
const out = U.assert({ a: 1 })

v2.0.3

Compare Source

  • Fix an issue causing some unions with onUndeclaredKey: "reject" to reject valid data (#​1266)

  • Fix an issue where Types containing arrays were incorrectly treated as including morphs, leading to some unnecessary validation overhead (#​1268)

  • Fix an issue causing objects containing functions like () => never that are subtypes of InferredMorph to be incorrectly treated as morphs (#​1264)

  • Fail early with a ParseError if instanceOf operand is not actually a function at runtime (#​1262)

v2.0.2

Compare Source

  • Fix an issue where type-altering (currently config options numberAllowsNan, dateAllowsInvalid and onUndeclaredKey) could be specified at a scope-level, leading to unintuitive cache results (#​1255)

v2.0.1

Compare Source

  • Fix @ark/util version specifier

v2.0.0

Compare Source

  • Initial stable release 🎉

v2.0.0-rc.33

Compare Source

v2.0.0-rc.32

Compare Source

v2.0.0-rc.31

Compare Source

v2.0.0-rc.30

Compare Source

v2.0.0-rc.29

Compare Source

v2.0.0-rc.28

Compare Source

v2.0.0-rc.27

Compare Source

v2.0.0-rc.26

Compare Source

v2.0.0-rc.25

Compare Source

v2.0.0-rc.24

Compare Source

v2.0.0-rc.23

Compare Source

v2.0.0-rc.22

Compare Source

v2.0.0-rc.21

Compare Source

v2.0.0-rc.18

Compare Source

v2.0.0-rc.17

Compare Source

v2.0.0-rc.16

Compare Source

v2.0.0-rc.15

Compare Source

v2.0.0-rc.14

Compare Source

v2.0.0-rc.13

Compare Source

v2.0.0-rc.12

Compare Source

v2.0.0-rc.11

Compare Source

v2.0.0-rc.10

Compare Source

v2.0.0-rc.9

Compare Source

v2.0.0-rc.8

Compare Source

v2.0.0-rc.7

Compare Source

v2.0.0-rc.6

Compare Source

v2.0.0-rc.5

Compare Source

v2.0.0-rc.4

Compare Source

v2.0.0-rc.3

Compare Source

v2.0.0-rc.2

Compare Source

v2.0.0-rc.1

Compare Source

v2.0.0-rc.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovatebot label Jan 27, 2025
@renovate renovate bot force-pushed the renovate/arktype-2.x branch 12 times, most recently from 5ffe628 to f181394 Compare January 29, 2025 01:03
@renovate renovate bot force-pushed the renovate/arktype-2.x branch from f181394 to 31480aa Compare January 29, 2025 04:38
@renovate renovate bot changed the title fix(deps): update dependency arktype to v2.0.3 fix(deps): update dependency arktype to v2.0.4 Jan 29, 2025
@DarkGL DarkGL closed this Jan 29, 2025
@renovate
Copy link
Contributor Author

renovate bot commented Jan 29, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (2.0.4). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/arktype-2.x branch January 29, 2025 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants