Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ambiguous into bits impl for date #12313

Merged
merged 1 commit into from Mar 30, 2024

Conversation

sholderbach
Copy link
Member

Description

Currently into bits will try to coerce a date/Value::Date into a string with a locale/timezone specific behavior (See #12268).

To resolve the ambiguity, remove the support for date entirely.

User-Facing Changes

date now | into bits will now fail.

Instead you can use ... | format date '%c' | into bits or any more specific explicit choices to achieve the same behavior.

As into bits has minimal uses (and only pulled out of extra with #12140), this doesn't warrant a deprecation.

Currently `into bits` will try to coerce a `date`/`Value::Date` into a
string with a locale/timezone specific behavior (See nushell#12268).

To resolve the ambiguity, remove the support for `date` entirely.

Instead you can use `... | format date '%c' | into bits`  or any more
specific explicit choices to achieve the same behavior.

As `into bits` has minimal uses (and only pulled out of `extra` with
nushell#12140), this doesn't warrant a deprecation.
@sholderbach sholderbach added pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes pr:commands This PR changes our commands in some way labels Mar 28, 2024
@sholderbach sholderbach merged commit 3b8258a into nushell:main Mar 30, 2024
15 checks passed
@sholderbach sholderbach deleted the no-date-for-into-bits branch March 30, 2024 23:46
@hustcer hustcer added this to the v0.92.0 milestone Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes pr:commands This PR changes our commands in some way
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants