std/datetime
Ian Bull 3b3a7617ab
refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() (#5855)
refactor(assert, datetime, fmt, io, streams): use `throw new Error` instead of `throw`

To ensure consistency across the codebase, this commit refactors the
codebase to use `throw new Error` instead of `throw` for throwing
errors.

https://github.com/denoland/std/issues/5854
2024-08-29 08:55:24 +10:00
..
_date_time_formatter_test.ts refactor(archive,cache,datetime,fmt,front-matter): align error messages to the style guide (#5706) 2024-08-21 14:42:02 +09:00
_date_time_formatter.ts refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() (#5855) 2024-08-29 08:55:24 +10:00
constants.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
day_of_year_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
day_of_year.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
deno.json chore: release 2024.08.26 (#5824) 2024-08-26 17:33:29 +09:00
difference_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
difference.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
format_test.ts BREAKING(datetime): replace utc with timeZone option (#5647) 2024-08-08 17:55:15 +02:00
format.ts BREAKING(datetime): replace utc with timeZone option (#5647) 2024-08-08 17:55:15 +02:00
is_leap_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
is_leap.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
mod.ts docs(datetime): add constants to module docs (#5732) 2024-08-20 12:46:32 +09:00
parse_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
parse.ts refactor(datetime): cleanup DateTimeFormatter and parse() function (#5649) 2024-08-08 18:31:48 +02:00
week_of_year_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
week_of_year.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00