Skip to content

Commit b90c6e6

Browse files
committed
changelog
1 parent 159387a commit b90c6e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# CHANGELOG.md
22

33
## 0.40.0 (unreleased)
4+
- SQLPage now respects [HTTP accept headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept) for JSON. You can now easily process the contents of any existing sql page programmatically with:
5+
- `curl -H "Accept: application/json" http://example.com/page.sql`: returns a json array
6+
- `curl -H "Accept: application/x-ndjson" http://example.com/page.sql`: returns one json object per line.
47
- Fixed a bug in `sqlpage.link`: a link with no path (link to the current page) and no url parameter now works as expected. It used to keep the existing url parameters instead of removing them. `sqlpage.link('', '{}')` now returns `'?'` instead of the empty string.
58
- **New Function**: `sqlpage.set_variable(name, value)`
69
- Returns a URL with the specified variable set to the given value, preserving other existing variables.

0 commit comments

Comments
 (0)