Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 24, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
arktype (source) 2.0.0-dev.12-cjs -> 2.0.2 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.2

Compare Source

v2.0.1

Compare Source

v2.0.0

Compare Source

Add .toJsonSchema to Type

Convert a Type instance to an equivalent JSON Schema. Will throw a ParseError if the Type contains constraints not supported by JSON Schema or morphs.

import { type } from "arktype"

const user = type({
	name: "string",
	"age?": "number"
})

const jsonSchema = user.toJsonSchema()
{
	"type": "object",
	"properties": {
		"name": {
			"type": "string"
		},
		"age": {
			"type": "number"
		}
	},
	"required": ["name"]
}
.readonly() chainable on object and array types

You can now chain .readonly() as follows:

const readonlyObj = type({ foo: "string", bar: "number" }).readonly()

type InferredAs = {
	readonly foo: string
	readonly bar: number
}

const readonlyObj = type("string[]").readonly()

type InferredAs = readonly string[]

There were also a few breaking changes- previous root keywords uppercase, lowercase, alphanumeric, alpha and digits were moved to the string submodule, and should now be accessed as string.alias.

There will be more aliases moving to their respective subtypes in the next release, after which point aliases will be stable for 2.0 🎉

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 24, 2025
@renovate renovate bot force-pushed the renovate/arktype-2.x branch 4 times, most recently from cce72c4 to 6e731e1 Compare January 24, 2025 17:56
@renovate renovate bot changed the title fix(deps): update dependency arktype to v2.0.1 fix(deps): update dependency arktype to v2.0.2 Jan 24, 2025
@renovate renovate bot force-pushed the renovate/arktype-2.x branch 3 times, most recently from 07360aa to 8a0efa4 Compare January 25, 2025 04:39
@renovate renovate bot force-pushed the renovate/arktype-2.x branch from 8a0efa4 to ee5e9f2 Compare January 25, 2025 08:28
@DarkGL DarkGL closed this Jan 25, 2025
@renovate
Copy link
Contributor Author

renovate bot commented Jan 25, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (2.0.2). 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.

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