Skip to content

Releases: alphapapa/plz.el

v0.8

26 Apr 01:23
v0.8
Compare
Choose a tag to compare

Additions

  • Function plz now accepts a :filter argument which can be used to override the default process filter (e.g. for streaming responses). (#43, #50. Thanks to Roman Scherer.)

v0.7

09 Jul 19:48
v0.7
Compare
Choose a tag to compare

Changes

  • A new error signal, plz-error, is defined. The existing signals, plz-curl-error and plz-http-error, inherit from it, so handling plz-error catches both.

    NOTE: The existing signals, plz-curl-error and plz-http-error, are hereby deprecated, and they will be removed in v0.8. Applications should be updated while using v0.7 to only expect plz-error.

Fixes

  • Significant improvement in reliability by implementing failsafes and workarounds for Emacs's process-handling code. (See #3.)
  • STDERR output from curl processes is not included in response bodies (which sometimes happened, depending on Emacs's internal race conditions). (Fixes #23.)
  • Use with-local-quit for synchronous requests (preventing Emacs from complaining sometimes). (Fixes #26.)
  • Various fixes for :as 'buffer result type: decode body when appropriate; unset multibyte for binary; narrow to body; don't kill buffer prematurely.
  • When clearing a queue, don't try to kill finished processes.

Internal

  • Response processing now happens outside the process sentinel, so any errors (e.g. in user callbacks) are not signaled from inside the sentinel. (This avoids the 2-second pause Emacs imposes in such cases.)
  • Tests run against a local instance of httpbin (since the httpbin.org server is often overloaded).
  • No buffer-local variables are defined anymore; process properties are used instead.

v0.6

14 Jun 13:48
v0.6
Compare
Choose a tag to compare

Additions

  • Function plz’s :body argument now accepts a list like (file FILENAME) to upload a file from disk (by passing the filename to curl, rather than reading its content into Emacs and sending it to curl through the pipe).

Fixes

  • Function plz’s docstring now mentions that the :body argument may also be a buffer (an intentional feature that was accidentally undocumented).
  • Handle HTTP 3xx redirects when using :as 'response.

v0.5.3

15 Apr 22:41
v0.5.3
Compare
Choose a tag to compare

0.5.3

Fixes

  • Move new slot in plz-queue struct to end to prevent invalid byte-compiler expansions for already-compiled applications (which would require them to be recompiled after upgrading plz).

0.5.2

Fixes

  • When clearing a queue, only call plz-queue’s finally function when specified.

0.5.1

Fixes

  • Only call plz-queue’s finally function when specified. (Thanks to Dan Oriani for reporting.)

0.5

Additions

  • Struct plz-queue’s finally slot, a function called when the queue is finished.

v0.4

17 Mar 02:44
v0.4
Compare
Choose a tag to compare

Additions

  • Support for HTTP HEAD requests. (Thanks to USHIN, Inc. for sponsoring.)

Changes

  • Allow sending POST and PUT requests without bodies. (#16. Thanks to Joseph Turner for reporting. Thanks to USHIN, Inc. for sponsoring.)

Fixes

  • All 2xx HTTP status codes are considered successful. (#17. Thanks to Joseph Turner for reporting. Thanks to USHIN, Inc. for sponsoring.)
  • Errors are signaled with error data correctly.

Internal

  • Test suite explicitly tests with both HTTP/1.1 and HTTP/2.
  • Test suite also tests with Emacs versions 27.2, 28.1, and 28.2.

0.2

17 Jul 14:31
0.2
Compare
Choose a tag to compare
0.2
Release: 0.2

0.1

09 May 16:42
0.1
Compare
Choose a tag to compare
0.1
Release: 0.1