Releases: roc-lang/basic-webserver
0.11.0
Roc syntax to use this platform:
app [main] { pf: platform "https://github.com/roc-lang/basic-webserver/releases/download/0.11.0/yWHkcVUt_WydE1VswxKFmKFM5Tlu9uMn6ctPVYaas7I.tar.br" }
Breaking Changes
Full Changelog: 0.10.0...0.11.0
Migration guide
-
!
is now part of the function name of effectful functions (= all platform functions), it is no longer syntax sugar forTask.await
. -
I recommend taking a look at the changes in the hello-web example and copying them for your use case
-
All basic-webserver functions have changed to snake_case naming.
-
Task
is no longer needed, you can switch to usingResult
,=>
is used in the type of a function if it is effectful. Change:Task.ok
toOk
Task.err
toErr
Task
toResult
Task.loop
to a recursive function- Example with
=>
:
rocVersionCheck : Task {} _ rocVersionCheck =
To:
rocVersionCheck! : {} => Result {} _ rocVersionCheck! = \{} ->
-
We recommend the use of the
try
keyword:- replace
Stdout.line! "hello"
withtry Stdout.line! "hello"
- use it instead of
Task.await
- replace
Feel free to suggest additions to the migration guide!
0.10.0
Roc syntax to use this platform:
app [main] { pf: platform "https://github.com/roc-lang/basic-webserver/releases/download/0.10.0/BgDDIykwcg51W8HA58FE_BjdzgXVk--ucv6pVb_Adik.tar.br" }
Breaking Changes
- Reordered the arguments of File.write, File.writeBytes and File.writeUtf8 #78
- Added support for http extension methods #76
- Roc Str.split and List.split updates #79
Other Changes
New Contributors
- @jgresty made their first contribution in #76
- @isaacvando made their first contribution in #78
Full Changelog: 0.9.0...0.10.0
0.9.0
Roc syntax to use this platform:
app [main] { pf: platform "https://github.com/roc-lang/basic-webserver/releases/download/0.9.0/taU2jQuBf-wB8EJb0hAkrYLYOGacUU5Y9reiHG45IY4.tar.br" }
What's Changed
Full Changelog: 0.8.0...0.9.0
Upgrade Notes
Task
is now builtin in Roc, to upgrade to this release you probably just need to remove Task
imports like this one:
import pf.Task exposing [Task]
0.8.0
Roc syntax to use this platform:
app [Model, server] {
pf: platform "https://github.com/roc-lang/basic-webserver/releases/download/0.8.0/jz2EfGAtz_y06nN7f8tU9AvmzhKK-jnluXQQGa9rZoQ.tar.br"
}
What's Changed
- Replaced deprecated backpassing #69
Full Changelog: 0.7.0...0.8.0
0.7.0
0.6.0
What's Changed
- fix hardcoded host value in println by @joprice in #53
- macos-11 deprecated by @Anton-4 in #56
- flake update by @Anton-4 in #57
- Update code examples to use "!" syntax by @a-lavis in #55
- Add
Task.seq
andTask.forEach
by @lukewilliamboswell in #19 - ignore .DS_Store files by @bhansconnect in #59
- Sqlite improvements: Part 1 by @bhansconnect in #60
New Contributors
Full Changelog: 0.5.0...0.6.0
0.5.0
What's Changed
- back to normal roc url by @Anton-4 in #46
- Add
Task.result
by @lukewilliamboswell in #47 - test macos too by @Anton-4 in #48
- Change the "Listening on..." stdout message by @rtfeldman in #50
- Upgrade module syntax and fix import warnings by @agu-z in #52
New Contributors
- @rtfeldman made their first contribution in #50
Full Changelog: 0.4.0...0.5.0
0.4.0
roc webApp.roc --linker=legacy
. See roc-lang/roc#3609 for more info.
Breaking changes
- New record decoding signature (#45)
Misc changes
- flake lock update (#44)
Full Changelog: 0.3.0...0.4.0
0.3.0
--linker=legacy
when using this platform. For example: roc webApp.roc --linker=legacy
. See roc-lang/roc#3609 for more info.
Roc syntax to use this platform:
packages { pf: "https://github.com/roc-lang/basic-webserver/releases/download/0.3.0/gJOTXTeR3CD4zCbRqK7olo4edxQvW5u3xGL-8SSxDcY.tar.br" }
What's Changed
- Integrated Sqlite into platform #35
- Added ROC_BASIC_WEBSERVER_HOST and ROC_BASIC_WEBSERVER_PORT variables #15
- Simplified Request body, added
parseFormUrlEncoded
#41 - Added Nix Flake #33
- Several Utc functions now use I128 instead of U128 to be able to represent dates before 1970 #31
Nat
was replaced byU64
#42
Bugfixes
New Contributors
Full Changelog: 0.2.0...0.3.0