@pitlane/crawler 0.1.0 → 0.2.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/CHANGELOG.md +25 -0
- package/README.md +1 -1
- package/package.json +47 -49
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @pitlane/crawler
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
Target Remix `3.0.0-rc.2`.
|
|
6
|
+
|
|
7
|
+
- No crawler code changed. `crawl()` still dispatches into a router's `fetch`
|
|
8
|
+
and yields the same `{ pathname, filepath, response }` records.
|
|
9
|
+
- The `remix` peer stays at `^3.0.0-rc.1`, which already admits rc.2. Nothing
|
|
10
|
+
needs to move to install this alongside either prerelease.
|
|
11
|
+
- Tested against `remix@3.0.0-rc.2`.
|
|
12
|
+
|
|
13
|
+
## 0.2.0
|
|
14
|
+
|
|
15
|
+
Target Remix `3.0.0-rc.1`.
|
|
16
|
+
|
|
17
|
+
- Raised the `remix` peer dependency to `^3.0.0-rc.1` (from
|
|
18
|
+
`^3.0.0-beta.10`). The crawler's own API is unchanged — `crawl()` still
|
|
19
|
+
dispatches into a router's `fetch` and yields the same
|
|
20
|
+
`{ pathname, filepath, response }` records.
|
|
21
|
+
- rc.1 moved the framework's DOM attributes into the `data-rmx-*` namespace,
|
|
22
|
+
which is visible here because the crawler decides what to follow: the opt-out
|
|
23
|
+
an app writes on an anchor is now `data-rmx-document`, not `rmx-document`.
|
|
24
|
+
Following itself reads `href`, `rel`, and `<meta name="robots">`, so no
|
|
25
|
+
crawler code changed.
|
|
26
|
+
- Tested against `remix@3.0.0-rc.1`.
|
|
27
|
+
|
|
3
28
|
## 0.1.0
|
|
4
29
|
|
|
5
30
|
Initial release.
|
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ npm install @pitlane/crawler
|
|
|
29
29
|
vp add @pitlane/crawler
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Requires `remix@^3.0.0-
|
|
32
|
+
Requires `remix@^3.0.0-rc.1` as a peer.
|
|
33
33
|
|
|
34
34
|
Using the [`remix()` Vite plugin](https://pitlane.tools/package/dev/)? You do not need this package directly — `remix({ prerender })` runs it for you. See the [prerendering guide](https://pitlane.tools/guides/prerendering).
|
|
35
35
|
|
package/package.json
CHANGED
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"prepublishOnly": "vp run build"
|
|
38
|
-
},
|
|
39
|
-
"devDependencies": {
|
|
40
|
-
"@types/node": "^25.5.0",
|
|
41
|
-
"remix": "3.0.0-beta.10",
|
|
42
|
-
"typescript": "^7.0.2",
|
|
43
|
-
"vite-plus": "^0.2.6"
|
|
44
|
-
},
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"remix": "^3.0.0-beta.10"
|
|
47
|
-
},
|
|
48
|
-
"engines": {
|
|
49
|
-
"node": "^20.19.0 || >=22.12.0"
|
|
2
|
+
"name": "@pitlane/crawler",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "crawl() — spider a Remix 3 fetch router in memory to prerender it, plus static-path discovery from a route map.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"crawl",
|
|
7
|
+
"fetch-router",
|
|
8
|
+
"pitlane",
|
|
9
|
+
"prerender",
|
|
10
|
+
"remix",
|
|
11
|
+
"ssg"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://pitlane.tools/package/crawler/",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/pitlane-tools/pitlane/issues"
|
|
16
|
+
},
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": "Mark Malstrom <mark@malstrom.me>",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/pitlane-tools/pitlane.git",
|
|
22
|
+
"directory": "packages/crawler"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"CHANGELOG.md"
|
|
27
|
+
],
|
|
28
|
+
"type": "module",
|
|
29
|
+
"types": "./dist/index.d.mts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.mts",
|
|
33
|
+
"import": "./dist/index.mjs"
|
|
50
34
|
}
|
|
51
|
-
}
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/node": "^25.5.0",
|
|
38
|
+
"remix": "3.0.0-rc.2",
|
|
39
|
+
"typescript": "^7.0.2",
|
|
40
|
+
"vite-plus": "^0.2.6"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"remix": "^3.0.0-rc.1"
|
|
44
|
+
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {}
|
|
49
|
+
}
|