Skip to content

Compatibility with Slonik v33 #417

@aust1nz

Description

@aust1nz

The Slonik 33 release removes the sql method in favor of sql.type and sql.fragment.

This prevents the @slonik/migrator CLI from working effectively with a

Error: (0 , slonik_1.sql) is not a function

message.

I'm able to monkey-patch the slonik/migrator file and replace instances of sql with sql.unsafe to get things running against Slonik 33, but I'm not really sure what the fix would be to ensure that recent versions of Slonik and earlier versions of Slonik are working effectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions