pockethost 1.1.0 → 1.2.0
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 +25 -0
- package/package.json +9 -3
- package/src/cli/commands/PluginCommand/index.ts +0 -1
- package/src/cli/index.ts +13 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# pockethost
|
|
2
|
+
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 72a6c6d: --version now displays version number
|
|
8
|
+
- ac10d1f: Display notification when new pockethost update is available.
|
|
9
|
+
- f9aea10: Debugging info removed from `plugin ls`
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 76d57f6: CHANGELOG.md is now published with package.
|
|
14
|
+
- 3783447: plugin-console-logger and plugin-launcher-spawn are now automatically installed.
|
|
15
|
+
|
|
16
|
+
## 1.1.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- 1695b59: New feature: list plugins (pockethost plugin ls)
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 2514c09: Fix: make sure PH_PLUGINS contains only unique values.
|
|
25
|
+
- 1228840: Fixed extra newline when listing configs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pockethost",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Ben Allfree",
|
|
6
6
|
"url": "https://github.com/benallfree"
|
|
@@ -37,7 +37,10 @@
|
|
|
37
37
|
"tsx": "^4.15.7",
|
|
38
38
|
"type-fest": "^4.6.0",
|
|
39
39
|
"typescript": "^5.4.5",
|
|
40
|
-
"
|
|
40
|
+
"update-notifier": "^7.0.0",
|
|
41
|
+
"url-pattern": "^1.0.3",
|
|
42
|
+
"@pockethost/plugin-console-logger": "^0.0.1",
|
|
43
|
+
"@pockethost/plugin-launcher-spawn": "^0.0.1"
|
|
41
44
|
},
|
|
42
45
|
"devDependencies": {
|
|
43
46
|
"@types/express": "^4.17.21",
|
|
@@ -45,7 +48,10 @@
|
|
|
45
48
|
"@types/json-stringify-safe": "^5.0.2",
|
|
46
49
|
"@types/node": "^20.8.10",
|
|
47
50
|
"@types/semver": "^7.5.4",
|
|
48
|
-
"@types/tmp": "^0.2.5"
|
|
51
|
+
"@types/tmp": "^0.2.5",
|
|
52
|
+
"@types/update-notifier": "^6.0.8",
|
|
53
|
+
"@pockethost/plugin-launcher-spawn": "0.0.1",
|
|
54
|
+
"@pockethost/plugin-console-logger": "0.0.1"
|
|
49
55
|
},
|
|
50
56
|
"scripts": {
|
|
51
57
|
"check-types": "tsc --noEmit ",
|
package/src/cli/index.ts
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { uniq } from '@s-libs/micro-dash'
|
|
4
4
|
import { Command, program } from 'commander'
|
|
5
|
+
import { readFileSync } from 'fs'
|
|
6
|
+
import updateNotifier from 'update-notifier'
|
|
5
7
|
import {
|
|
6
8
|
DEBUG,
|
|
7
9
|
LogLevelName,
|
|
8
10
|
LoggerService,
|
|
9
11
|
PH_PLUGINS,
|
|
12
|
+
PH_PROJECT_DIR,
|
|
10
13
|
PocketHostFilter,
|
|
11
14
|
filter,
|
|
12
15
|
loadPlugins,
|
|
@@ -21,8 +24,17 @@ export const { dbg, info, error } = LoggerService({
|
|
|
21
24
|
|
|
22
25
|
export const main = async () => {
|
|
23
26
|
await loadPlugins(uniq(PH_PLUGINS()))
|
|
27
|
+
const pkg = await JSON.parse(
|
|
28
|
+
readFileSync(PH_PROJECT_DIR(`package.json`), 'utf8').toString(),
|
|
29
|
+
)
|
|
30
|
+
updateNotifier({ pkg }).notify()
|
|
24
31
|
|
|
25
|
-
|
|
32
|
+
const { version } = pkg
|
|
33
|
+
|
|
34
|
+
program
|
|
35
|
+
.name('pockethost')
|
|
36
|
+
.description('Multitenant PocketBase hosting')
|
|
37
|
+
.version(version)
|
|
26
38
|
|
|
27
39
|
const commands = await filter<Command[]>(PocketHostFilter.Core_CliCommands, [
|
|
28
40
|
ServeCommand(),
|