1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { fetch } from "https://esm.town/v/std/fetch";
import { parseXML } from "https://esm.town/v/stevekrouse/parseXML";
export const pollVulkanRSSFeedBug = (async () => {
const githubProject = "https://github.com/KhronosGroup/Vulkan-Docs";
const response = await fetch(`${githubProject}/commits.atom`);
const feed =
(await parseXML(await response.text())).feed;
const entries = feed.entry.filter((entry) =>
new Date("2023-06-16T13:11:36.040Z") <=
new Date(entry.updated)
);
console.log(
entries.find((e) => e.title.match(/Vulkan \d+\.\d+\.\d+ spec update/)),
);
})();
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023