diff --git a/Makefile b/Makefile index 2d72646..d20f014 100644 --- a/Makefile +++ b/Makefile @@ -12,14 +12,14 @@ test: .PHONY:lint lint: - npx eslint --quiet 'src/**/*.ts' 'test/**/*.ts' + npx eslint --quiet 'src/**/*.ts*' 'test/**/*.ts*' .PHONY:lint-fix lint-fix: fix .PHONY:fix fix: - npx eslint --quiet 'src/**/*.ts' 'test/**/*.ts' --fix + npx eslint --quiet 'src/**/*.ts*' 'test/**/*.ts*' --fix .PHONY:watch watch: diff --git a/changelog.md b/changelog.md index 8b4c1fc..393f1f1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,13 @@ Changelog ========= +1.1.1 (2024-02-01) +------------------ + +* HAL/Siren forms that have method=GET no longer add a CSRF token or an enctype + attribute. + + 1.1.0 (2024-01-24) ------------------ diff --git a/package-lock.json b/package-lock.json index a6da316..dd8bbb8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@curveball/browser", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@curveball/browser", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "dependencies": { "@curveball/static": "^1", diff --git a/package.json b/package.json index f398e75..780741b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@curveball/browser", - "version": "1.1.0", + "version": "1.1.1", "description": "Automatic API browser generator. A middleware that turns your JSON responses into HTML if accessed by a browser.", "type": "module", "exports": "./dist/index.js", diff --git a/src/components/forms/ketting-action-button.tsx b/src/components/forms/ketting-action-button.tsx index ce82397..7bd6dad 100644 --- a/src/components/forms/ketting-action-button.tsx +++ b/src/components/forms/ketting-action-button.tsx @@ -19,11 +19,19 @@ type FieldProps = { export function ButtonForm(props: FormProps) { const action = props.action; - return
; + const fields = action.fields.map( field =>