v0.4
What's new
Improvements around error handling and other small improvements.
Breaking changes
- Endpoints now live at
const { server } = require('@wildcard-api/server');andimport { server } from '@wildcard-api/client';(Instead ofconst { endpoints } = require('@wildcard-api/server');andimport { endpoints } from '@wildcard-api/client';.) - Config now lives at
const { config } = require('@wildcard-api/server');andimport { config } from '@wildcard-api/client';(Instead ofconst wildcardServer = require('@wildcard-api/server');andimport wildcardClient from '@wildcard-api/client';.) - Endpoints that return
undefinedwill stayundefinedon the other end (instead of being changed tonull). - The browser-side error flags
isServerErrorandisNetworkErrorare renamed toisCodeErrorandisConnectionError. 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.