Skip to content

Releases: amphp/http-server-form-parser

2.0.0

25 Aug 03:01
v2.0.0
6f16091
Compare
Choose a tag to compare

This release is compatible with amphp/http-server@^3.

  • Renamed BufferingParser and StreamingParser to FormParser and StreamingFormParser, respectively.
  • Removed the parseForm function in favor of the Form::fromRequest() static method.
  • Removed ParsingMiddleware. Use Form::fromRequest() instead.
  • Removed ParseException. Form parsing errors will throw an HttpErrorException from amphp/http-server instead, which do not need to be caught (the server will automatically return an error response).

2.0.0 Beta 3

22 Apr 15:39
v2.0.0-beta.3
4219379
Compare
Choose a tag to compare
2.0.0 Beta 3 Pre-release
Pre-release
  • Compatibility with amphp/http@v2

2.0.0 Beta 2

12 Nov 17:45
v2.0.0-beta.2
ec3a697
Compare
Choose a tag to compare
2.0.0 Beta 2 Pre-release
Pre-release
  • Added compatibility with Revolt v1.x
  • Fixed type error when the content boundary is null (#12)

2.0.0 Beta 1

30 Apr 16:34
v2.0.0-beta.1
Compare
Choose a tag to compare
2.0.0 Beta 1 Pre-release
Pre-release

Initial release compatible with AMPHP v3.

As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.

  • StreamingParser::parseForm now returns a Amp\Pipeline\ConcurrentIterator instead of an Amp\Iterator
  • File has been renamed to BufferedFile
  • BufferedFile and StreamedField now expose all headers associated with the field instead of select headers.

1.1.5

30 Apr 15:16
v1.1.5
b20cedb
Compare
Choose a tag to compare
  • Added methods parseBody, parseUrlEncodedBody, and parseMultipartBody to BufferingParser to parse request bodies that have already been buffered (#10)
  • Added parseContentBoundary function that returns the content boundary from a multipart header.

1.1.4

25 Mar 14:25
Compare
Choose a tag to compare
  • Fixed StreamingParser file upload handling. (#8)

1.1.3

08 Jan 21:50
Compare
Choose a tag to compare
  • Fixed bug related to empty filenames (#7)

1.1.2

21 Aug 16:19
e42593b
Compare
Choose a tag to compare

Allow amphp/http-server@^2

1.1.1

27 Jan 11:50
v1.1.1
Compare
Choose a tag to compare
  • Fixed parsing if the last parameter contains a '&' (#6)

1.1.0

09 Jan 22:15
v1.1.0
Compare
Choose a tag to compare
  • Added ParsingMiddleware storing the parsed form in the request's attributes for other middleware or request handlers to consume.
  • Improved parser.