Skip to content

v1.1.0.0

Compare
Choose a tag to compare
@ali-abrar ali-abrar released this 25 May 13:10

v1.1.0.0 - 2023-05-24

  • Update reflex-platform to version 1.0.1.0 with GHC 8.10 and updated nixpkgs
    • Make GHC 8.10 the default. To continue using GHC 8.6.5, set the __useNewerCompiler flag in default.nix to false.
  • Documentation
    • #913: Add haddocks to Obelisk.Command.Deploy
    • #919: Document useful command for testing Obelisk branches to CONTRIBUTING.md
    • #931: For ob deploy init, command-line option --check-known-host corrected in readme, caveat added for multiple matching host-keypairs.
  • building
  • nix
    • #889: Remove override of acme module that pinned it to the version in nixpkgs-20.03. This is used for automatic https certificate provisioning.
    • #968: Expose parts of the server derivation as subattributes. For example, the un-assetified frontend can be built alone with nix-build -A exe.frontend.
  • CLI
    • #784: Hint for users to take advantage of ob shell --no-interpret option for thunks
    • #870: Host redirection added to ob deploy. Readme updated with tutorial for new functionality.
    • #916: Add check-known-hosts option in ob deploy init.
    • #931: Fix bug in ob deploy init where ssh-keygen was not found in nix store.
    • #934, #936: obelisk now always uses absolute paths when generating .ghci files for REPL and IDE support. This is a BREAKING change for some old tools that could not handle absolute paths properly. However, due to the behavior of cross-volume relative paths on certain platforms, such as modern MacOS, we cannot guarantee proper operation of obelisk with relative paths.
    • #948: Obelisk now always invokes bash instead of the system-wide shell when it can. Some sub-programs, like ghcid, will still use the system-wide shell, which can cause subtle problems due to impurities.
    • #949: Obelisk now configures its output and error streams to transliterate unsupported characters to a known-good replacement character.
    • #951: Add ob run --port which allows the user to override the port on which the app is served, rather than always using the port configured in the route. This is compatible with the use of reverse proxies that do their own TLS termination, e.g. ngrok.
    • #974: Fail ob run when invalid fields are present in default-extensions/default-language, or when Cabal files are otherwise invalid.
  • obelisk-route
    • #915: Add routeLinkAttr to Obelisk.Route.Frontend. This allows the creation of route links with additional, user-specified DOM attributes.
    • #918: Add GHC 8.10.7 support for obelisk-route.
    • #952: Add a Semigroupoid instance for the Encoder type, compatible with its existing Category instance.
    • #957: ob deploy will now detect when the target machine needs to be rebooted after deployment, and automatically do so. This is necessary, for example, when the kernel has been updated.
  • Javascript FFI
    • #844: Jsaddle FFI example extended in skeleton (example project which is installed by ob init). Note the remark on minifier renaming in skeleton/static/lib.js
    • #903: Added support for externs.js, a file which allows users to specify JavaScript identifiers which should be avoided by Closure Compiler during its minification step. See the FAQ.
  • Static Assets
    • #922: Serve .wasm files with the correct MIME type.
    • #930: Add an error to ob run when static is called with a path to a file that doesn't exist
    • #940: Automatically restart the server when configuration is updated via ob deploy push.
    • #959: Add an error to ob run when staticFilePath is called with a path to a file that doesn't exist
    • #1011: Update default iOS SDK to 15.0
    • #835: Rebuild static assets in fewer circumstances:
      • Watch frontend, backend, common, and static instead of the project root to avoid spurious rebuilds when other files change
      • Don't call nix show-derivation to decide whether to rebuild since it seems to do about as much work as a no-op nix-build
      • Add a debug message indicating which file changes triggered the static file rebuild

New Contributors

Full Changelog: v1.0.0.0...v1.1.0.0