Skip to content

Releases: podium-lib/client

v5.0.0-next.5

28 Jul 11:31

Choose a tag to compare

v5.0.0-next.5 Pre-release
Pre-release

5.0.0-next.5 (2020-07-28)

Features

  • Use ES private properties instead of Symbols and defineProperty for privacy (#131) (2787a6c)

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

16 Jul 21:58

Choose a tag to compare

v5.0.0-next.4 Pre-release
Pre-release

5.0.0-next.4 (2020-07-16)

Features

  • Remove deprecated 'change' and 'dispose' events (#129) (449fff1)

BREAKING CHANGES

  • This removes the deprecated change and dispose events.

Resolves: podium-lib/issues#24

  • chore: lint love

Co-authored-by: Trygve Lie [email protected]

v5.0.0-next.3

16 Jul 08:46

Choose a tag to compare

v5.0.0-next.3 Pre-release
Pre-release

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 resolveJs and resolveCss arguments when registering a podlet.

Resolves: podium-lib/issues#25

Co-authored-by: Trygve Lie [email protected]

v5.0.0-next.2

12 Jul 15:42

Choose a tag to compare

v5.0.0-next.2 Pre-release
Pre-release

5.0.0-next.2 (2020-07-12)

Features

BREAKING CHANGES

  • Only support node 12 and 14.

v5.0.0-next.1

12 Jul 10:12

Choose a tag to compare

v5.0.0-next.1 Pre-release
Pre-release

5.0.0-next.1 (2020-07-12)

Features

  • Make HttpIncoming required first argument to .fetch() and .stream() (9b80ee7)

BREAKING CHANGES

  • HttpIncoming must now be passed as the first argument to .fetch() and .stream()