Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
compatx
🌴 Compatibility toolkit.
[!NOTE] This is a WIP toolkit. See RFC for initial motivations.
# ✨ Auto-detect
npx nypm install -D compatx
# npm
npm install -D compatx
# yarn
yarn add -D compatx
# pnpm
pnpm install -D compatx
# bun
bun install -D compatx
formatCompatibilityDate(input)
Format compatibility date spec to a string
formatDate(date)
Format a date to a YYYY-MM-DD
string
Example:
formatDateString(new Date("2021/01/01")) // "2021-01-01"
getCompatibilityChanges(allUpdates, compatibilityDate1, compatibilityDate2)
Get compatibility changes between two dates.
getCompatibilityUpdates(allUpdates, compatibilityDate)
Get compatibility updates applicable for the user given platform and date range.
platforms
array
["aws","azure","cloudflare","deno","firebase","netlify","vercel"]
resolveCompatibilityDates(input?, defaults?)
Normalize the compatibility dates from input config and defaults.
resolveCompatibilityDatesFromEnv(overridesInput?)
Resolve compatibility dates with environment variables as defaults.
Environment variable name format is COMPATIBILITY_DATE
for default and COMPATIBILITY_DATE_<PLATFORM>
for specific platforms.
import type {
// Typed date string in `YYYY-MM-DD` format
DateString,
// Platform names
PlatformName,
// Compatibility dates
CompatibilityDateSpec,
CompatibilityDates,
// Compatibility updates
CompatibilityUpdate,
CompatibilityUpdates
} from "./types";
corepack enable
pnpm install
pnpm dev
Made with 💛
Published under MIT License.
FAQs
🌴 Gradual feature flags.
The npm package compatx receives a total of 284,942 weekly downloads. As such, compatx popularity was classified as popular.
We found that compatx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.