Skip to content

Commit 71b093c

Browse files
authored
0.15.3 → 0.16.0 (#679)
* Prepare release * Update changelog
1 parent 841bad2 commit 71b093c

File tree

4 files changed

+25
-14
lines changed

4 files changed

+25
-14
lines changed

CHANGELOG.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.16.0] - 2020-08-14
11+
1012
Breaking changes (😱!!!):
11-
- **Remove shorthands for `before`, `then`, and `else` (#664)**
13+
- **Remove shorthands for `color`, `before`, `then`, and `else` flags (#670, #664)**
1214

1315
Both `then` and `target` had the shorthand `t`, so the shorthand for `then` was removed.
1416
Since `then`, `before`, and `else` are all shared between several commands, it seemed
15-
natural to remove the shorthands for the other shared commands too, so as to not cause
17+
natural to remove the shorthands for the other shared commands too, so as to not cause
1618
future shorthand name conflicts.
19+
A similar collision problem happened with the `color` flag, so its shorthand was removed.
20+
- **Pass main function argument to `--run` for alternate backends (#668)**
21+
22+
This is a braking change because now alternate backends are expected to accept
23+
an argument to their `run` flag. This change was coordinated among various backends
24+
so the migration should be relatively smooth, but you should check if your backend
25+
it able to support this.
1726

1827
New features:
19-
- Ignore .gitignore files in `--watch` by default (#665)
20-
- Add `--allow-ignored` to allow files ignored via .gitignore to trigger rebuilds (#665)
28+
- Upgrade to `docs-search@v0.0.10`, that introduces grouping by package in local docs (#679)
29+
- Ignore `.gitignore`d files in `--watch` by default - you can disable this with `--allow-ignored` (#665)
30+
- Support `upgrade-set` for alternative package-set repositories (#671)
2131

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

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

3142
## [0.15.3] - 2020-06-15
3243

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: spago
2-
version: 0.15.3
2+
version: 0.16.0
33
github: "purescript/spago"
44
license: BSD3
55
author: "Justin Woo, Fabrizio Ferrai"

src/Spago/Build.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ docs format sourcePaths depsOnly noSearch open = do
305305
logInfo "Making the documentation searchable..."
306306
writeTextFile ".spago/purescript-docs-search" Templates.docsSearch
307307
writeTextFile ".spago/docs-search-app.js" Templates.docsSearchApp
308-
let cmd = "node .spago/purescript-docs-search build-index"
308+
let cmd = "node .spago/purescript-docs-search build-index --package-name " <> surroundQuote name
309309
logDebug $ "Running `" <> display cmd <> "`"
310310
shell cmd empty >>= \case
311311
ExitSuccess -> pure ()
@@ -330,8 +330,8 @@ docs format sourcePaths depsOnly noSearch open = do
330330
openLink link = liftIO $ Browser.openBrowser (Text.unpack link)
331331

332332
-- | Start a search REPL.
333-
search
334-
:: (HasPurs env, HasLogFunc env, HasConfig env)
333+
search
334+
:: (HasPurs env, HasLogFunc env, HasConfig env)
335335
=> RIO env ()
336336
search = do
337337
Config{..} <- view configL
@@ -345,6 +345,6 @@ search = do
345345
]
346346

347347
writeTextFile ".spago/purescript-docs-search" Templates.docsSearch
348-
let cmd = "node .spago/purescript-docs-search search"
348+
let cmd = "node .spago/purescript-docs-search search --package-name " <> surroundQuote name
349349
logDebug $ "Running `" <> display cmd <> "`"
350350
viewShell $ callCommand $ Text.unpack cmd

src/Spago/Prelude.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ assertDirectory directory = do
198198

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

203203

204204
githubTokenEnvVar :: IsString t => t

0 commit comments

Comments
 (0)