Skip to content

v0.4

Choose a tag to compare

@brillout brillout released this 07 Oct 13:24
· 106 commits to master since this release

What's new

Improvements around error handling and other small improvements.

Breaking changes

  • Endpoints now live at const { server } = require('@wildcard-api/server'); and import { server } from '@wildcard-api/client'; (Instead of const { endpoints } = require('@wildcard-api/server'); and import { endpoints } from '@wildcard-api/client';.)
  • Config now lives at const { config } = require('@wildcard-api/server'); and import { config } from '@wildcard-api/client'; (Instead of const wildcardServer = require('@wildcard-api/server'); and import wildcardClient from '@wildcard-api/client';.)
  • Endpoints that return undefined will stay undefined on the other end (instead of being changed to null).
  • The browser-side error flags isServerError and isNetworkError are renamed to isCodeError and isConnectionError. The semantics changed slightly, see the new docs about error handling.

Should you encounter any issue upgrading to 0.4 then open a new issue.