Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@podium/utils

Package Overview
Dependencies
Maintainers
4
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@podium/utils - npm Package Versions

13
11

5.0.3

Diff

Changelog

Source

5.0.3 (2024-04-11)

Bug Fixes

  • ensure html-template lang attribute works in both layout and podlet (2545ac8)
trygve-bot
published 5.0.2 •

Changelog

Source

5.0.2 (2024-02-01)

Bug Fixes

  • validate inputs when passing both async and defer (#226) (dfb40d6)
trygve-bot
published 5.0.1 •

Changelog

Source

5.0.1 (2023-12-07)

Bug Fixes

  • deps: update dependency camelcase to v8 (4bb0483)
trygve-bot
published 5.0.0 •

Changelog

Source

5.0.0 (2023-11-28)

Bug Fixes

Features

BREAKING CHANGES

  • Convert from CommonJS to ESM

  • feat: convert to ESM

  • fix: Remove outcommented code

  • ci: Add build step for backward compat to CJS

  • ci: Ignore linting dist directory

Co-authored-by: Trygve Lie trygve.lie@finn.no

  • Due to dropping node 10.x support we use ES private properties instead of Symbols.

We've been using Symbols 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:

PodiumHttpIncoming {
  [Symbol(podium:httpincoming:development)]: false,
  [Symbol(podium:httpincoming:response)]: {},
  [Symbol(podium:httpincoming:request)]: {},
  [Symbol(podium:httpincoming:context)]: {},
  [Symbol(podium:httpincoming:params)]: {},
  [Symbol(podium:httpincoming:proxy)]: false,
  [Symbol(podium:httpincoming:name)]: '',
  [Symbol(podium:httpincoming:view)]: {},
  [Symbol(podium:httpincoming:url)]: {},
  [Symbol(podium:httpincoming:css)]: [],
  [Symbol(podium:httpincoming:js)]: []
}

Now the following will be printed:

{
  development: false,
  response: {},
  request: {},
  context: {},
  params: {},
  proxy: false,
  name: '',
  view: {},
  url: {},
  css: [],
  js: []
}

Co-authored-by: Trygve Lie trygve.lie@finn.no

  • Only support node 12 and 14.

Co-authored-by: Trygve Lie trygve.lie@finn.no

trygve-bot
published 5.0.0-next.10 •

Changelog

Source

5.0.0-next.10 (2023-11-20)

Bug Fixes

  • add missing functions to type definition (b260c4f)
  • correct typescript definitions for assets (6b39222)
  • correctly build lazy load script tag html when asset strategy is lazy (b1b2646)
  • deps: update dependency @podium/schemas to v4.1.33 (8036aa7)
  • deps: update dependency @podium/schemas to v4.1.34 (a86e661)
  • deps: update dependency @podium/schemas to v4.2.0 (be92192)
  • make AssetCss and AssetJs constructable for TS (f3f7fee)
  • mark params as optional (51d84da)

Features

  • add strategy and scope fields to AssetCss and AssetJs classes (5a8ecb1)
  • update default document template to use asset strategy (0688b03)
trygve-bot
published 4.5.1 •

Changelog

Source

4.5.1 (2023-11-19)

Bug Fixes

  • correctly build lazy load script tag html when asset strategy is lazy (b1b2646)
trygve-bot
published 4.5.0 •

Changelog

Source

4.5.0 (2023-11-16)

Features

  • add strategy and scope fields to AssetCss and AssetJs classes (5a8ecb1)
  • update default document template to use asset strategy (0688b03)
trygve-bot
published 4.4.42 •

Changelog

Source

4.4.42 (2023-11-16)

Bug Fixes

  • deps: update dependency @podium/schemas to v4.2.0 (be92192)
trygve-bot
published 4.4.41 •

Changelog

Source

4.4.41 (2023-10-19)

Bug Fixes

  • add missing functions to type definition (b260c4f)
trygve-bot
published 4.4.40 •

Changelog

Source

4.4.40 (2023-10-09)

Bug Fixes

  • make AssetCss and AssetJs constructable for TS (f3f7fee)
  • mark params as optional (51d84da)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc