Cleaned up handling of navigating to new pages with query parameters, and navigating to links with #'s (named anchors). See #389.
Thank you to @kyasu1 for the issue report and suggested fixes!
[8.0.2] - 2021-08-03
Fixed
Change htmlFor HTML property to for HTML attribute in rendered HTML.
[8.0.1] - 2021-08-01
Fixed
<style> tags were escaping > characters when they should be preserved in that context. Fixed the pre-rendered HTML escaping to not escape for style tags.
Changed
Removed an argument from Site.config.
[8.0.0] - 2021-07-31
Added
You can now set the language of the root document with Head.rootLanguage.
Changed
Replaced Pages.PagePath.PagePath pathKey type with Path. The latest elm-pages generates a Route type for you, so you get
some type-safety from that already. In a future release, there will likely be a tool to help integrate DataSource values with elm-review
so you can check that programatically referenced pages exist (not just the route but the specific page).
Pages.Platform.init is no longer used to create the main entrypoint. Instead, elm-pages wires that up under the hood from the main files you write.
StaticHttp has been renamed to DataSource.Http. The core DataSource module has the DataSource type and the functions map, andThen,and other functions that aren't HTTP specific. There are additional modules now DataSource.Glob, DataSource.Port, and DataSource.File.
Removed
Pages.ImagePath.ImagePath pathKey has been removed - an elm-review integration could help users build checks for referencing valid files in the future,
but in a way that doesn't increase the bundle size (generating a record with entries for every page and every image file increases the Elm bundle size as the number of
pages/files grows, whereas using elm-review doesn't incur a runtime cost at all).
Fixed a bug where using ImagePath.external in any Head tags would prepend the canonical site URL to the external URL, creating an invalid URL. Now it will only prepend the canonical site URL for local images, and it will use external image URLs directly with no modifications.
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps dillonkearns/elm-pages from 9.0.0 to 10.0.2.
Changelog
Sourced from dillonkearns/elm-pages's changelog.
... (truncated)
Commits
c83ebd9
elm-review fix.2bc14ef
Bump NPM package.52cfc96
3.0.852b7877
Bump Elm package.ef6bbdb
Replace an ESM import file path with a cross-platform equivalent.5a2f8e5
Replace some instances of optional chaining operator with es5 equivalent.966b8b3
Scroll to top when navigating back to page with no hash.cf8f99a
Prevent page reloads when there is no hash.84f5982
Include query params in page navigations.36ccccf
Bump NPM package.You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show