Skip to content

Commit

Permalink
Publish first stable release 0.1.0
Browse files Browse the repository at this point in the history
Stop minifying files published on NPM. I don't expect this
library to be consumed from a CDN directly, and this pattern
will make it easier for users to debug issues & read the source
  • Loading branch information
micahjon committed Dec 30, 2023
1 parent 558feb8 commit a404b1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog / Releases

## [0.1.0] - 2023-12-29

First stable release! No functionality changes.

- Publish JS to NPM without minification to make debugging easier downstream.

## [0.0.3-alpha.1] - 2023-11-10

- Add `useConditionalForm()` hook (drop-in replacement for `useForm()` that calls `pruneHiddenFields()` before validation)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "rhf-conditional-logic",
"version": "0.0.3-alpha.1",
"description": "Conditional Logic for React Hook Forms. Fully typed and compatible with resolvers (e.g. Zod)",
"version": "0.1.0",
"main": "./dist/rhf-conditional-logic.cjs",
"module": "./dist/rhf-conditional-logic.mjs",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module.exports = defineConfig({
formats,
fileName: (format) => fileName[format],
},
minify: false,
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
// into your library
Expand Down

0 comments on commit a404b1e

Please sign in to comment.