Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Rename boolean() checker to bool() #1962

Closed

Conversation

drarmstr
Copy link
Contributor

Summary:
Resolves #1922

Rename boolean() checker to bool() since boolean is a reserved word in JS and the export was not working for the open source build.

While this might be considered a breaking API change, we can argue it's only a semantic version patch number update since the previous export didn't actually work so this is still just a bug fix.

Differential Revision: D38800113

Summary:
Resolves facebookexperimental#1922

Rename `boolean()` checker to `bool()` since `boolean` is a reserved word in JS and the export was not working for the open source build.

While this might be considered a breaking API change, we can argue it's only a semantic version patch number update since the previous export didn't actually work so this is still just a bug fix.

Differential Revision: D38800113

fbshipit-source-id: 69fd0e8a369fdfecf5996f306f461ae8379b0245
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Aug 17, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D38800113

@drarmstr drarmstr mentioned this pull request Aug 17, 2022
@drarmstr drarmstr self-assigned this Aug 17, 2022
@drarmstr drarmstr added build / infra Component: refine related to refine bug Something isn't working labels Aug 17, 2022
facebook-github-bot pushed a commit that referenced this pull request Aug 18, 2022
Summary:
Pull Request resolved: #1959

Refine 0.1.1 release:

- Rename `boolean()` export to `bool()` since `boolean` is a reserved word (#1922, #1962)
- Remove reference to `native` directory in `package.json` to cleanup errors for `react-native`. (#1931)
- Export `Path` class for custom checkers. (#1950, #1956)
- Extend the failure message of `union()` and `or()` with each type. (#1961)

Reviewed By: bsouthga

Differential Revision: D38764896

fbshipit-source-id: 5eb0327ab9034f3f0802796d986fd6e7df28f05c
@drarmstr drarmstr deleted the export-D38800113 branch August 18, 2022 22:41
snipershooter0701 pushed a commit to snipershooter0701/Recoil that referenced this pull request Mar 5, 2023
Summary:
Pull Request resolved: facebookexperimental/Recoil#1962

Resolves #1922

Rename `boolean()` checker to `bool()` since `boolean` is a reserved word in JS and the export was not working for the open source build.

While this might be considered a breaking API change, we can argue it's only a semantic version patch number update since the previous export didn't actually work so this is still just a bug fix.

Reviewed By: wd-fb, lwxted

Differential Revision: D38800113

fbshipit-source-id: fda866b16f8742e5a5e7a15644744295e4179a57
eagle2722 added a commit to eagle2722/Recoil that referenced this pull request Sep 21, 2024
Summary:
Pull Request resolved: facebookexperimental/Recoil#1962

Resolves #1922

Rename `boolean()` checker to `bool()` since `boolean` is a reserved word in JS and the export was not working for the open source build.

While this might be considered a breaking API change, we can argue it's only a semantic version patch number update since the previous export didn't actually work so this is still just a bug fix.

Reviewed By: wd-fb, lwxted

Differential Revision: D38800113

fbshipit-source-id: fda866b16f8742e5a5e7a15644744295e4179a57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working build / infra CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Component: refine related to refine fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with using boolean() from refine pckg
2 participants