UNPKG

@astro-utils/forms

Version:

Server component for Astro (call server functions from client side with validation and state management)

224 lines (223 loc) 5.52 kB
{ "name": "@astro-utils/forms", "version": "3.15.2", "description": "Server component for Astro (call server functions from client side with validation and state management)", "type": "module", "scripts": { "watch": "onchange 'src/**/*' -- npm run build", "build": "rm -r dist/*; tsc; mkdir dist/components; mkdir -p dist/integration/render; cp -r src/components/* dist/components/; cp -r src/integration/render/* dist/integration/render/; find dist/components/ -type f -name '*.ts' ! -name '*.d.ts' -delete", "prepack": "npm run build" }, "keywords": [ "ASPX", "astro", "astro-component", "forms", "react", "hooks", "validation", "astro-utils", "on-click", "on-submit", "server-components", "next.js", "zod" ], "funding": "https://github.com/sponsors/ido-pluto", "homepage": "https://withastro-utils.github.io/docs/", "author": "Ido S.", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/withastro-utils/utils.git" }, "bugs": { "url": "https://github.com/withastro-utils/utils/issues" }, "publishConfig": { "access": "public" }, "main": "./dist/index.js", "exports": { ".": "./dist/index.js", "./forms.js": "./forms.js", "./dist/settings.js": "./dist/settings.js", "./dist/integration.js": "./dist/integration.js" }, "files": [ "dist/*", "components/*", "README.md", "forms.ts", "LICENSE" ], "devDependencies": { "@types/cookie": "^0.5.1", "@types/formidable": "^2.0.5", "@types/fs-extra": "^11.0.4", "@types/jsonwebtoken": "^9.0.1", "@types/node": "^18.11.10", "@types/object-assign-deep": "^0.4.3", "@types/promise-timeout": "^1.3.3", "@types/react": "^18.2.45", "@types/uuid": "^9.0.1", "onchange": "^7.1.0", "semantic-release-commit-filter": "^1.0.2", "typescript": "^5.2.2", "vite": "^4.1.2" }, "dependencies": { "@astro-utils/context": "^1.1.15", "await-lock": "^2.2.2", "cookie": "^0.5.0", "csrf": "^3.1.0", "dot-prop": "^8.0.2", "fs-extra": "^11.2.0", "jsonwebtoken": "^9.0.0", "object-assign-deep": "^0.4.0", "snappy": "^7.2.2", "superjson": "^2.2.1", "uuid": "^9.0.0", "zod": "^3.19.1" }, "peerDependencies": { "astro": "^4.16.19" }, "release": { "extends": "semantic-release-commit-filter", "ci": true, "branches": [ "main", "master" ], "plugins": [ [ "@semantic-release/commit-analyzer", { "preset": "angular", "releaseRules": [ { "type": "bump", "release": "patch" }, { "breaking": true, "release": "major" }, { "revert": true, "release": "patch" }, { "type": "*!", "release": "major" }, { "type": "breaking", "release": "major" }, { "type": "docs", "scope": "README", "release": "patch" }, { "type": "refactor", "release": "patch" }, { "type": "style", "release": "patch" }, { "type": "types", "release": "patch" } ], "parserOpts": { "noteKeywords": [ "BREAKING CHANGE", "BREAKING CHANGES", "BREAKING" ] } } ], [ "@semantic-release/release-notes-generator", { "preset": "angular", "presetConfig": { "header": "Release Notes", "types": [ { "type": "feat", "section": "Features" }, { "type": "fix", "section": "Bug Fixes" }, { "type": "chore", "hidden": true }, { "type": "docs", "hidden": true }, { "type": "style", "hidden": true }, { "type": "refactor", "hidden": true }, { "type": "perf", "hidden": true }, { "type": "test", "hidden": true } ] }, "parserOpts": { "noteKeywords": [ "BREAKING CHANGE", "BREAKING CHANGES", "BREAKING" ] }, "writerOpts": { "commitsSort": [ "subject", "scope" ] } } ], "@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/github", [ "@semantic-release/git", { "assets": [ "CHANGELOG.md", "LICENSE" ] } ], [ "@semantic-release/exec", { "publishCmd": "npx -y semantic-release-npm-workspaces-monorepo cache ${nextRelease.version}" } ] ], "tagFormat": "@astro-utils/forms@${version}" } }