Skip to content

Commit 9d035ee

Browse files
ralyodioclaude
andauthored
chore(deps): @profullstack/openprofile 0.1.2, the root fix for malformed %-escapes (0.1.3) (#34)
0.1.2 makes normaliseUrl read a stray % as literal and never throw (profullstack/mynaposter#121), so identityKeys, mergeProfiles and the rest no longer 500 on a feed URL like https://ij.org/podcasts/%podcast-type%/. The app-level guards from #33 stay: generation still repairs the URL. The test that pinned the old throw now pins the new key. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent a757649 commit 9d035ee

4 files changed

Lines changed: 13 additions & 10 deletions

File tree

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p0dcasters",
3-
"version": "0.1.1",
3+
"version": "0.1.3",
44
"private": true,
55
"type": "module",
66
"scripts": {
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@logicsrc/openaccess": "0.3.0",
1515
"@profullstack/libsql-pg": "^0.1.2",
16-
"@profullstack/openprofile": "^0.1.1",
16+
"@profullstack/openprofile": "^0.1.2",
1717
"@profullstack/player": "^0.2.0",
1818
"@profullstack/submit-feed": "^0.1.3",
1919
"@profullstack/throttle": "^0.2.2",

‎pnpm-lock.yaml‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ minimumReleaseAgeExclude:
1515
- '@profullstack/throttle@0.2.2'
1616
- '@profullstack/submit-feed@0.1.0 || 0.1.1 || 0.1.2 || 0.1.3'
1717
- '@logicsrc/openaccess@0.3.0'
18-
- '@profullstack/openprofile@0.1.0 || 0.1.1'
18+
- '@profullstack/openprofile@0.1.0 || 0.1.1 || 0.1.2'
1919
- '@profullstack/libsql-pg@0.1.2'

‎test/openprofile.test.mjs‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,11 @@ const IJ = {
175175
feed_url: 'https://ij.org/feed/podcast/unpublished-opinions/',
176176
};
177177

178-
test('the package throws on the real link, so generation must not hand it over raw', () => {
179-
assert.throws(() => normaliseUrl(IJ.link), URIError);
178+
test('the package (0.1.2+) keys the real link instead of throwing', () => {
179+
// 0.1.1 threw URIError here; generation still repairs the URL as well, so
180+
// a profile never carries a malformed escape whatever the package does.
181+
assert.equal(normaliseUrl(IJ.link), 'ij.org/podcasts/%podcast-type%');
182+
assert.equal(normaliseUrl(wellFormedUrl(IJ.link)), normaliseUrl(IJ.link));
180183
});
181184

182185
test('a show whose link has a malformed percent-escape still generates a profile', () => {

0 commit comments

Comments
 (0)