
* web: Check JS files. Add types. * web: Fix issues surrounding Vite/ESBuild types. * web: Clean up version constants. Tidy types * web: Clean up docs, types. * web: Clean up package paths. * web: (ESLint) no-lonely-if * web: Render slot before navbar. * web: Fix line-height alignment. * web: Truncate long headers. * web: Clean up page header declarations. Add story. Update paths. * web: Ignore out directory. * web: Lint Lit. * web: Use private alias. * web: Fix implicit CJS mode. * web: Update deps. * web: await all imports.
22 lines
525 B
JavaScript
22 lines
525 B
JavaScript
/**
|
|
* @file Utility functions for working with semantic versions.
|
|
*
|
|
* @runtime common
|
|
*/
|
|
|
|
/**
|
|
* Creates a URL to the release notes for the given version.
|
|
*
|
|
* @param {string} semver
|
|
* @returns {URL}
|
|
* @runtime common
|
|
*/
|
|
export function createReleaseNotesURL(semver) {
|
|
const segments = semver.split(".");
|
|
const versionFamily = segments.slice(0, -1).join(".");
|
|
|
|
const release = `${versionFamily}#fixed-in-${segments.join("")}`;
|
|
|
|
return new URL(`/docs/releases/${release}`, "https://goauthentik.io");
|
|
}
|