Skip to content

Releases: curveball/core

v1.0.0

15 Jan 01:32
cc29aa2
Compare
Choose a tag to compare
  • Finally! Curveball v1. Only took 6 years.
  • CommonJS support has been dropped. The previous version of this library
    supported both CommonJS and ESM. The effort of this no longer feels worth it.
    ESM is the future, so we're dropping CommonJS.
  • Now requires Node 18.

v0.21.1

17 Feb 19:20
a1ed5c6
Compare
Choose a tag to compare
  • Export server version string

v0.21.0

14 Feb 03:46
b1401d6
Compare
Choose a tag to compare
  • ESM support.
  • Dropped Node 14 support. Use Node 16 or later.

v0.20.0

03 Sep 21:04
1aab9d9
Compare
Choose a tag to compare

The Application class now has a fetch() function. This function lets you do an internal HTTP request with the standard Javascript Request and Response objects.

Most of @curveball/core logic has moved to @curveball/kernel, with the exception of any Node.js specific-code. This enables Curveball compatibility with Bun

v0.19.0

25 Apr 04:50
e4005a1
Compare
Choose a tag to compare
  • Now requires Node 14.
  • Application, Context, Request and Response now have a origin property. This defaults defaults to http://localhost. This can be overridden by setting Application.origin, or setting a CURVEBALL_ORIGIN environment variable. PUBLIC_URI also works, but it's mainly a fallback for earlier examples and recommendations.
  • Request and Context now have a absoluteUrl property. This is calculated based on the request path and the origin.
  • BC Break: Due to the new origin property, all Request and Response classes now have an extra constructor argument. This means if you ever manually constructed any of these, there's a small change you'll need to make. Typescript should point all these problems!
  • If CURVEBALL_TRUSTPROXY is set, request.ip() will trust proxies by default, and return the ip of the real client instead of the proxy.

v0.18.0

16 Apr 06:04
3c64813
Compare
Choose a tag to compare

This release is identical to the previous alpha version.

Changed in 0.18

  • The Context interface has been removed, and the BaseContext class is renamed to Context. This is a BC break, but should only be an issue if you used the Context interface directly. BaseContext is still exported but simply aliased to Context. This alias will be removed from a future version. This change should make it easier to use interface declaration merging to extend Context.
  • The ws dependency has been updated to version 8. There are some breaking changes in this release. The most likely you'll hit is that incoming messages are now of type Buffer instead of string. Check out the ws changelog for more details.

v0.17.0

09 Feb 02:05
1465bf5
Compare
Choose a tag to compare
  • listen() now starts a WebSocket service on the same port by default.
  • listenWs() is now deprecated, and will be removed in a future version.
  • JSON is now pretty-printed by default.

Happy birthday Mom!

v0.16.4

05 Jan 18:39
60811ec
Compare
Choose a tag to compare
  • Update all dependencies
  • Ensure compatibility with latest Typescript
  • Stricter linting

v0.16.3

07 May 14:50
Compare
Choose a tag to compare

Updated lint rules
Make file update
Updated dependencies

v0.16.2

18 Feb 23:18
17f624b
Compare
Choose a tag to compare

Releasing on github packages