angular/packages/common
Stephen Hicks 74cceba587 feat(common): throw error for suspicious date patterns (#59798)
Adjusts the date pipe and formatDate function to detect suspicious usages of the week-numbering year formatter without including the week number, as this is often confused for the calendar year and likely to result in incorrect results near New Years, meaning that those issues aren't typically caught during development. This commit starts throwing a development-only error to reveal this issue right away.

BREAKING CHANGE:

Using the `Y` formatter (week-numbering year) without also including `w` (week number) is now detected as suspicious date pattern, as `y` is typically intended.

PR Close #59798
2025-02-24 17:15:03 -05:00
..
http feat(common): introduce experimental httpResource (#59876) 2025-02-14 18:40:37 +00:00
locales refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
src feat(common): throw error for suspicious date patterns (#59798) 2025-02-24 17:15:03 -05:00
test feat(common): throw error for suspicious date patterns (#59798) 2025-02-24 17:15:03 -05:00
testing refactor(core): Add fake navigation to primitives for code sharing (#59857) 2025-02-19 20:09:10 +00:00
upgrade fix(common): clean up urlChanges subscribers when root scope is destroyed (#59703) 2025-02-18 15:40:19 +00:00
BUILD.bazel refactor(core): Add fake navigation to primitives for code sharing (#59857) 2025-02-19 20:09:10 +00:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
package.json build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
PACKAGE.md docs: add api doc to sub-packages (#33801) 2019-11-20 14:48:50 -08:00
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00