@podlite/publisher 0.0.28 → 0.0.30
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.podlite +6 -0
- package/esm/state-version-plugin.js +1 -1
- package/esm/state-version-plugin.js.map +1 -1
- package/esm/version.d.ts +1 -0
- package/esm/version.js +3 -0
- package/esm/version.js.map +1 -0
- package/lib/state-version-plugin.js +2 -2
- package/lib/version.d.ts +1 -0
- package/lib/version.js +6 -0
- package/package.json +22 -12
package/CHANGELOG.podlite
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
=head1 Upcoming
|
|
4
4
|
|
|
5
|
+
=head1 0.0.29
|
|
6
|
+
|
|
7
|
+
=item add C<exports> map, top-level C<types>, and explicit C<sideEffects> to package manifest
|
|
8
|
+
=item declare C<podlite> and C<@podlite/markdown> runtime dependencies (previously imported without being listed)
|
|
9
|
+
=item replace top-level C<require('../package.json')> in C<state-version-plugin> with a build-injected C<version> module. The published ESM no longer carries a C<require> call, so browser bundlers (Vite/Rollup) can lazy-load the package without C<require is not defined> at runtime
|
|
10
|
+
|
|
5
11
|
=head1 0.0.25
|
|
6
12
|
|
|
7
13
|
=item C<stateVersionPlugin> accepts optional C<appVersion> parameter; appended to C<stateVersion> as C<+app<v>>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-version-plugin.js","sourceRoot":"","sources":["../src/state-version-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAExD,
|
|
1
|
+
{"version":3,"file":"state-version-plugin.js","sourceRoot":"","sources":["../src/state-version-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,MAAM,MAAM,GAAG,CAAC,UAAmB,EAAoB,EAAE;IACvD,MAAM,MAAM,GAA4B,EAAE,CAAA;IAC1C,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,MAAM,MAAM,GAAG,GAAG,CAAC,EAAE;QACnB,MAAM,CAAC,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,OAAO,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;QACnG,OAAO,EAAE,GAAG,GAAG,EAAE,GAAG,MAAM,EAAE,CAAA;IAC9B,CAAC,CAAA;IACD,MAAM,eAAe,GAAG,CAAC,UAAU,EAAU,EAAE;QAC7C,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;YACzC,OAAO,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,sBAAsB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;QAC/D,CAAC,EAAE,EAAE,CAAC,CAAA;IACR,CAAC,CAAA;IACD,MAAM,SAAS,GAAG,CAAC,IAAqB,EAAE,EAAE;QAC1C,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,CAAA;QAChC,OAAO,IAAI,CAAA;IACb,CAAC,CAAA;IAED,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;AAC5B,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/esm/version.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "0.0.30";
|
package/esm/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAA"}
|
|
@@ -21,12 +21,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
const CRC32 = __importStar(require("crc-32"));
|
|
23
23
|
const schema_1 = require("@podlite/schema");
|
|
24
|
-
const
|
|
24
|
+
const version_1 = require("./version");
|
|
25
25
|
const plugin = (appVersion) => {
|
|
26
26
|
const outCtx = {};
|
|
27
27
|
let crc_sum = '';
|
|
28
28
|
const onExit = ctx => {
|
|
29
|
-
outCtx.stateVersion = CRC32.str(crc_sum) + '+v' + version + (appVersion ? '+app' + appVersion : '');
|
|
29
|
+
outCtx.stateVersion = CRC32.str(crc_sum) + '+v' + version_1.version + (appVersion ? '+app' + appVersion : '');
|
|
30
30
|
return { ...ctx, ...outCtx };
|
|
31
31
|
};
|
|
32
32
|
const getStateVersion = (allREcords) => {
|
package/lib/version.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "0.0.30";
|
package/lib/version.js
ADDED
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podlite/publisher",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "Publishing toolkit for Podlite — transform documents to HTML, generate sites",
|
|
5
|
-
"main": "lib/index.js",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./lib/index.d.ts",
|
|
10
|
+
"import": "./esm/index.js",
|
|
11
|
+
"require": "./lib/index.js",
|
|
12
|
+
"default": "./lib/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
6
16
|
"homepage": "https://podlite.org",
|
|
7
17
|
"bugs": {
|
|
8
18
|
"url": "https://github.com/podlite/podlite/issues"
|
|
@@ -29,14 +39,13 @@
|
|
|
29
39
|
},
|
|
30
40
|
"engineStrict": true,
|
|
31
41
|
"publishConfig": {
|
|
32
|
-
"access": "public"
|
|
33
|
-
"main": "lib/index.js",
|
|
34
|
-
"types": "./lib/index.d.ts",
|
|
35
|
-
"module": "./esm/index.js"
|
|
42
|
+
"access": "public"
|
|
36
43
|
},
|
|
37
44
|
"scripts": {
|
|
38
45
|
"clean": "rm -rf lib esm *.tsbuildinfo",
|
|
39
|
-
"build": "
|
|
46
|
+
"build": "run-s inject-version build:tsc",
|
|
47
|
+
"inject-version": "yarn g:inject-version",
|
|
48
|
+
"build:tsc": "yarn g:build",
|
|
40
49
|
"test": "yarn g:jest --passWithNoTests"
|
|
41
50
|
},
|
|
42
51
|
"keywords": [
|
|
@@ -53,11 +62,13 @@
|
|
|
53
62
|
"transform"
|
|
54
63
|
],
|
|
55
64
|
"dependencies": {
|
|
56
|
-
"@podlite/
|
|
65
|
+
"@podlite/markdown": "0.0.42",
|
|
66
|
+
"@podlite/schema": "0.0.49",
|
|
57
67
|
"crc-32": "^1.2.2",
|
|
58
68
|
"gray-matter": "^4.0.3",
|
|
59
69
|
"iso_9": "^1.0.4",
|
|
60
|
-
"newbase60": "^1.3.1"
|
|
70
|
+
"newbase60": "^1.3.1",
|
|
71
|
+
"podlite": "0.0.62"
|
|
61
72
|
},
|
|
62
73
|
"devDependencies": {
|
|
63
74
|
"@types/node": "^17.0.7",
|
|
@@ -66,7 +77,6 @@
|
|
|
66
77
|
"ts-node": "^9.1.1",
|
|
67
78
|
"typescript": "4.5.5"
|
|
68
79
|
},
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"module": "./esm/index.js"
|
|
80
|
+
"module": "./esm/index.js",
|
|
81
|
+
"types": "./lib/index.d.ts"
|
|
72
82
|
}
|