@tryghost/algolia-netlify 0.4.0 → 0.4.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/README.md +2 -2
- package/package.json +6 -30
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ pnpm dev
|
|
|
74
74
|
|
|
75
75
|
`pnpm dev` starts Netlify Dev, which builds the TypeScript functions as needed. Use the local URL it prints for endpoints such as `/.netlify/functions/post-published`.
|
|
76
76
|
|
|
77
|
-
Run this package's tests and
|
|
77
|
+
Run this package's tests and lint checks from the repository root:
|
|
78
78
|
|
|
79
79
|
```sh
|
|
80
80
|
pnpm --filter @tryghost/algolia-netlify test
|
|
@@ -86,7 +86,7 @@ Run the full monorepo suite with `pnpm test`.
|
|
|
86
86
|
|
|
87
87
|
The modern handlers use native `Request` and `Response` objects. Malformed, empty, or structurally invalid JSON now receives `400 Invalid request body`; a valid Ghost envelope with no selected post remains a `200 No valid request body detected` response. Existing valid webhook behavior, endpoint URLs, and optional `key` handling are unchanged.
|
|
88
88
|
|
|
89
|
-
`pnpm pack` builds an ESM-only
|
|
89
|
+
From this package directory, `pnpm pack` builds an ESM-only package with generated TypeScript declarations. The supported Node range is declared in [`package.json`](package.json). The package intentionally exposes only the two handlers; webhook utilities remain internal.
|
|
90
90
|
|
|
91
91
|
---
|
|
92
92
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/algolia-netlify",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/TryGhost/algolia.git",
|
|
@@ -34,47 +34,23 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"eslintConfig": {
|
|
38
|
-
"parser": "@typescript-eslint/parser",
|
|
39
|
-
"parserOptions": {
|
|
40
|
-
"ecmaVersion": 2023,
|
|
41
|
-
"sourceType": "module"
|
|
42
|
-
},
|
|
43
|
-
"extends": [
|
|
44
|
-
"airbnb-base",
|
|
45
|
-
"plugin:ghost/browser"
|
|
46
|
-
],
|
|
47
|
-
"plugins": [
|
|
48
|
-
"ghost"
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
"eslintIgnore": [
|
|
52
|
-
"webpack.functions.js",
|
|
53
|
-
"build/*",
|
|
54
|
-
"dist/*"
|
|
55
|
-
],
|
|
56
37
|
"devDependencies": {
|
|
57
38
|
"@types/node": "24.13.3",
|
|
58
|
-
"@typescript-eslint/parser": "8.67.0",
|
|
59
|
-
"eslint": "8.57.1",
|
|
60
|
-
"eslint-config-airbnb-base": "15.0.0",
|
|
61
|
-
"eslint-plugin-ghost": "3.5.0",
|
|
62
|
-
"eslint-plugin-import": "2.32.0",
|
|
63
39
|
"esbuild": "0.28.2",
|
|
64
40
|
"netlify-cli": "27.1.1",
|
|
65
|
-
"typescript": "
|
|
41
|
+
"typescript": "7.0.2"
|
|
66
42
|
},
|
|
67
43
|
"dependencies": {
|
|
68
44
|
"algolia-html-extractor": "0.0.1",
|
|
69
|
-
"algoliasearch": "
|
|
70
|
-
"@tryghost/algolia-
|
|
71
|
-
"@tryghost/algolia-
|
|
45
|
+
"algoliasearch": "5.56.0",
|
|
46
|
+
"@tryghost/algolia-fragmenter": "^0.2.9",
|
|
47
|
+
"@tryghost/algolia-indexer": "^0.3.3"
|
|
72
48
|
},
|
|
73
49
|
"scripts": {
|
|
74
50
|
"dev": "pnpm --dir ../.. exec netlify dev --filter @tryghost/algolia-netlify",
|
|
75
51
|
"test": "NODE_ENV=testing vitest run --root .",
|
|
76
52
|
"typecheck": "tsc --project tsconfig.functions.json && tsc --project tsconfig.test.json",
|
|
77
|
-
"lint": "
|
|
53
|
+
"lint": "oxlint --quiet . && oxfmt --check .",
|
|
78
54
|
"posttest": "pnpm typecheck && pnpm lint",
|
|
79
55
|
"build": "NODE_ENV=production pnpm --dir ../.. exec netlify build --offline --filter @tryghost/algolia-netlify",
|
|
80
56
|
"build:package": "node scripts/build-package.mjs && tsc --project tsconfig.package.json && node scripts/clean-package.mjs"
|