Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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 520,069 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.