TypeScript 6.0 is a transition release bridging 5.9 and the forthcoming 7.0 (a native Go port). Most changes are new defaults and deprecations preparing for 7.0. Here is what you need to do:
Most projects need these tsconfig changes:
TypeScript 6.0 is a transition release bridging 5.9 and the forthcoming 7.0 (a native Go port). Most changes are new defaults and deprecations preparing for 7.0. Here is what you need to do:
Most projects need these tsconfig changes:
| "use client" | |
| import { ChevronLeft, ChevronRight } from "lucide-react" | |
| import * as React from "react" | |
| import { DayPicker } from "react-day-picker" | |
| import { buttonVariants } from "@/components/ui/button" | |
| import { cn } from "@/lib/utils" | |
| export type CalendarProps = React.ComponentProps<typeof DayPicker> |
| accent: "#818cf8" | |
| foreground: "#0f172a" | |
| background: "#f8fafc" | |
| details: "lighter" | |
| terminal_colors: | |
| normal: | |
| red: "#f87171" | |
| yellow: "#facc15" | |
| black: "#0f172a" | |
| cyan: "#22d3ee" |
With the addition of ES modules, there's now no fewer than 24 ways to load your JS code: (inline|not inline) x (defer|no defer) x (async|no async) x (type=text/javascript | type=module | nomodule) -- and each of them is subtly different.
This document is a comparison of various ways the <script> tags in HTML are processed depending on the attributes set.
If you ever wondered when to use inline <script async type="module"> and when <script nomodule defer src="...">, you're in the good place!
Note that this article is about <script>s inserted in the HTML; the behavior of <script>s inserted at runtime is slightly different - see Deep dive into the murky waters of script loading by Jake Archibald (2013)
| import { JWE, JWK, JWS } from 'node-jose' | |
| import fs from 'fs' | |
| import { join } from 'path' | |
| import jwkToPem from 'jwk-to-pem' | |
| import jwt from 'jsonwebtoken' | |
| const certDir = '.cert' | |
| const keystoreFile = join(certDir, 'keystore.json') | |
| const raw = { | |
| iss: 'test', |
{ "compilerOptions": { "types": ["node"], // @types are no longer auto-discovered (see §1.6)