@podium/podlet 5.0.0-next.8 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +4 -4
- package/lib/podlet.js +675 -124
- package/package.json +24 -21
- package/types/podlet.d.ts +662 -0
- package/index.d.ts +0 -114
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## [5.0.1](https://github.com/podium-lib/podlet/compare/v5.0.0...v5.0.1) (2023-12-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update types to match ESM export ([a25608a](https://github.com/podium-lib/podlet/commit/a25608a2c9ac0fec9c3c3271a5423bdb118b29f6))
|
|
7
|
+
|
|
8
|
+
# [5.0.0](https://github.com/podium-lib/podlet/compare/v4.5.0...v5.0.0) (2023-11-28)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Use latest proxy ([42f622c](https://github.com/podium-lib/podlet/commit/42f622c64f86b49796cc34e0871371ae74088cf1))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add support for strategy and scope via @podium/schemas and @podium/utils update ([128eaa1](https://github.com/podium-lib/podlet/commit/128eaa1b3de35581d8fe537c63ebc001ce82c282))
|
|
19
|
+
* Convert to ESM ([cedb222](https://github.com/podium-lib/podlet/commit/cedb222127c25469bf856942463ce02491d5ad08))
|
|
20
|
+
* Drop node 10.x support ([1f9ca4f](https://github.com/podium-lib/podlet/commit/1f9ca4f97e8da9addac4e70813ba981e7742ec9e))
|
|
21
|
+
* Remove deprecated return value on .js and .css methods ([4052c02](https://github.com/podium-lib/podlet/commit/4052c02750a0071487bfa1ffb76ccebcc55bf185))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### BREAKING CHANGES
|
|
25
|
+
|
|
26
|
+
* Convert from CommonJS module to ESM
|
|
27
|
+
* In version 4 of podium it became possible to set multiple assets to a podlet through its `.js()` and `.css()` methods. This did make it impossible to let these methods return a resonable value, but to keep a backwards compabillity with version 3 of Podium, the first item passed in was returned for compabillity. This removes this compaillity with version 3 of Podium.
|
|
28
|
+
* Only support node 12 and 14.
|
|
29
|
+
|
|
1
30
|
# [5.0.0-next.8](https://github.com/podium-lib/podlet/compare/v5.0.0-next.7...v5.0.0-next.8) (2023-11-22)
|
|
2
31
|
|
|
3
32
|
|
package/README.md
CHANGED
|
@@ -36,8 +36,8 @@ $ npm install @podium/podlet
|
|
|
36
36
|
Building a simple podlet server using [Express].
|
|
37
37
|
|
|
38
38
|
```js
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
import express from 'express';
|
|
40
|
+
import Podlet from '@podium/podlet';
|
|
41
41
|
|
|
42
42
|
// create a new podlet instance
|
|
43
43
|
const podlet = new Podlet({
|
|
@@ -281,8 +281,8 @@ The method takes the following arguments:
|
|
|
281
281
|
An instance of the [HttpIncoming] class.
|
|
282
282
|
|
|
283
283
|
```js
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
import { HttpIncoming } from '@podium/utils';
|
|
285
|
+
import Podlet from '@podium/podlet';
|
|
286
286
|
|
|
287
287
|
const podlet = new Podlet({
|
|
288
288
|
name: 'myPodlet',
|