1 Commits

Author SHA1 Message Date
minori e8824169ed deps: update turbo to 2.8.20
Node.js CI / CI (pull_request) Successful in 45s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m10s
2026-04-01 07:01:31 -07:00
4 changed files with 71 additions and 68 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
"@nhcarrigan/eslint-config": "5.2.0", "@nhcarrigan/eslint-config": "5.2.0",
"@nhcarrigan/typescript-config": "4.0.0", "@nhcarrigan/typescript-config": "4.0.0",
"eslint": "9.30.1", "eslint": "9.30.1",
"turbo": "2.8.12", "turbo": "2.8.20",
"typescript": "5.8.3" "typescript": "5.8.3"
} }
} }
+59 -59
View File
@@ -18,8 +18,8 @@ importers:
specifier: 9.30.1 specifier: 9.30.1
version: 9.30.1(jiti@2.4.2) version: 9.30.1(jiti@2.4.2)
turbo: turbo:
specifier: 2.8.12 specifier: 2.8.20
version: 2.8.12 version: 2.8.20
typescript: typescript:
specifier: 5.8.3 specifier: 5.8.3
version: 5.8.3 version: 5.8.3
@@ -1557,6 +1557,36 @@ packages:
resolution: {integrity: sha512-UUYHISyhCU3ZgN8yaear3cGATHb3SMuKHsQ/nVbHXcmnBf+LzQ/cQfhNG+rfaSHgqGKNEm2cOCLVLELStUQ1JA==} resolution: {integrity: sha512-UUYHISyhCU3ZgN8yaear3cGATHb3SMuKHsQ/nVbHXcmnBf+LzQ/cQfhNG+rfaSHgqGKNEm2cOCLVLELStUQ1JA==}
engines: {node: ^18.17.0 || >=20.5.0} engines: {node: ^18.17.0 || >=20.5.0}
'@turbo/darwin-64@2.8.20':
resolution: {integrity: sha512-FQ9EX1xMU5nbwjxXxM3yU88AQQ6Sqc6S44exPRroMcx9XZHqqppl5ymJF0Ig/z3nvQNwDmz1Gsnvxubo+nXWjQ==}
cpu: [x64]
os: [darwin]
'@turbo/darwin-arm64@2.8.20':
resolution: {integrity: sha512-Gpyh9ATFGThD6/s9L95YWY54cizg/VRWl2B67h0yofG8BpHf67DFAh9nuJVKG7bY0+SBJDAo5cMur+wOl9YOYw==}
cpu: [arm64]
os: [darwin]
'@turbo/linux-64@2.8.20':
resolution: {integrity: sha512-p2QxWUYyYUgUFG0b0kR+pPi8t7c9uaVlRtjTTI1AbCvVqkpjUfCcReBn6DgG/Hu8xrWdKLuyQFaLYFzQskZbcA==}
cpu: [x64]
os: [linux]
'@turbo/linux-arm64@2.8.20':
resolution: {integrity: sha512-Gn5yjlZGLRZWarLWqdQzv0wMqyBNIdq1QLi48F1oY5Lo9kiohuf7BPQWtWxeNVS2NgJ1+nb/DzK1JduYC4AWOA==}
cpu: [arm64]
os: [linux]
'@turbo/windows-64@2.8.20':
resolution: {integrity: sha512-vyaDpYk/8T6Qz5V/X+ihKvKFEZFUoC0oxYpC1sZanK6gaESJlmV3cMRT3Qhcg4D2VxvtC2Jjs9IRkrZGL+exLw==}
cpu: [x64]
os: [win32]
'@turbo/windows-arm64@2.8.20':
resolution: {integrity: sha512-voicVULvUV5yaGXo0Iue13BcHGYW3u0VgqSbfQwBaHbpj1zLjYV4KIe+7fYIo6DO8FVUJzxFps3ODCQG/Wy2Qw==}
cpu: [arm64]
os: [win32]
'@types/chai@5.2.2': '@types/chai@5.2.2':
resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==} resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==}
@@ -4618,38 +4648,8 @@ packages:
resolution: {integrity: sha512-3T3T04WzowbwV2FDiGXBbr81t64g1MUGGJRgT4x5o97N+8ArdhVCAF9IxFrxuSJmM3E5Asn7nKHkao0ibcZXAg==} resolution: {integrity: sha512-3T3T04WzowbwV2FDiGXBbr81t64g1MUGGJRgT4x5o97N+8ArdhVCAF9IxFrxuSJmM3E5Asn7nKHkao0ibcZXAg==}
engines: {node: ^18.17.0 || >=20.5.0} engines: {node: ^18.17.0 || >=20.5.0}
turbo-darwin-64@2.8.12: turbo@2.8.20:
resolution: {integrity: sha512-EiHJmW2MeQQx+21x8hjMHw/uPhXt9PIxvDrxzOtyVwrXzL0tQmsxtO4qHf2l7uA+K6PUJ4+TjY1MHZDuCvWXrw==} resolution: {integrity: sha512-Rb4qk5YT8RUwwdXtkLpkVhNEe/lor6+WV7S5tTlLpxSz6MjV5Qi8jGNn4gS6NAvrYGA/rNrE6YUQM85sCZUDbQ==}
cpu: [x64]
os: [darwin]
turbo-darwin-arm64@2.8.12:
resolution: {integrity: sha512-cbqqGN0vd7ly2TeuaM8k9AK9u1CABO4kBA5KPSqovTiLL3sORccn/mZzJSbvQf0EsYRfU34MgW5FotfwW3kx8Q==}
cpu: [arm64]
os: [darwin]
turbo-linux-64@2.8.12:
resolution: {integrity: sha512-jXKw9j4r4q6s0goSXuKI3aKbQK2qiNeP25lGGEnq018TM6SWRW1CCpPMxyG91aCKrub7wDm/K45sGNT4ZFBcFQ==}
cpu: [x64]
os: [linux]
turbo-linux-arm64@2.8.12:
resolution: {integrity: sha512-BRJCMdyXjyBoL0GYpvj9d2WNfMHwc3tKmJG5ATn2Efvil9LsiOsd/93/NxDqW0jACtHFNVOPnd/CBwXRPiRbwA==}
cpu: [arm64]
os: [linux]
turbo-windows-64@2.8.12:
resolution: {integrity: sha512-vyFOlpFFzQFkikvSVhVkESEfzIopgs2J7J1rYvtSwSHQ4zmHxkC95Q8Kjkus8gg+8X2mZyP1GS5jirmaypGiPw==}
cpu: [x64]
os: [win32]
turbo-windows-arm64@2.8.12:
resolution: {integrity: sha512-9nRnlw5DF0LkJClkIws1evaIF36dmmMEO84J5Uj4oQ8C0QTHwlH7DNe5Kq2Jdmu8GXESCNDNuUYG8Cx6W/vm3g==}
cpu: [arm64]
os: [win32]
turbo@2.8.12:
resolution: {integrity: sha512-auUAMLmi0eJhxDhQrxzvuhfEbICnVt0CTiYQYY8WyRJ5nwCDZxD0JG8bCSxT4nusI2CwJzmZAay5BfF6LmK7Hw==}
hasBin: true hasBin: true
twitter-api-v2@1.28.0: twitter-api-v2@1.28.0:
@@ -6433,6 +6433,24 @@ snapshots:
'@tufjs/canonical-json': 2.0.0 '@tufjs/canonical-json': 2.0.0
minimatch: 9.0.5 minimatch: 9.0.5
'@turbo/darwin-64@2.8.20':
optional: true
'@turbo/darwin-arm64@2.8.20':
optional: true
'@turbo/linux-64@2.8.20':
optional: true
'@turbo/linux-arm64@2.8.20':
optional: true
'@turbo/windows-64@2.8.20':
optional: true
'@turbo/windows-arm64@2.8.20':
optional: true
'@types/chai@5.2.2': '@types/chai@5.2.2':
dependencies: dependencies:
'@types/deep-eql': 4.0.2 '@types/deep-eql': 4.0.2
@@ -10192,32 +10210,14 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
turbo-darwin-64@2.8.12: turbo@2.8.20:
optional: true
turbo-darwin-arm64@2.8.12:
optional: true
turbo-linux-64@2.8.12:
optional: true
turbo-linux-arm64@2.8.12:
optional: true
turbo-windows-64@2.8.12:
optional: true
turbo-windows-arm64@2.8.12:
optional: true
turbo@2.8.12:
optionalDependencies: optionalDependencies:
turbo-darwin-64: 2.8.12 '@turbo/darwin-64': 2.8.20
turbo-darwin-arm64: 2.8.12 '@turbo/darwin-arm64': 2.8.20
turbo-linux-64: 2.8.12 '@turbo/linux-64': 2.8.20
turbo-linux-arm64: 2.8.12 '@turbo/linux-arm64': 2.8.20
turbo-windows-64: 2.8.12 '@turbo/windows-64': 2.8.20
turbo-windows-arm64: 2.8.12 '@turbo/windows-arm64': 2.8.20
twitter-api-v2@1.28.0: {} twitter-api-v2@1.28.0: {}
+6 -6
View File
@@ -24,7 +24,7 @@ Platform-specific requirements:
- Include clear calls to action - Include clear calls to action
- The same content will be used for Discord, Reddit, Ko-fi, and Patreon, so make it work well for all these platforms - The same content will be used for Discord, Reddit, Ko-fi, and Patreon, so make it work well for all these platforms
**Threaded (for Twitter, Bluesky, and Mastodon):** **Threaded (for Threads, Twitter, Bluesky, and Mastodon):**
- Break content into a thread of individual posts - Break content into a thread of individual posts
- Each post should be under 280 characters (to work for Twitter's limit, which is the most restrictive) - Each post should be under 280 characters (to work for Twitter's limit, which is the most restrictive)
- Posts should flow naturally from one to the next - Posts should flow naturally from one to the next
@@ -32,14 +32,14 @@ Platform-specific requirements:
- Make the first post compelling to encourage thread reading - Make the first post compelling to encourage thread reading
- Do NOT include post numbers or thread indicators (e.g., "1/5" or "đź§µ") - Do NOT include post numbers or thread indicators (e.g., "1/5" or "đź§µ")
- Plain text format (no markdown) - Plain text format (no markdown)
- The same thread will be used for Twitter, Bluesky, and Mastodon - The same thread will be used for Threads, Twitter, Bluesky, and Mastodon
**Plaintext (for LinkedIn and Facebook):** **Plaintext (for LinkedIn, Facebook, and Peerlist):**
- Plain text format (no markdown) - Plain text format (no markdown)
- Professional yet friendly tone, conversational style suitable for a broader audience - Professional yet friendly tone, conversational style suitable for a broader audience
- Include 3-5 relevant hashtags - Include 3-5 relevant hashtags
- Keep it concise but informative - Keep it concise but informative
- The same content will be used for LinkedIn and Facebook - The same content will be used for LinkedIn, Facebook, and Peerlist
**Universal requirements:** **Universal requirements:**
- All announcements must include a call to action to donate (https://donate.nhcarrigan.com) - All announcements must include a call to action to donate (https://donate.nhcarrigan.com)
@@ -71,13 +71,13 @@ const announcementJsonSchema = {
type: "object", type: "object",
}, },
plaintext: { plaintext: {
description: "Plain text announcement for LinkedIn and Facebook (shared content). Should be professional yet friendly, conversational style suitable for a broader audience. Include 3-5 relevant hashtags and calls to action for donating and joining Discord.", description: "Plain text announcement for LinkedIn, Facebook, and Peerlist (shared content). Should be professional yet friendly, conversational style suitable for a broader audience. Include 3-5 relevant hashtags and calls to action for donating and joining Discord.",
maxLength: 1900, maxLength: 1900,
minLength: 100, minLength: 100,
type: "string", type: "string",
}, },
threaded: { threaded: {
description: "Array of individual posts that form a thread. Will be used for Twitter, Bluesky, and Mastodon. Each post should be under 280 characters (Twitter's limit) and flow naturally from one to the next.", description: "Array of individual posts that form a thread. Will be used for Threads, Twitter, Bluesky, and Mastodon. Each post should be under 280 characters (Twitter's limit) and flow naturally from one to the next.",
items: { items: {
description: "A single post in the thread (max 280 characters, no post numbers or thread indicators)", description: "A single post in the thread (max 280 characters, no post numbers or thread indicators)",
maxLength: 280, maxLength: 280,
+5 -2
View File
@@ -12,6 +12,7 @@ import { announceOnDiscourse } from "../modules/announceOnDiscourse.js";
import { announceOnFacebook } from "../modules/announceOnFacebook.js"; import { announceOnFacebook } from "../modules/announceOnFacebook.js";
import { announceOnMastodon } from "../modules/announceOnMastodon.js"; import { announceOnMastodon } from "../modules/announceOnMastodon.js";
import { announceOnReddit } from "../modules/announceOnReddit.js"; import { announceOnReddit } from "../modules/announceOnReddit.js";
import { announceOnThreads } from "../modules/announceOnThreads.js";
import { announceOnTwitter } from "../modules/announceOnTwitter.js"; import { announceOnTwitter } from "../modules/announceOnTwitter.js";
import { generateAnnouncements } from "../modules/generateAnnouncements.js"; import { generateAnnouncements } from "../modules/generateAnnouncements.js";
import { getIpFromRequest } from "../modules/getIpFromRequest.js"; import { getIpFromRequest } from "../modules/getIpFromRequest.js";
@@ -115,6 +116,7 @@ export const announcementRoutes: FastifyPluginAsync = async(server) => {
blueskyResult, blueskyResult,
twitterResult, twitterResult,
facebookResult, facebookResult,
threadsResult,
mastodonResult, mastodonResult,
discourseResult, discourseResult,
] = await Promise.allSettled([ ] = await Promise.allSettled([
@@ -123,14 +125,15 @@ export const announcementRoutes: FastifyPluginAsync = async(server) => {
announceOnBluesky(threaded), announceOnBluesky(threaded),
announceOnTwitter(threaded), announceOnTwitter(threaded),
announceOnFacebook(plaintext), announceOnFacebook(plaintext),
announceOnThreads(threaded),
announceOnMastodon(threaded), announceOnMastodon(threaded),
announceOnDiscourse(markdownTitle, markdownContent, type), announceOnDiscourse(markdownTitle, markdownContent, type),
]); ]);
return await reply.status(201).send({ return await reply.status(201).send({
alert: `Please remember to manually post to: LinkedIn, Ko-fi, and Patreon.`, alert: `Please remember to manually post to: LinkedIn, Peerlist, Ko-fi, and Patreon.`,
cost: announcement.cost, cost: announcement.cost,
message: `Announcement processed. Discord: ${getPlatformResult(discordResult)}, Reddit: ${getPlatformResult(redditResult)}, Bluesky: ${getPlatformResult(blueskyResult)}, Twitter: ${getPlatformResult(twitterResult)}, Facebook: ${getPlatformResult(facebookResult)}, Mastodon: ${getPlatformResult(mastodonResult)}, Discourse: ${getPlatformResult(discourseResult)}`, message: `Announcement processed. Discord: ${getPlatformResult(discordResult)}, Reddit: ${getPlatformResult(redditResult)}, Bluesky: ${getPlatformResult(blueskyResult)}, Twitter: ${getPlatformResult(twitterResult)}, Facebook: ${getPlatformResult(facebookResult)}, Threads: ${getPlatformResult(threadsResult)}, Mastodon: ${getPlatformResult(mastodonResult)}, Discourse: ${getPlatformResult(discourseResult)}`,
rawPost: announcement.response, rawPost: announcement.response,
}); });
}, },