From fc4f029088bd9556338fe9872170a7f894dac895 Mon Sep 17 00:00:00 2001 From: inoas Date: Sat, 19 Oct 2024 18:09:10 +0200 Subject: [PATCH 1/3] losen-dep-cons --- gleam.toml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gleam.toml b/gleam.toml index aae92ca..6cac58c 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "feather" -version = "1.2.0" +version = "1.2.1" # Fill out these fields if you intend to generate HTML documentation or publish # your project to the Hex package manager. @@ -13,15 +13,15 @@ repository = { type = "github", user = "VioletBuse", repo = "feather" } # https://gleam.run/writing-gleam/gleam-toml/. [dependencies] -gleam_stdlib = ">= 0.34.0 and < 2.0.0" -sqlight = ">= 0.9.0 and < 1.0.0" -simplifile = ">= 2.0.0 and < 3.0.0" +argv = ">= 1.0.2 and < 2.0.0" filepath = ">= 1.0.0 and < 2.0.0" +gleam_erlang = ">= 0.25.0 and < 2.0.0" +gleam_otp = ">= 0.10.0 and < 2.0.0" +gleam_stdlib = ">= 0.34.0 and < 2.0.0" justin = ">= 1.0.1 and < 2.0.0" -argv = ">= 1.0.2 and < 2.0.0" -gleam_erlang = ">= 0.25.0 and < 1.0.0" -puddle = ">= 0.5.0 and < 1.0.0" -gleam_otp = ">= 0.10.0 and < 1.0.0" +puddle = ">= 0.5.0 and < 2.0.0" +simplifile = ">= 2.0.0 and < 3.0.0" +sqlight = ">= 0.9.0 and < 2.0.0" tom = ">= 1.0.1 and < 2.0.0" [dev-dependencies] From 89ceb8a6bee881535202d3b2adf09569265b8159 Mon Sep 17 00:00:00 2001 From: inoas Date: Sat, 19 Oct 2024 18:20:29 +0200 Subject: [PATCH 2/3] fix-readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8242fed..a47573b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/feather/) ```sh -gleam add feather +gleam add feather@v2 ``` Add the following fields to your gleam.toml file: @@ -20,15 +20,16 @@ Running the command `gleam run -m feather -- schema` will create the file ./sche ```gleam import feather +import feather/migrate import gleam/result import gleam/erlang import sqlight pub fn main() { let assert Ok(priv_dir) = erlang.priv_directory("my_module_name") - use migrations <- result.try(feather.get_migrations(priv_dir <> "/migrations")) + use migrations <- result.try(migrate.get_migrations(priv_dir <> "/migrations")) use connection <- feather.connect(feather.Config(..feather.default_config(), file: "./database.db")) - feather.migrate(migrations, on: connection) + migrate.migrate(migrations, on: connection) } ``` From 23abf5f9c6612e05e8a8fdf4b4f9341a9a326d3c Mon Sep 17 00:00:00 2001 From: inoas Date: Sat, 19 Oct 2024 18:20:48 +0200 Subject: [PATCH 3/3] fix-readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a47573b..53affc8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/feather/) ```sh -gleam add feather@v2 +gleam add feather@v1 ``` Add the following fields to your gleam.toml file: