webring 1.10.1 → 1.11.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 +12 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.test.js +1 -1
- package/dist/index.test.js.map +1 -1
- package/package.json +11 -10
- package/src/__snapshots__/index.test.ts.snap +3 -3
- package/src/index.test.ts +1 -1
- package/src/index.ts +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.11.0](https://github.com/shepherdjerred/monorepo/compare/webring-v1.10.1...webring-v1.11.0) (2026-09-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **config:** route browser PostHog traffic through managed proxy ([#2835](https://github.com/shepherdjerred/monorepo/issues/2835)) ([33736ec](https://github.com/shepherdjerred/monorepo/commit/33736ecde965c8144b1b216a6147d40e35224597))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **root:** tighten the jscpd baseline to the current clone count ([#2817](https://github.com/shepherdjerred/monorepo/issues/2817)) ([0b2d74d](https://github.com/shepherdjerred/monorepo/commit/0b2d74d1096aeb828145b1f8c861e86923000181))
|
|
19
|
+
|
|
8
20
|
## [1.10.1](https://github.com/shepherdjerred/monorepo/compare/webring-v1.10.0...webring-v1.10.1) (2026-08-13)
|
|
9
21
|
|
|
10
22
|
No library behavior changes. `src/`, the runtime dependencies, and the published `package.json` metadata are identical to `1.10.0`. The shipped `README.md` — the page you see on npm — did get a substantive documentation pass.
|
|
@@ -17,14 +29,12 @@ No library behavior changes. `src/`, the runtime dependencies, and the published
|
|
|
17
29
|
|
|
18
30
|
No library behavior changes. The shipped code is identical to `1.9.0`; this release exists only because of repo-level housekeeping that release-please picked up.
|
|
19
31
|
|
|
20
|
-
- The analytics snippet injected into the generated TypeDoc site moved from the self-hosted Matomo instance to PostHog Cloud — still cookie-less, DNT-respecting, with session recording disabled and no person profiles ([2aad0c3](https://github.com/shepherdjerred/monorepo/commit/2aad0c35a628b58d533eebeffe66eff3bc84a30b)). Only `typedoc.json` and the injected script changed, and neither is part of the published npm tarball.
|
|
21
32
|
- No changes to `src/`, runtime dependencies, `README.md`, or published `package.json` metadata.
|
|
22
33
|
|
|
23
34
|
## [1.9.0](https://github.com/shepherdjerred/monorepo/compare/webring-v1.8.0...webring-v1.9.0) (2026-08-09)
|
|
24
35
|
|
|
25
36
|
No library behavior changes. The shipped code is identical to `1.8.0`; this release exists only because of repo-level housekeeping that release-please picked up.
|
|
26
37
|
|
|
27
|
-
- The analytics snippet injected into the generated TypeDoc site moved from Plausible to a self-hosted, cookie-less Matomo instance ([dfaa014](https://github.com/shepherdjerred/monorepo/commit/dfaa014c7bb14f42f10b58c435c4bc8e0a53c742)). Only `typedoc.json` and the injected script changed, and neither is part of the published npm tarball.
|
|
28
38
|
- No changes to `src/`, runtime dependencies, `README.md`, or published `package.json` metadata.
|
|
29
39
|
|
|
30
40
|
## [1.8.0](https://github.com/shepherdjerred/monorepo/compare/webring-v1.7.2...webring-v1.8.0) (2026-08-03)
|
|
@@ -77,14 +87,6 @@ Maintenance release with dependency updates and build system improvements.
|
|
|
77
87
|
|
|
78
88
|
## [1.5.0](https://github.com/shepherdjerred/monorepo/compare/v1.4.1...v1.5.0) (2026-01-20)
|
|
79
89
|
|
|
80
|
-
### Features
|
|
81
|
-
|
|
82
|
-
- add Plausible analytics to TypeDoc docs ([e416ae6](https://github.com/shepherdjerred/monorepo/commit/e416ae678886112973910f819fe2062c027043b4))
|
|
83
|
-
|
|
84
|
-
### Bug Fixes
|
|
85
|
-
|
|
86
|
-
- use customJs instead of invalid customHead option for Plausible ([4c7b1d7](https://github.com/shepherdjerred/monorepo/commit/4c7b1d733d90ef8c94448fe5ece9d0141ee9ef24))
|
|
87
|
-
|
|
88
90
|
## [1.4.1](https://github.com/shepherdjerred/monorepo/compare/v1.4.0...v1.4.1) (2026-01-19)
|
|
89
91
|
|
|
90
92
|
### Bug Fixes
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,MAAM,EAEZ,MAAM,YAAY,CAAC;AAEpB,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAErE,wBAAsB,GAAG,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,MAAM,EAEZ,MAAM,YAAY,CAAC;AAEpB,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAErE,wBAAsB,GAAG,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAoChE"}
|
package/dist/index.js
CHANGED
|
@@ -15,12 +15,10 @@ export async function run(config) {
|
|
|
15
15
|
}
|
|
16
16
|
let results = R.pipe(fetched, R.sortBy((entry) => entry.date.getTime()), R.reverse(), R.filter((entry) => {
|
|
17
17
|
const filterFn = entry.source.filter;
|
|
18
|
-
|
|
18
|
+
return (filterFn === undefined ||
|
|
19
19
|
entry.preview === undefined ||
|
|
20
|
-
entry.preview === ""
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
return filterFn(entry.preview);
|
|
20
|
+
entry.preview === "" ||
|
|
21
|
+
filterFn(entry.preview));
|
|
24
22
|
}));
|
|
25
23
|
// shuffle if wanted
|
|
26
24
|
if (config.shuffle === true) {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAGL,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AAIpB,MAAM,CAAC,KAAK,UAAU,GAAG,CAAC,MAAqB;IAC7C,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,yBAAyB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAEtE,IAAI,OAAe,CAAC;IACpB,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC;QACzD,OAAO,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAChC,OAAO,GAAG,MAAM,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,OAAO,GAAG,CAAC,CAAC,IAAI,CAClB,OAAO,EACP,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EACzC,CAAC,CAAC,OAAO,EAAE,EACX,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;QACjB,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"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ACpB,IAAI,MAAM,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QAC5B,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,SAAS;IACT,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/index.test.js
CHANGED
package/dist/index.test.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEhD,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AAC3D,SAAS,YAAY,CAAC,IAAwB;IAC5C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;IAC3D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC;IACvB,QAAQ,EAAE,WAAW;IACrB,IAAI,EAAE,CAAC;IACP,KAAK,CAAC,KAAK,CAAC,OAAO;QACjB,MAAM,GAAG,GAAG,IAAI,GAAG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F,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,CAAC;IACjC,MAAM,MAAM,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC9C,MAAM,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,CAAC;AACnC,CAAC,CAAC,CAAC;AAEH,oDAAoD;AACpD,KAAK,UAAU,aAAa;IAC1B,MAAM,QAAQ,GAAG,MAAM,EAAE,CAAC;IAC1B,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC9C,OAAO,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
"url": "https://github.com/shepherdjerred/monorepo/issues"
|
|
18
18
|
},
|
|
19
19
|
"type": "module",
|
|
20
|
-
"version": "1.
|
|
20
|
+
"version": "1.11.0",
|
|
21
21
|
"scripts": {
|
|
22
22
|
"lint": "eslint src --cache",
|
|
23
23
|
"build": "PATH=node_modules/@typescript/native/bin:$PATH tsc",
|
|
24
24
|
"watch": "PATH=node_modules/@typescript/native/bin:$PATH tsc -w",
|
|
25
|
-
"test": "bun run typedoc && bun
|
|
26
|
-
"test:update": "bun
|
|
25
|
+
"test": "bun run typedoc && bun --no-install --bun vitest --config ../../vitest.config.ts run src/",
|
|
26
|
+
"test:update": "bun --no-install --bun vitest --config ../../vitest.config.ts run src/ --update=all",
|
|
27
27
|
"typedoc": "typedoc src/index.ts",
|
|
28
28
|
"typecheck": "PATH=node_modules/@typescript/native/bin:$PATH tsc --noEmit",
|
|
29
|
-
"deploy": "bun ../../scripts/deploy-site.ts webring",
|
|
30
|
-
"publish:npm": "bun ../../scripts/publish-npm.ts .",
|
|
31
|
-
"test:ci": "bun ../../scripts/run-ci-test.ts",
|
|
32
|
-
"test:report": "CI_TEST_COVERAGE=1 bun ../../scripts/run-ci-test.ts"
|
|
29
|
+
"deploy": "bun ../../scripts/release/deploy-site.ts webring",
|
|
30
|
+
"publish:npm": "bun ../../scripts/release/publish-npm.ts .",
|
|
31
|
+
"test:ci": "bun ../../scripts/ci/run-ci-test.ts",
|
|
32
|
+
"test:report": "CI_TEST_COVERAGE=1 bun ../../scripts/ci/run-ci-test.ts"
|
|
33
33
|
},
|
|
34
34
|
"main": "dist/index.js",
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@shepherdjerred/eslint-config": "0.3.0",
|
|
51
51
|
"@tsconfig/node24": "^24.0.4",
|
|
52
52
|
"@tsconfig/strictest": "^2.0.8",
|
|
53
|
-
"@types/bun": "
|
|
53
|
+
"@types/bun": "1.4.2",
|
|
54
54
|
"@types/express": "^5.0.6",
|
|
55
55
|
"@types/node": "^26.1.1",
|
|
56
56
|
"@types/sanitize-html": "^2.16.1",
|
|
@@ -62,8 +62,9 @@
|
|
|
62
62
|
"typedoc-plugin-extras": "^4.0.1",
|
|
63
63
|
"typedoc-plugin-zod": "^1.4.3",
|
|
64
64
|
"typescript": "^6.0.3",
|
|
65
|
-
"vitest": "
|
|
66
|
-
"@typescript/native": "npm:typescript@7.0.2"
|
|
65
|
+
"vitest": "5.0.1",
|
|
66
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
67
|
+
"@vitest/coverage-istanbul": "5.0.1"
|
|
67
68
|
},
|
|
68
69
|
"files": [
|
|
69
70
|
"dist",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`it should fetch an RSS feed with caching 1`] = `"[{"title":"Creating an already-completed asynchronous activity in C++/WinRT, part 4","url":"https://devblogs.microsoft.com/oldnewthing/20240712-00/?p=109967","date":"2024-07-12T14:00:00.000Z","source":{"url":"http://localhost:PORT/rss-10.xml","title":"rss 10"},"preview":"Failing is easy. Failing correctly is hard. The post Creating an already-completed asynchronous activity in C++/WinRT, part 4 appeared first on The Old New Thing."}]"`;
|
|
2
4
|
|
|
3
5
|
exports[`it should fetch an RSS feed without caching 1`] = `"[{"title":"Creating an already-completed asynchronous activity in C++/WinRT, part 4","url":"https://devblogs.microsoft.com/oldnewthing/20240712-00/?p=109967","date":"2024-07-12T14:00:00.000Z","source":{"title":"rss 10","url":"http://localhost:PORT/rss-10.xml"},"preview":"Failing is easy. Failing correctly is hard. The post Creating an already-completed asynchronous activity in C++/WinRT, part 4 appeared first on The Old New Thing."}]"`;
|
|
4
6
|
|
|
5
7
|
exports[`it should fetch several RSS feeds 1`] = `"[{"title":"Creating an already-completed asynchronous activity in C++/WinRT, part 4","url":"https://devblogs.microsoft.com/oldnewthing/20240712-00/?p=109967","date":"2024-07-12T14:00:00.000Z","source":{"title":"rss 10","url":"http://localhost:PORT/rss-10.xml"},"preview":"Failing is easy. Failing correctly is hard. The post Creating an already-completed asynchronous activity in C++/WinRT, part 4 appeared first on The Old New Thing."},{"title":"Garlic and gravel","url":"https://www.henrikkarlsson.xyz/p/garlic-and-gravel","date":"2024-07-12T11:34:25.000Z","source":{"title":"rss 16","url":"http://localhost:PORT/rss-16.xml"},"preview":"fragments"},{"title":"My Glorious Ascension To Thought Leadership","url":"https://ludic.mataroa.blog/blog/my-glorious-ascension-to-thought-leadership/","date":"2024-07-11T00:00:00.000Z","source":{"title":"rss 5","url":"http://localhost:PORT/rss-5.xml"},"preview":"I. This Escalated Quickly I mentioned one post ago that this blog has done approximately 2M+ lifetime views, with over a million of them being in the past two weeks in response to the now-infamous rant about AI, then I went out of my way to not write the most maximally viral thing possible for perso..."}]"`;
|
|
6
|
-
|
|
7
|
-
exports[`it should fetch an RSS feed with caching 1`] = `"[{"title":"Creating an already-completed asynchronous activity in C++/WinRT, part 4","url":"https://devblogs.microsoft.com/oldnewthing/20240712-00/?p=109967","date":"2024-07-12T14:00:00.000Z","source":{"url":"http://localhost:PORT/rss-10.xml","title":"rss 10"},"preview":"Failing is easy. Failing correctly is hard. The post Creating an already-completed asynchronous activity in C++/WinRT, part 4 appeared first on The Old New Thing."}]"`;
|
package/src/index.test.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -27,14 +27,12 @@ export async function run(config: Configuration): Promise<Result> {
|
|
|
27
27
|
R.reverse(),
|
|
28
28
|
R.filter((entry) => {
|
|
29
29
|
const filterFn = entry.source.filter;
|
|
30
|
-
|
|
30
|
+
return (
|
|
31
31
|
filterFn === undefined ||
|
|
32
32
|
entry.preview === undefined ||
|
|
33
|
-
entry.preview === ""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
return filterFn(entry.preview);
|
|
33
|
+
entry.preview === "" ||
|
|
34
|
+
filterFn(entry.preview)
|
|
35
|
+
);
|
|
38
36
|
}),
|
|
39
37
|
);
|
|
40
38
|
|