Skip to content

Commit

Permalink
[ci] release (#63)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Sep 10, 2024
1 parent 9a62d94 commit 39b7595
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 41 deletions.
30 changes: 0 additions & 30 deletions .changeset/chilled-seahorses-serve.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fair-dolls-lick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/green-impalas-occur.md

This file was deleted.

36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# ajv-ts

## 0.8.0

### Minor Changes

- 9a62d94: Make [strict numbers](#strict-numbers)

### Strict numbers

We make validation for number `type`, `format`, `minValue` and `maxValue` fields. That means we handle it in our side so you get an error for invalid values.

Examples:

```ts
s.number().format("float").int(); // error in type!
s.int().const(3.4); // error in type!
s.number().int().format("float"); // error in format!
s.number().int().format("double"); // error in format!

// ranges are also check for possibility

s.number().min(5).max(3); // error in range!
s.number().min(3).max(5).const(10); // error in constant - out of range!
```

## 🏡 Chore/Infra

- add [type-fest](https://www.npmjs.com/package/type-fest) library for correct type checking
- add [tsx](https://www.npmjs.com/package/tsx) package
- add minified files for cjs and esm modules in `dist` folder
- remove `bun-types` dependency

### Patch Changes

- 37a7b1d: fix #61
- 0f787a7: add example in meta object. Closes #64

## 0.7.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ajv-ts",
"description": "JSON-schema builder with typescript safety",
"version": "0.7.1",
"version": "0.8.0",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 39b7595

Please sign in to comment.