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

Inline type-detect as a simple function #1544

Merged
merged 4 commits into from Oct 20, 2023

Conversation

koddsson
Copy link
Member

I think the type-detect function can be deprecated as all there is much more spec conformance than was when type-detect was created.

@koddsson koddsson marked this pull request as ready for review October 20, 2023 07:42
@koddsson koddsson requested a review from a team as a code owner October 20, 2023 07:42
keithamus
keithamus previously approved these changes Oct 20, 2023
lib/chai/utils/type-detect.js Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@43081j
Copy link
Contributor

43081j commented Oct 20, 2023

you're probably right but it does mean we'd be missing the special results like global right?

i.e. it looks like the old one type(globalThis) === 'global'

Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM 👍

@koddsson koddsson merged commit 9e276dc into chaijs:5.x.x Oct 20, 2023
3 checks passed
@koddsson koddsson deleted the remove-type-detect branch October 20, 2023 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants