aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2022-11-22 16:05:57 +0000
committerLouis Pilfold <louis@lpil.uk>2022-11-22 16:07:15 +0000
commitc3ec7aea019711145f7954149b34dbbf7abd4c62 (patch)
treecfec37b67c950ac0b714d77fe8e836eb0d4e7887
parentab2ff059c86fcdd596396982ee3383b878fc3baf (diff)
downloadjavascript-c3ec7aea019711145f7954149b34dbbf7abd4c62.tar.gz
javascript-c3ec7aea019711145f7954149b34dbbf7abd4c62.zip
v0.2.0
-rw-r--r--CHANGELOG.md4
-rw-r--r--gleam.toml5
-rw-r--r--manifest.toml4
-rw-r--r--src/gleam/javascript/promise.gleam2
4 files changed, 11 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3bab958..f03a751 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## v0.2.0 - 2022-11-22
+
+- The `promise.do_await_list` function has been removed.
+
## v0.1.0 - 2022-01-11
- The `javascript` module was created with the `TypeOf`, and `Symbol` types, and
diff --git a/gleam.toml b/gleam.toml
index 9be28fd..3d324e6 100644
--- a/gleam.toml
+++ b/gleam.toml
@@ -1,5 +1,5 @@
name = "gleam_javascript"
-version = "0.1.0"
+version = "0.2.0"
licences = ["Apache-2.0"]
description = "Work with JavaScript types and values in Gleam"
@@ -11,6 +11,9 @@ links = [
{ title = "Sponsor", href = "https://github.com/sponsors/lpil" },
]
+[javascript]
+typescript_declarations = true
+
[dependencies]
gleam_stdlib = "~> 0.19"
diff --git a/manifest.toml b/manifest.toml
index bef7781..ed0b856 100644
--- a/manifest.toml
+++ b/manifest.toml
@@ -2,8 +2,8 @@
# You typically do not need to edit this file
packages = [
- { name = "gleam_stdlib", version = "0.19.2", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "FFA79EA12369F122B68885E694E097D6810402A2F86BFF48AAE9E40ACE654F4C" },
- { name = "gleeunit", version = "0.6.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "77701A5E5A565727E1EEAC9196FB878D544049B6331CD0305B5A69699135EA1C" },
+ { name = "gleam_stdlib", version = "0.25.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "AD0F89928E0B919C8F8EDF640484633B28DBF88630A9E6AE504617A3E3E5B9A2" },
+ { name = "gleeunit", version = "0.7.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "5F4FBED3E93CDEDB0570D30E9DECB7058C2D327996B78BB2D245C739C7136010" },
]
[requirements]
diff --git a/src/gleam/javascript/promise.gleam b/src/gleam/javascript/promise.gleam
index 8f90022..45f9a0f 100644
--- a/src/gleam/javascript/promise.gleam
+++ b/src/gleam/javascript/promise.gleam
@@ -97,5 +97,5 @@ pub fn await_list(xs: List(Promise(a))) -> Promise(List(a)) {
|> map(array.to_list)
}
-pub external fn do_await_list(List(Promise(a))) -> Promise(Array(a)) =
+external fn do_await_list(List(Promise(a))) -> Promise(Array(a)) =
"../../ffi.mjs" "all_promises"