next-runtime

All you need to handle POST requests, file uploads, and api requests, in Next.js getServerSideProps.

MIT License

Downloads
1.2K
Stars
591
Committers
7

Bot releases are visible (Hide)

next-runtime - Latest Release

Published by smeijer over 2 years ago

  • chore: be more specific about type deps 4ee1004
  • chore: remove console.log 51698e2
  • test: wrap click events with request interceptors c399e71
  • docs: document the multiple-forms-per-page case d68069e
  • chore: widen the sidebar dcbfcf6
  • docs: drop 'The' 2a1012a

https://github.com/smeijer/next-runtime/compare/v2.4.0...v2.4.1

next-runtime -

Published by smeijer over 2 years ago

  • chore: build in ts strict mode be3885b
  • feat: include button name=value in submitted formdata (#64) 72e898c

https://github.com/smeijer/next-runtime/compare/v2.3.6...v2.4.0

next-runtime -

Published by smeijer over 2 years ago

  • chore: improve return type for middleware next handler (#52) 256d6c1

https://github.com/smeijer/next-runtime/compare/v2.3.5...v2.3.6

next-runtime -

Published by smeijer over 2 years ago

  • chore: import next types from 'next' (#56) e5d6fe0

https://github.com/smeijer/next-runtime/compare/v2.3.4...v2.3.5

next-runtime - v2.3.4

Published by smeijer over 2 years ago

  • fix: properly handle redirects when using middleware ef8f21a
  • fix: type error for ref on Form component (#47) 40a8d83

https://github.com/smeijer/next-runtime/compare/v2.3.2...v2.3.4

next-runtime -

Published by smeijer almost 3 years ago

  • fix: separate res.write and res.end for Nextjs 12 support (#45) 0a63fd6

https://github.com/smeijer/next-runtime/compare/v2.3.1...v2.3.2

next-runtime -

Published by smeijer almost 3 years ago

  • fix: support redirect in Nextjs 12 (#44) e00c817

https://github.com/smeijer/next-runtime/compare/v2.3.0...v2.3.1

next-runtime -

Published by smeijer almost 3 years ago

  • refactor: move submit logic into form store + multiple files (#38) 2e79c53

https://github.com/smeijer/next-runtime/compare/v2.2.0...v2.3.0

next-runtime -

Published by smeijer almost 3 years ago

  • docs: add @umar-ahmed as a contributor for code (#42) 5b15db9
  • feat: add isFetchError type guard (#41) 111a48f
  • feat: add cookies instance to the context (#37) 7bb5e01

https://github.com/smeijer/next-runtime/compare/v2.1.0...v2.2.0

next-runtime -

Published by smeijer about 3 years ago

  • feat: add support for middleware (#32) 69f5fa2
  • docs: use form in primary examples (#36) 30de03c
  • feat: add onSuccess and onError callbacks to Form(#34) 4c24fe8

https://github.com/smeijer/next-runtime/compare/v2.0.2...v2.1.0

next-runtime -

Published by smeijer about 3 years ago

  • fix: use current location as base url for form action (#27) 421fa76
  • chore: enable typescript strict mode 9bee117

https://github.com/smeijer/next-runtime/compare/v2.0.1...v2.0.2

next-runtime -

Published by smeijer about 3 years ago

  • docs: increase size of sidebar toggle 6f89cbb
  • fix: response.req can be undefined d6301c7

https://github.com/smeijer/next-runtime/compare/v2.0.0...v2.0.1

next-runtime -

Published by smeijer about 3 years ago

  • docs: document response throwing 9fd4e76
  • docs: document withNextRuntime 47cfe10
  • docs: update form and hook documentation aa6c865
  • feat: support Response throwing (#26) 021d852
  • fix: make notFound() and redirect() return never (#25) d31dbe1
  • feat: rewrite of Form component and useFormSubmit hook (#22) 5bcd03d
  • fix: include content-type header on redirects 8be6491
  • docs: improve contributing docs 3e9799f
  • docs: add @itsMapleLeaf as a contributor for test (#13) b3d656a

https://github.com/smeijer/next-runtime/compare/v1.3.0...v2.0.0

next-runtime -

Published by smeijer about 3 years ago

  • feat: support client side redirects in Form component (#12) 2f41c18
  • docs: expand documentation of response helpers ee5c7c5
  • refactor: use custom header instead of next_type prop 168b024
  • docs: document patch, put, and delete methods cbf27f9

https://github.com/smeijer/next-runtime/compare/v1.2.0...v1.3.0

next-runtime -

Published by smeijer about 3 years ago

  • test: add test for json status params (#9) 80817de
  • test: run tests on github actions (#8) 672a648
  • fix: typescript type for patch, put and delete methods 9641a85
  • docs: add @itsMapleLeaf as a contributor for code (#7) dbccd6e
  • feat: support patch, put and delete methods (#6) d02e060
  • refactor: return Response from response utilities f1a5e32
  • docs: prettify 5ae488e
  • docs: replace validate with onSubmit 37d3687
  • docs: add section for /docs f33be5b

https://github.com/smeijer/next-runtime/compare/v1.1.0...v1.2.0

next-runtime -

Published by smeijer about 3 years ago

  • breaking refactor: remove Form#validate, use Form#onSubmit instead cc2070f

  • chore: fix build script 4ed2023
  • chore: add np as dev dep ed9f357
  • chore: don't use 2fa for npm publish 61f37ab
  • feat: support all attributes on Form, including ref and onSubmit 3435565
  • test: disable playwright debug mode 4b0f043
  • test: add end-to-end tests using playwright e7972eb
  • test: improve test server teardown 907889d
  • test: add basic tests for Form component 39d872b
  • test: move test server to utils folder 2d1dd7c
  • test: add bunch of tests 21d8785
  • fix: notFound type can only be true 94b4613
  • fix: the get and post handlers are both optional 4bc301c
  • fix: make all errors have the same signature 43e9ac5
  • docs: add accept header to curl request 42f605a
  • docs: add credits and mention remix 3358231
  • docs: make sidebar scroll separately ed3f621
  • docs: add social links to sidebar d62fe4a
  • docs: add @schniz as a contributor for doc (#2) 7339f81
  • docs: use the Form component instead of the html tag form (#1) a6b8d1e
  • docs: add license file 4d20c5a
  • docs: fix "edit on github" link 17557b5

https://github.com/smeijer/next-runtime/compare/v1.0.0...v1.1.0

next-runtime -

Published by smeijer about 3 years ago

  • docs: improve social title 009f823
  • docs: fix page title capitalization 2b7ff0c
  • docs: add open graph data 51eb01a

https://github.com/smeijer/next-runtime/compare/v0.4.0...v1.0.0

next-runtime -

Published by smeijer about 3 years ago

  • docs: jsx and capitalization. 7aa58f8
  • docs: add @smeijer as a contributor dbc30a8
  • chore: init all-contributors c370ca6
  • docs: update readme 2981780

https://github.com/smeijer/next-runtime/compare/v0.3.0...v0.4.0

next-runtime -

Published by smeijer about 3 years ago

  • feat: enable async hooks for node > 16.4 2acfee8
  • chore: improve property documentation ac8e8b6
  • fix: switch accept order to restore shallow form updates 6a86f94
  • chore: add docs 8119677

https://github.com/smeijer/next-runtime/compare/v0.2.1...v0.3.0

next-runtime -

Published by smeijer about 3 years ago

  • revert: "feat: allow handlers to narrow props type" a47bcd2

https://github.com/smeijer/next-runtime/compare/v0.2.0...v0.2.1