Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codemod-missing-await-act

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemod-missing-await-act - npm Package Versions

0.3.0

Diff

Changelog

Source

0.3.0

Minor Changes

Patch Changes

  • #26 c74e8af Thanks @eps1lon! - Ensure different import configs can be used during module lifetime

  • #32 eaefca3 Thanks @eps1lon! - Update Node.js support matrix

    Codemod officially supports all currently Node.js versions listed in https://nodejs.org/en/about/previous-releases#release-schedule.

  • #30 25492dd Thanks @eps1lon! - Add support for files using import assertions

    E.g. import manifest from './package.json' assert { type: 'json' }

eps1lon
published 0.2.0 •

Changelog

Source

0.2.0

Minor Changes

  • #20 b22e5ff Thanks @eps1lon! - Codemod React Native Testing Library by default

  • #14 408a664 Thanks @eps1lon! - Warn when a newly-async function is exported

    This codemod can only propagate newly async methods within a file. Once a function is exported, we can't propagate that with a codemod. We'll later add support for configuring detection mechanisms. Once that is done, we'll instruct to rerun the codemod with updated configuration until no more warnings remain.

  • #16 9890da7 Thanks @eps1lon! - Allow config of method names

Patch Changes

  • #19 4608966 Thanks @eps1lon! - Skip .d.mts files

    We already skiped .d.ts and .d.cts.

  • #15 3fd0c4e Thanks @eps1lon! - Stop codemodding declaration files

  • #12 8625705 Thanks @eps1lon! - Consider import aliases

    Previously, we didn't check if a call was from an import alias. For example, given import { act as domAct } from '@testing-library/react', we didn't consider domAct to be async since we only looked for exports from @testing-library/dom with the name act. Now we properly map renames.

  • #18 e844aba Thanks @eps1lon! - Fix crash when import config used default imports

  • #17 fc70a45 Thanks @eps1lon! - Warn on newly async if exported direct

    E.g. export function render() { act() } used to not trigger warnings. Only on export { render }. Now export ... correctly triggers a warning if the exported value is now an async function.

eps1lon
published 0.1.0 •

Changelog

Source

0.1.0

Minor Changes

Patch Changes

eps1lon
published 0.0.1 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc