Releases: podium-lib/client
Releases · podium-lib/client
v5.0.0-next.5
5.0.0-next.5 (2020-07-28)
Features
BREAKING CHANGES
- Due to dropping node 10.x support we use ES private properties instead of Symbols and
.defineProperty().
We've been using Symbols and .defineProperty() to define private properties in classes up until now. This has the downside that they are not true private and in later versions of node.js one would see these Symbols when inspecting an object. What we want is proper private properties.
This PR does also add a pretty printer which outputs an object literal or the object so when debugging one can see the getters and setters of the object.
Example: printing a object with console.log() would previously print the following:
PodiumClientResponse {
[Symbol(podium:client:response:redirect)]: '',
[Symbol(podium:client:response:content)]: '',
[Symbol(podium:client:response:headers)]: {},
[Symbol(podium:client:response:css)]: [],
[Symbol(podium:client:response:js)]: []
}Now the following will be printed:
{
redirect: '',
content: '',
headers: {},
css: [],
js: []
}Co-authored-by: Trygve Lie [email protected]
v5.0.0-next.4
5.0.0-next.4 (2020-07-16)
Features
BREAKING CHANGES
- This removes the deprecated
changeanddisposeevents.
Resolves: podium-lib/issues#24
- chore: lint love
Co-authored-by: Trygve Lie [email protected]
v5.0.0-next.3
5.0.0-next.3 (2020-07-16)
Features
BREAKING CHANGES
- Remove .js() and .css() methods to retrieve fetched js and css for all podlets. Also removes the
resolveJsandresolveCssarguments when registering a podlet.
Resolves: podium-lib/issues#25
Co-authored-by: Trygve Lie [email protected]
v5.0.0-next.2
5.0.0-next.2 (2020-07-12)
Features
- Drop node 10.x support (a71c3b0)
BREAKING CHANGES
- Only support node 12 and 14.
v5.0.0-next.1
5.0.0-next.1 (2020-07-12)
Features
- Make HttpIncoming required first argument to .fetch() and .stream() (9b80ee7)
BREAKING CHANGES
HttpIncomingmust now be passed as the first argument to .fetch() and .stream()