TC39 Decorators Stage 3 指南:TypeScript 舊版差異
掌握 TC39 Decorators Stage 3 的 context、addInitializer 與 auto-accessor,並釐清 TypeScript experimentalDecorators、Babel 2023-11 與遷移邊界。
掌握 TC39 Decorators Stage 3 的 context、addInitializer 與 auto-accessor,並釐清 TypeScript experimentalDecorators、Babel 2023-11 與遷移邊界。
深入解析 JavaScript Iterator Helpers 與 Iterator.from():從 lazy pipeline、TypeScript 5.6 型別設定到 polyfill fallback,掌握可安全上線的導入策略。
解析 TC39 Math.sumPrecise 的核心語意與導入邊界,包含 reduce 失準原因、空 iterable 的 -0、TypeError 規則與前端資料彙整實戰。
整理 Explicit Resource Management(Stage 3)在 TypeScript 5.2+ 與 Node.js 的導入條件,說清 using/await using、esnext.disposable 與 runtime 邊界。
釐清 import attributes 在 JSON modules 與 dynamic import 的正確用法,拆解 Browser、Node、Bundler 差異,避免把 tooling DX 誤當原生 runtime 語義。
掌握 Object.groupBy 與 Map.groupBy 的實戰選型,釐清 null-prototype gotcha、TypeScript 5.4 型別支援與 Baseline 2024 fallback 策略。
整理 TC39 Pattern Matching 在 2026-04-01 仍為 Stage 1 的關鍵邊界,對照 switch、TypeScript discriminated union 與 ts-pattern 的實務導入策略。
整理 TC39 Pipeline Operator(Stage 2)的 Hack pipe 語法(|>)。與 F#/Elixir pipe 的比較,以及與 Iterator Helpers 結合的 streaming transform 實例。
解析 Promise.withResolvers 在事件橋接與 queue handoff 的實務用法,整理 Stage 4 / ES2024、Baseline 2024 與舊環境 fallback 策略。
用 JavaScript Set Methods 實作 feature flag、權限矩陣與標籤交集,並整理 TypeScript 5.5、runtime 與 polyfill 導入邊界。
釐清 Date 常見時區陷阱,實作 PlainDate、Instant、ZonedDateTime 分工,並以截至 2026-04-01 的瀏覽器支援與 polyfill 策略規劃漸進導入。