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

Version Packages #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Version Packages #59

wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 29, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

Major Changes

  • #62 327916e Thanks @eps1lon! - Use JSON-based import config

    Instead of JS-based import config.
    Seems simpler.

    New default:

    {
    	"$schema": "https://github.com/eps1lon/codemod-missing-await-act/tree/main/config/schema-latest.json",
    	"version": 1,
    	"imports": [
    		{
    			"sources": [
    				"@testing-library/react",
    				"@testing-library/react/pure",
    				"@testing-library/react-native",
    				"@testing-library/react-native/pure"
    			],
    			"specifiers": [
    				"act",
    				"cleanup",
    				{ "imported": "fireEvent", "includeMemberCalls": true },
    				"render",
    				"renderHook"
    			]
    		},
    		{
    			"sources": "react",
    			"specifiers": ["act", "unstable_act"]
    		},
    		{
    			"sources": ["react-dom/test-utils", "react-test-renderer"],
    			"specifiers": ["act"]
    		}
    	]
    }

Patch Changes

  • #58 ee5204e Thanks @eps1lon! - Support React.act

    We previously didn't consider this method as newly async.

    Even though it isn't async yet, we should start codemodding it as if it were.
    We already codemodded unstable_act in the same way.
    unstable_act is renamed to act in React 19, so we should be ready for this change.

  • #61 b102b63 Thanks @eps1lon! - Log escaped bindings even if code wasn't changed

    E.g. export const myAct = scope => React.act(scope) is newly async,
    but we didn't used to log it because the code didn't change.
    Now we do log it as escaped and recommend running the codemod again.

  • #60 f10a345 Thanks @phryneas! - Add support for using syntax

    Previously, the codemod couldn't be applied to files leveraging explicit resource
    managmment with the using syntax.

@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from 44a7e60 to f4a688f Compare December 2, 2024 09:57
@github-actions github-actions bot force-pushed the changeset-release/main branch 5 times, most recently from 1cf5348 to ff3d33a Compare December 16, 2024 12:21
@github-actions github-actions bot force-pushed the changeset-release/main branch 8 times, most recently from 729cb58 to 5bf5013 Compare January 13, 2025 11:01
@github-actions github-actions bot force-pushed the changeset-release/main branch from 5bf5013 to cb413f0 Compare January 16, 2025 00:10
@github-actions github-actions bot force-pushed the changeset-release/main branch 9 times, most recently from 735f31f to c87f738 Compare January 28, 2025 12:40
@github-actions github-actions bot force-pushed the changeset-release/main branch from c87f738 to b8c336b Compare January 28, 2025 20:41
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.

0 participants