Skip to content

Commit

Permalink
fix: #57 issue (#58)
Browse files Browse the repository at this point in the history
* fix: #57 issue
  • Loading branch information
vitalics authored Aug 10, 2024
1 parent 539d22f commit 7d7e891
Show file tree
Hide file tree
Showing 11 changed files with 420 additions and 84 deletions.
22 changes: 19 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,25 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- JS runtime (Node.js / Bun / Deno)[e.g. Bun 1.0.0]
- Version [e.g. 0.1.1]
**System info (please complete the following information):**

- JS runtime with version(Node.js / Bun / Deno). E.g. Bun 1.0.0
<!-- nodejs: `node -v` -->
<!-- bun: `bun -v` -->
<!-- deno: `deno -v` -->
- package manager with version (Bun / npm / yarn / pnpm). E.g. Bun 1.0.0
- Ajv-ts version
- from package.json
- from lock file (package-lock.json / yarn.lock / pnpm-lock.yaml)
- System info
<!-- macos. System info: `system_profiler SPHardwareDataType` -->
<!-- macos. OS info: `sw_vers` -->
<!-- linux. Disto info: `lsb_release -a` -->
<!-- linux. CPU info: `lscpu` -->
<!-- linux. General Info: `uname -a` -->
<!-- windows. General Info: `systeminfo` -->
<!-- windows. CPU Info: `wmic cpu get name, currentclockSpeed, maxClockSpeed
` -->

**Additional context**
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ CONTRIBUTING.md
CHANGELOG.md
UPCOMING.md
SECURITY.md
vitest*
47 changes: 22 additions & 25 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,29 @@
"version": "0.2.0",
"configurations": [
{
"type": "bun",
"name": "tsx",
"type": "node",
"request": "launch",
"name": "Debug Bun",
// The path to a JavaScript or TypeScript file to run.
// Debug current file in VSCode
"program": "${file}",
// The arguments to pass to the program, if any.
"args": [],
// The working directory of the program.
"cwd": "${workspaceFolder}",
// The environment variables to pass to the program.
"env": {},
// If the environment variables should not be inherited from the parent process.
"strictEnv": false,
// If the program should be run in watch mode.
// This is equivalent to passing `--watch` to the `bun` executable.
// You can also set this to "hot" to enable hot reloading using `--hot`.
"watchMode": false,
// If the debugger should stop on the first line of the program.
"stopOnEntry": false,
// If the debugger should be disabled. (for example, breakpoints will not be hit)
"noDebug": false,
// The path to the `bun` executable, defaults to your `PATH` environment variable.
"runtime": "bun",
// The arguments to pass to the `bun` executable, if any.
// Unlike `args`, these are passed to the executable itself, not the program.
"runtimeArgs": [],
},
/*
* Path to tsx binary
* Assuming locally installed
*/
"runtimeExecutable": "tsx",
/*
* Open terminal when debugging starts (Optional)
* Useful to see console.logs
*/
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
// Files to exclude from debugger (e.g. call stack)
"skipFiles": [
// Node.js internal core modules
"<node_internals>/**",
// Ignore all dependencies (optional)
"${workspaceFolder}/node_modules/**",
],
}
]
}
23 changes: 20 additions & 3 deletions UPCOMING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# 0.8
# x.x.x

features:
Fixes:

- Benhmark
- Issue [#57](https://github.com/vitalics/ajv-ts/issues/57) - `merge` construct schema with `undefined` fields.
- Extend don't update `def` property.
- Advanced TS type for `.array()` call.

Chore:

- remove benchmarks for now
- add more detailed bug report template

Infra:

- Configure vitest config file for testing and enable github actions reporter for CI
- Add `tsx` package for inspection.
- Update launch.json file for vscode debugger

Tests:

- add [#57](https://github.com/vitalics/ajv-ts/issues/57) issue test for `object` type.
46 changes: 0 additions & 46 deletions bench/benchmark.ts

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"eslint-plugin-import": "2.25.2",
"eslint-plugin-n": "15.0.0",
"tsup": "8.1.0",
"tsx": "4.17.0",
"typescript": "5.5.3",
"vitest": "1.6.0"
},
Expand Down
Loading

0 comments on commit 7d7e891

Please sign in to comment.