mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 14:34:18 +03:00
2.2 KiB
2.2 KiB
Changelog
All notable changes to
the dillonkearns/elm-pages
elm package
will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
[Unreleased]
[1.1.0] - 2020-01-03
*Check out this upgrade checklist for more details and steps for upgrading your project.
Added
- There's a new StaticHttp API. Read more about it in this
StaticHttp
announcement blog post! - The generated
Pages.elm
module now includesbuiltAt : Time.Posix
. Make sure you haveelm/time
as a dependency in your project! You can use this when you make API requests to filter based on a date range starting with the current date. If you want a random seed that changes on each build (or every week, or every month, etc.), then you can use this time stamp (and perform modulo arithemtic based on the date for each week, month, etc.) and use that number as a random seed.
Changed
- Instead of initializing an application using
Pages.application
from the generatedPages
module, you now initialize the app usingPages.Platform.application
which is part of the published Elm package. So now it's easier to browse the docs. You pass in some internal data from the generatedPages.elm
module now by including this in the application config record:Pages.Platform.application { internals = Pages.internals, ... <other fields> }
. - Add init argument and user Msg for initial PagePath and page changes (see #4).
[1.0.1] - 2019-11-04
Fixed
- Generate files for extensions other than
.md
and.emu
(fixes #16). As always, be sure to also use the latest NPM package.