Use case
Framework
Owner
- Pinia Colada 0 14 Migration Recipe- This codemod updates the usage of PiniaColada to ensure that the enabled and gcTime options are correctly placed under queryOptions. Previously, these options were directly passed as top-level properties, which is now deprecated. The codemod transforms these patterns into the new structure where enabled is nested under queryOptions. - Codemod verified- Regularly tested and maintained by our engineers and codemod expert community by- @codemod 
- Devcycle To Openfeature Nodejs Variable Transform- This Codemod changes DevCycle variable calls to openfeature flags: 
- Devcycle To Openfeature Nodejs User Context Transform- This Codemod updates the - DevCycleUserobject to an OpenFeature- EvaluationContextobject:
- React Router/4/Move Hoc To Global Scope- Moves HOC calls to the global scope - Codemod verified- Regularly tested and maintained by our engineers and codemod expert community by- @codemod 
- Poulet42/Add Boilerplate Signature Glimmer- This codemod adds an empty component TS signature to glimmer components 
- Poulet42/Add Component To Template Registry- This codemod adds a glint registry declaration in component files if it's not present already. 
- Poulet42/Declare Ts Services- This codemod transforms @service decorators to use the correct TypeScript syntax 
- Goto To Location Href- Codemod Description- This codemod is designed to replace specific patterns in TypeScript files with updated code logic. It transforms instances of - goto($A)into- window.location.href = $A;when the- $Avalue is a URL starting with- http://or- https://. This refactor makes external navigation more explicit by using- window.location.href.
- Add Status To Error Handling- This codemod improves error handling in SvelteKit by updating the way errors are returned in the load function. In SvelteKit 1, errors were handled inconsistently, often missing the status property or failing to trigger the handleError hook. SvelteKit 2 standardizes error handling by automatically including the status and message properties in error responses. 
- Event Handling On Change- This codemod automates the update of your - onChangeevent handler function to support the new- Descendant[]type and selection handling introduced in version 0.104.
- Insert Nodes- Theis transformation ensures that calls to - Transforms.insertNodesin the updated API remain functional and behave identically to their usage in the older API (v0.88) while adhering to the new, more explicit parameterization.
- Schema Validation- This transformation involves modifying how a - paragraphblock type is handled in a schema-like structure by replacing its static configuration with a runtime validation function- (isValidNode).- Before
- With React Integration- This codemod transforms the usage of - withReact(createEditor())into a- useMemo-based structure, which wraps the editor creation and introduces an inline-checking function (- isInline) for the editor instance. This transformation optimizes the creation of the editor object by memoizing it.
- Editor State- This codemod migrates from using - useContext(EditorContext)to the new- useSlate()hook in Slate. It transforms the editor state management approach and adds new state hooks.
- Cursor Selection Handling- This codemod shows how to migrate cursor and - selectionhandling from Slate v0.88 to v0.104, including the Preventing runtime errors from null selections.
- Editor Node- This codemod transforms - Editor.nodeusage into- Editor.nodesformat. It also handles cases with both destructuring and non-destructuring .The new API returns an iterator of nodes instead of a single node, requiring changes to existing code patterns.
- Editor Has Path- This guide covers the migration of - Editor.hasPathusage from Slate.js v0.88 to v0.104. The API has changed from a property-based check to a function call pattern, requiring updates to existing code.
- Editor Has Block- Transform- Editor.hasBlockto- Editor.nodes- This codemod replaces occurrences of Editor.hasBlock with the equivalent Editor.nodes structure. The transformation updates the code to use a more modern API, ensuring compatibility and improved functionality. 
- Custom Renderers- This codemod updates the - renderElementfunction to include TypeScript typings and adds a default case for rendering unsupported element types.