- 064c5fb: Fixes for new eslint config
- e5b15dc: Update TypeScript support to
v5.5.2
.
- 0382052: 1. All packages are now ES modules, although they should be compatible with CommonJS environments. 2. Adds entry points for projects that can consume
package.json#exports
, alongsidemain
.
- a247de9: Smaller source code
- c8c9634: Reduce code repetition, which may improve bundle size
- Update TS to version 5.3.3 and tslib to 2.6.2
-
e9ac438: Members of the
OphanAPIConfig
are now required. Consumers must pass a record function, an error reporter and an object of server-side tests.With the previously optional members, failure to record tests to Ophan would fail silently. This has been the case in
dotcom-rendering
since Oct 2023.In order to update your code to work identically, you must now provide the following keys to the constructor’s argument. They are listed here along with the fallbacks previously applied:
serverSideTests
→{}
errorReporter
→() => undefined
ophanRecord
→() => undefined
Note that
errorReporter
has also been narrowed and it now receives a single parameter, which is stillunknown
due to the fact than anything can be thrown.
- Update Typescript to v5.1.3 and tslib to v2.5.3
- Now requires TypeScript ~4.9.5 (if you use it with TypeScript).
- 1f8670f: Export CoreAPIConfig type
- c6366dd: Add
tslib@^2.4.1
to peerDependencies
- d6ff840: Published from CSNX and enforcing no unchecked indexed access.