@podium/client
Advanced tools
Changelog
5.0.0-next.6 (2020-10-06)
Changelog
5.0.0-next.5 (2020-07-28)
.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 trygve.lie@finn.no
Changelog
5.0.0-next.4 (2020-07-16)
change
and dispose
events.Resolves: https://github.com/podium-lib/issues/issues/24
Co-authored-by: Trygve Lie trygve.lie@finn.no
Changelog
5.0.0-next.3 (2020-07-16)
resolveJs
and resolveCss
arguments when registering a podlet.Resolves: https://github.com/podium-lib/issues/issues/25
Co-authored-by: Trygve Lie trygve.lie@finn.no
Changelog
5.0.0-next.2 (2020-07-12)
Changelog
5.0.0-next.1 (2020-07-12)
HttpIncoming
must now be passed as the first argument to .fetch() and .stream()