nushell/crates/nu-std/std
Douglas e17f6d654c
Deprecate date to-record and date to-table (#14319)
# Description

Implements #11234 based on the comments there:

* (Previously implemented): `into record` handles nanoseconds (as well
as milliseconds and microseconds, which the deprecated commands didn't
support).
* Added deprecation warning to `date to-record` and `date to-table`
* Added new example for `into record` showing the conversion to a table
* Changed `std/dt` to use `into record`
* Added "Deprecated" category back to nu-protocol::Signature
* Assigned the deprecated commands to the Deprecated category so be
categorized properly in the online Doc.

# User-Facing Changes

Deprecated command warning

# Tests + Formatting

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

Searched doc for existing uses of `date to-record` and `date to-table`:

* For primary English-language docs, there are no uses other than in the
auto-generated command help, which will be updated based on this PR
* Other language translations appear to have an old use in several
places and will need to be updated to match the English-language doc.
2024-11-29 23:06:26 +01:00
..
assert Virtual std module subdirectories (#14040) 2024-10-10 06:56:37 -05:00
bench Virtual std module subdirectories (#14040) 2024-10-10 06:56:37 -05:00
config Remove unused FlatShapes And/Or (#14476) 2024-11-29 22:23:40 +01:00
core Respect use_ansi_coloring setting in banner (#14049) 2024-10-10 09:58:37 -05:00
dirs Fix small typos in std/dirs (#14422) 2024-11-23 16:04:27 -06:00
dt Deprecate date to-record and date to-table (#14319) 2024-11-29 23:06:26 +01:00
formats add from ndnuon and to ndnuon to stdlib (#14334) 2024-11-27 09:43:49 +08:00
help make std help more user friendly (#14347) 2024-11-27 09:29:25 +08:00
input Virtual std module subdirectories (#14040) 2024-10-10 06:56:37 -05:00
iter Virtual std module subdirectories (#14040) 2024-10-10 06:56:37 -05:00
log Virtual std module subdirectories (#14040) 2024-10-10 06:56:37 -05:00
math Virtual std module subdirectories (#14040) 2024-10-10 06:56:37 -05:00
util Virtual std module subdirectories (#14040) 2024-10-10 06:56:37 -05:00
xml Virtual std module subdirectories (#14040) 2024-10-10 06:56:37 -05:00
mod.nu Always load default env/config values (#14249) 2024-11-20 16:15:15 -06:00