@nathievzm/lumi 1.1.2 → 1.1.4
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/.oxlintrc.json +1 -1
- package/CHANGELOG.md +9 -0
- package/package.json +5 -3
- package/src/index.ts +7 -1
package/.oxlintrc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.1.4](https://github.com/nathievzm/lumi/compare/v1.1.3...v1.1.4) (2026-05-13)
|
|
2
|
+
|
|
3
|
+
## [1.1.3](https://github.com/nathievzm/lumi/compare/v1.1.2...v1.1.3) (2026-05-13)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add update notifier to notify when there'a a new version ([#67](https://github.com/nathievzm/lumi/issues/67))
|
|
8
|
+
([b567f03](https://github.com/nathievzm/lumi/commit/b567f03b3c6617b18bdc34587d65055c5726bcfc))
|
|
9
|
+
|
|
1
10
|
## [1.1.2](https://github.com/nathievzm/lumi/compare/v1.1.1...v1.1.2) (2026-05-13)
|
|
2
11
|
|
|
3
12
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nathievzm/lumi",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "a concurrent cli tool to resize and convert images using bun and sharp",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bun",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"fmt:check": "oxfmt --check",
|
|
46
46
|
"lint": "oxlint",
|
|
47
47
|
"lint:fix": "oxlint --fix",
|
|
48
|
-
"
|
|
48
|
+
"prepare": "bunx lefthook install",
|
|
49
49
|
"release": "bumpp --execute \"bun changelog\" --all",
|
|
50
50
|
"start": "bun src/index.ts"
|
|
51
51
|
},
|
|
@@ -56,12 +56,14 @@
|
|
|
56
56
|
"image-extensions": "^1.1.0",
|
|
57
57
|
"p-limit": "^7.3.0",
|
|
58
58
|
"picocolors": "^1.1.1",
|
|
59
|
-
"sharp": "^0.34.5"
|
|
59
|
+
"sharp": "^0.34.5",
|
|
60
|
+
"update-notifier": "^7.3.1"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@commitlint/cli": "^20.5.3",
|
|
63
64
|
"@commitlint/config-conventional": "^20.5.3",
|
|
64
65
|
"@types/bun": "latest",
|
|
66
|
+
"@types/update-notifier": "^6.0.8",
|
|
65
67
|
"bumpp": "^11.1.0",
|
|
66
68
|
"conventional-changelog-cli": "^5.0.0",
|
|
67
69
|
"lefthook": "^2.1.6",
|
package/src/index.ts
CHANGED
|
@@ -9,12 +9,18 @@ import { Temporal } from '@js-temporal/polyfill'
|
|
|
9
9
|
import boxen from 'boxen'
|
|
10
10
|
import pLimit from 'p-limit'
|
|
11
11
|
import color from 'picocolors'
|
|
12
|
+
import updateNotifier from 'update-notifier'
|
|
12
13
|
|
|
13
14
|
import { cli } from '@/args'
|
|
14
15
|
import { ensureOutputExists, getInputPath, getOutputPath } from '@/folder'
|
|
15
16
|
import { getExtensions, getImages, getWidthAndHeight, resize } from '@/image'
|
|
16
17
|
|
|
17
|
-
import pkg from '../package.json'
|
|
18
|
+
import pkg from '../package.json' with { type: 'json' }
|
|
19
|
+
|
|
20
|
+
const notifier = updateNotifier({ pkg })
|
|
21
|
+
notifier.notify({
|
|
22
|
+
boxenOptions: { borderColor: 'magenta', borderStyle: 'round', padding: 1 }
|
|
23
|
+
})
|
|
18
24
|
|
|
19
25
|
console.clear()
|
|
20
26
|
|