Skip to content

Commit d7600b2

Browse files
committedJul 26, 2024
Update dependencies
1 parent 3d277f8 commit d7600b2

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed
 

‎index.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,24 @@ export type OutputOptions = {
2222
readonly rerunInterval?: number;
2323
};
2424

25+
// eslint-disable-next-line unicorn/prevent-abbreviations
2526
export type CacheConfGetOptions = {
2627
/**
2728
Get the item for the key provided without taking the `maxAge` of the item into account.
2829
*/
2930
readonly ignoreMaxAge?: boolean;
3031
};
3132

33+
// eslint-disable-next-line unicorn/prevent-abbreviations
3234
export type CacheConfSetOptions = {
3335
/**
3436
Number of milliseconds the cached value is valid.
3537
*/
3638
readonly maxAge?: number;
3739
};
3840

41+
// TODO: Rename this in the next major version.
42+
// eslint-disable-next-line unicorn/prevent-abbreviations
3943
export type CacheConf<T extends Record<string, any> = Record<string, unknown>> = {
4044
isExpired: (key: keyof T) => boolean;
4145

‎index.js

-5
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,6 @@ alfy.fetch = async (url, options) => {
118118
...options,
119119
};
120120

121-
// TODO: Remove this in 2024.
122-
if (options.query) {
123-
throw new Error('The `query` option was renamed to `searchParams`.');
124-
}
125-
126121
if (typeof url !== 'string') {
127122
throw new TypeError(`Expected \`url\` to be a \`string\`, got \`${typeof url}\``);
128123
}

‎lib/update-notification.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {readPackageUp} from 'read-package-up';
22
import alfredNotifier from 'alfred-notifier';
33

44
export default async function updateNotification() {
5-
const {package: pkg} = await readPackageUp();
6-
const alfy = (pkg || {}).alfy || {};
5+
const {package: package_} = await readPackageUp();
6+
const alfy = package_?.alfy ?? {};
77

88
if (alfy.updateNotification !== false) {
99
alfredNotifier();

‎package.json

+10-8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Create Alfred workflows with ease",
55
"license": "MIT",
66
"repository": "sindresorhus/alfy",
7+
"funding": "https://github.com/sponsors/sindresorhus",
78
"type": "module",
89
"bin": {
910
"run-node": "./run-node.sh",
@@ -14,6 +15,7 @@
1415
"types": "./index.d.ts",
1516
"default": "./index.js"
1617
},
18+
"sideEffects": false,
1719
"engines": {
1820
"node": ">=18"
1921
},
@@ -45,21 +47,21 @@
4547
"alfred-notifier": "^0.2.3",
4648
"cache-conf": "^0.6.0",
4749
"clean-stack": "^5.2.0",
48-
"conf": "^12.0.0",
49-
"dot-prop": "^8.0.2",
50-
"execa": "^8.0.1",
51-
"got": "^13.0.0",
50+
"conf": "^13.0.1",
51+
"dot-prop": "^9.0.0",
52+
"execa": "^9.3.0",
53+
"got": "^14.4.2",
5254
"hook-std": "^3.0.0",
5355
"loud-rejection": "^2.2.0",
5456
"read-package-up": "^11.0.0"
5557
},
5658
"devDependencies": {
57-
"ava": "^5.3.1",
59+
"ava": "^6.1.3",
5860
"delay": "^6.0.0",
59-
"nock": "^13.3.8",
61+
"nock": "^13.5.4",
6062
"tempfile": "^5.0.0",
61-
"tsd": "^0.29.0",
62-
"xo": "^0.56.0"
63+
"tsd": "^0.31.1",
64+
"xo": "^0.59.2"
6365
},
6466
"tsd": {
6567
"compilerOptions": {

‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ By adding `alfy-init` as `postinstall` and `alfy-cleanup` as `preuninstall` scri
103103
"author": {
104104
"name": "Sindre Sorhus",
105105
"email": "sindresorhus@gmail.com",
106-
"url": "sindresorhus.com"
106+
"url": "https://sindresorhus.com"
107107
},
108108
"scripts": {
109109
"postinstall": "alfy-init",

0 commit comments

Comments
 (0)
Failed to load comments.