Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.16.0] - 2020-08-14

Breaking changes (😱!!!):
- **Remove shorthands for `before`, `then`, and `else` (#664)**
- **Remove shorthands for `color`, `before`, `then`, and `else` flags (#670, #664)**

Both `then` and `target` had the shorthand `t`, so the shorthand for `then` was removed.
Since `then`, `before`, and `else` are all shared between several commands, it seemed
natural to remove the shorthands for the other shared commands too, so as to not cause
natural to remove the shorthands for the other shared commands too, so as to not cause
future shorthand name conflicts.
A similar collision problem happened with the `color` flag, so its shorthand was removed.
- **Pass main function argument to `--run` for alternate backends (#668)**

This is a braking change because now alternate backends are expected to accept
an argument to their `run` flag. This change was coordinated among various backends
so the migration should be relatively smooth, but you should check if your backend
it able to support this.

New features:
- Ignore .gitignore files in `--watch` by default (#665)
- Add `--allow-ignored` to allow files ignored via .gitignore to trigger rebuilds (#665)
- Upgrade to `[email protected]`, that introduces grouping by package in local docs (#679)
- Ignore `.gitignore`d files in `--watch` by default - you can disable this with `--allow-ignored` (#665)
- Support `upgrade-set` for alternative package-set repositories (#671)

Bugfixes:
- Make the output of `spago --version` the same with `spago version` (#675)
- Ensure the existence of the global cache directory (#672, #667)

Other improvements:
- Docs: updated package addition/overriding syntax to use `with` syntax (#661)
- Pass main function argument to `--run` for alternate backends
- Support `upgrade set` for alternative package-set repositories
- Do not print "Installation complete" if nothing was installed (#676)
- Docs: updated package addition/overriding syntax to use `with` syntax (#661, #663)
- Docs: fix Webpack template (#653)
- Docs: document how to pass arguments to `main` (#655)
- Error messages: do not print "Installation complete" if nothing was installed (#676)

## [0.15.3] - 2020-06-15

Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: spago
version: 0.15.3
version: 0.16.0
github: "purescript/spago"
license: BSD3
author: "Justin Woo, Fabrizio Ferrai"
Expand Down
8 changes: 4 additions & 4 deletions src/Spago/Build.hs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ docs format sourcePaths depsOnly noSearch open = do
logInfo "Making the documentation searchable..."
writeTextFile ".spago/purescript-docs-search" Templates.docsSearch
writeTextFile ".spago/docs-search-app.js" Templates.docsSearchApp
let cmd = "node .spago/purescript-docs-search build-index"
let cmd = "node .spago/purescript-docs-search build-index --package-name " <> surroundQuote name
logDebug $ "Running `" <> display cmd <> "`"
shell cmd empty >>= \case
ExitSuccess -> pure ()
Expand All @@ -330,8 +330,8 @@ docs format sourcePaths depsOnly noSearch open = do
openLink link = liftIO $ Browser.openBrowser (Text.unpack link)

-- | Start a search REPL.
search
:: (HasPurs env, HasLogFunc env, HasConfig env)
search
:: (HasPurs env, HasLogFunc env, HasConfig env)
=> RIO env ()
search = do
Config{..} <- view configL
Expand All @@ -345,6 +345,6 @@ search = do
]

writeTextFile ".spago/purescript-docs-search" Templates.docsSearch
let cmd = "node .spago/purescript-docs-search search"
let cmd = "node .spago/purescript-docs-search search --package-name " <> surroundQuote name
logDebug $ "Running `" <> display cmd <> "`"
viewShell $ callCommand $ Text.unpack cmd
2 changes: 1 addition & 1 deletion src/Spago/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ assertDirectory directory = do

-- | Release tag for the `purescript-docs-search` app.
docsSearchVersion :: Text
docsSearchVersion = "v0.0.9"
docsSearchVersion = "v0.0.10"


githubTokenEnvVar :: IsString t => t
Expand Down