Skip to content

Commit

Permalink
Undef coerce (#247)
Browse files Browse the repository at this point in the history
* Remove null and undefined coercion

* fix ci
  • Loading branch information
lucasavila00 authored Dec 18, 2024
1 parent 7091652 commit 54a07f0
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 19 deletions.
3 changes: 0 additions & 3 deletions e2e-tests/bug-rust-repro/src/generated/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,6 @@ function decodeNull(ctx, input, required) {
if (!required && input == null) {
return input;
}
if (input == "null" || input == "undefined") {
return null;
}
if (input == null) {
return null;
}
Expand Down
8 changes: 8 additions & 0 deletions e2e-tests/standalone-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# node-server

## 1.0.63

### Patch Changes

- Updated dependencies
- @beff/cli@0.0.66
- @beff/client@0.0.66

## 1.0.62

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/standalone-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "standalone-parser",
"version": "1.0.62",
"version": "1.0.63",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 0 additions & 3 deletions e2e-tests/standalone-parser/src/generated/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,6 @@ function decodeNull(ctx, input, required) {
if (!required && input == null) {
return input;
}
if (input == "null" || input == "undefined") {
return null;
}
if (input == null) {
return null;
}
Expand Down
6 changes: 6 additions & 0 deletions packages/beff-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @beff/cli

## 0.0.66

### Patch Changes

- remove null and undefined string coercion

## 0.0.64

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/beff-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@beff/cli",
"version": "0.0.65",
"version": "0.0.66",
"description": "",
"bin": {
"beff": "./bin/index.js"
Expand Down
8 changes: 8 additions & 0 deletions packages/beff-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @beff/client

## 0.0.66

### Patch Changes

- remove null and undefined string coercion
- Updated dependencies
- @beff/cli@0.0.66

## 0.0.65

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/beff-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@beff/client",
"version": "0.0.65",
"version": "0.0.66",
"description": "",
"main": "dist/cjs/index.js",
"scripts": {
Expand All @@ -20,7 +20,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@beff/cli": "workspace:^0.0.65",
"@beff/cli": "workspace:^0.0.66",
"zod": "^3.23.5"
},
"devDependencies": {
Expand Down
3 changes: 0 additions & 3 deletions packages/beff-wasm/bundled-code/decoders.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,6 @@ function decodeNull(ctx, input, required) {
if (!required && input == null) {
return input;
}
if (input == "null" || input == "undefined") {
return null;
}
if (input == null) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,6 @@ function decodeNull(ctx, input, required) {
if (!required && input == null) {
return input;
}
if (input == "null" || input == "undefined") {
return null;
}
if (input == null) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/beff-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@babel/code-frame": "^7.22.13",
"@beff/cli": "workspace:^0.0.65",
"@beff/cli": "workspace:^0.0.66",
"@types/babel__code-frame": "^7.0.4",
"@types/node": "^20.6.2",
"@types/vscode": "^1.73.0",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 54a07f0

Please sign in to comment.