Update for Gleam 0.33

This commit is contained in:
Mikko Ahlroth 2023-12-27 23:06:28 +02:00
parent 0186e62c10
commit 4d8cb15450
5 changed files with 24 additions and 13 deletions

2
.tool-versions Normal file
View file

@ -0,0 +1,2 @@
gleam 0.33.0
nodejs 20.10.0

9
CHANGELOG Normal file
View file

@ -0,0 +1,9 @@
2.0.0
-----
* Updated for Gleam 0.33.0.
1.0.0
-----
* Initial release.

View file

@ -1,8 +1,8 @@
name = "varasto" name = "varasto"
version = "1.0.0" version = "2.0.0"
description = "Typed access to LocalStorage/SessionStorage in Gleam" description = "Typed access to LocalStorage/SessionStorage in Gleam"
target = "javascript" target = "javascript"
gleam = ">= 0.30.0" gleam = ">= 0.33.0"
# Fill out these fields if you intend to generate HTML documentation or publish # Fill out these fields if you intend to generate HTML documentation or publish
# your project to the Hex package manager. # your project to the Hex package manager.
@ -12,9 +12,9 @@ repository = { type = "gitlab", user = "Nicd", repo = "varasto" }
links = [] links = []
[dependencies] [dependencies]
gleam_stdlib = "~> 0.30" gleam_stdlib = "~> 0.34"
plinth = ">= 0.1.2" plinth = ">= 0.1.2"
gleam_json = "~> 0.6" gleam_json = "~> 0.6"
[dev-dependencies] [dev-dependencies]
gleeunit = "~> 0.10" gleeunit = "~> 1.0"

View file

@ -2,16 +2,16 @@
# You typically do not need to edit this file # You typically do not need to edit this file
packages = [ packages = [
{ name = "gleam_javascript", version = "0.6.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_javascript", source = "hex", outer_checksum = "BFEBB63ABE4A1694E07DEFD19B160C2980304B5D775A89D4B02E7DE7C9D8008B" }, { name = "gleam_javascript", version = "0.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_javascript", source = "hex", outer_checksum = "B5E05F479C52217C02BA2E8FC650A716BFB62D4F8D20A90909C908598E12FBE0" },
{ name = "gleam_json", version = "0.6.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "C6CC5BEECA525117E97D0905013AB3F8836537455645DDDD10FE31A511B195EF" }, { name = "gleam_json", version = "0.7.0", build_tools = ["gleam"], requirements = ["thoas", "gleam_stdlib"], otp_app = "gleam_json", source = "hex", outer_checksum = "CB405BD93A8828BCD870463DE29375E7B2D252D9D124C109E5B618AAC00B86FC" },
{ name = "gleam_stdlib", version = "0.30.2", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "8D8BF3790AA31176B1E1C0B517DD74C86DA8235CF3389EA02043EE4FD82AE3DC" }, { name = "gleam_stdlib", version = "0.34.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "1FB8454D2991E9B4C0C804544D8A9AD0F6184725E20D63C3155F0AEB4230B016" },
{ name = "gleeunit", version = "0.11.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "1397E5C4AC4108769EE979939AC39BF7870659C5AFB714630DEEEE16B8272AD5" }, { name = "gleeunit", version = "1.0.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D364C87AFEB26BDB4FB8A5ABDE67D635DC9FA52D6AB68416044C35B096C6882D" },
{ name = "plinth", version = "0.1.2", build_tools = ["gleam"], requirements = ["gleam_javascript", "gleam_stdlib"], otp_app = "plinth", source = "hex", outer_checksum = "E40A48FAA3AB9410803AB937BE620692D86B7ABB46459A83E8C674B82CFFD05B" }, { name = "plinth", version = "0.1.6", build_tools = ["gleam"], requirements = ["gleam_stdlib", "gleam_javascript", "gleam_json"], otp_app = "plinth", source = "hex", outer_checksum = "EAF2A3229F618C6831B6AE23E9DB7DA793C9D4453CC7C40D6E6FE16F1E2524B5" },
{ name = "thoas", version = "0.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "4918D50026C073C4AB1388437132C77A6F6F7C8AC43C60C13758CC0ADCE2134E" }, { name = "thoas", version = "0.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "4918D50026C073C4AB1388437132C77A6F6F7C8AC43C60C13758CC0ADCE2134E" },
] ]
[requirements] [requirements]
gleam_json = { version = "~> 0.6" } gleam_json = { version = "~> 0.6" }
gleam_stdlib = { version = "~> 0.30" } gleam_stdlib = { version = "~> 0.34" }
gleeunit = { version = "~> 0.10" } gleeunit = { version = "~> 1.0" }
plinth = { version = ">= 0.1.2" } plinth = { version = ">= 0.1.2" }

View file

@ -1,8 +1,8 @@
//// Typed access to the Web Storage API. //// Typed access to the Web Storage API.
import gleam/result import gleam/result
import gleam/dynamic.{Dynamic} import gleam/dynamic.{type Dynamic}
import gleam/json.{Json} import gleam/json.{type Json}
import plinth/javascript/storage as plinth_storage import plinth/javascript/storage as plinth_storage
/// An error that occurs when reading. /// An error that occurs when reading.