Skip to content

Commit

Permalink
Version 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed Jan 19, 2015
1 parent c01a37d commit ce5c9b6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WIP
# 0.8.0

- Find specifications: collection `:find [?e ...]`, tuple `:find [?e ?v]`, and scalar `:find ?e .`
- Support for `:db/isComponent` (issue #3)
Expand Down
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Demo applications:
:dependencies [
[org.clojure/clojurescript "0.0-2505"]
...
[datascript "0.7.2"]
[datascript "0.8.0"]
]

;; for advanced optimizations externs are needed
Expand Down Expand Up @@ -125,10 +125,10 @@ Demo applications:
DataScript can be used from any JS engine without additional dependencies:

```
<script src="datascript-0.7.2.min.js"></script>
<script src="datascript-0.8.0.min.js"></script>
```

[Download datascript-0.7.2.min.js](https://github.com/tonsky/datascript/releases/download/0.7.2/datascript-0.7.2.min.js), 48k gzipped.
[Download datascript-0.8.0.min.js](https://github.com/tonsky/datascript/releases/download/0.8.0/datascript-0.8.0.min.js), 53k gzipped.

or as a CommonJS module ([npm page](https://www.npmjs.org/package/datascript)):

Expand Down Expand Up @@ -196,22 +196,20 @@ Query engine features:

Interface differences:

* Custom query functions and aggregates should be passed as source instead of being referenced by symbol (due to lack of `resolve` in CLJS)
* Custom aggregate functions are called via aggregate keyword: `:find (aggregate ?myfn ?e) :in $ ?myfn`
* Conn is just an atom storing last DB value, use `@conn` instead of `(d/db conn)`
* Instead of `#db/id[:db.part/user -100]` just use `-100` in place of `:db/id` or entity id
* Transactor functions can be called as `[:db.fn/call f args]` where `f` is a function reference and will take db as first argument (thx [@thegeez](https://github.com/thegeez))
* Custom query functions and aggregates should be passed as source instead of being referenced by symbol (due to lack of `resolve` in CLJS)
* Custom aggregate functions are called via aggregate keyword: `:find (aggregate ?myfn ?e) :in $ ?myfn`
* Additional `:db.fn/retractAttribute` shortcut
* Transactions are not annotated by default with `:db/txInstant`

Expected soon:

* Better error reporting
* Support for components in schema
* Nested maps in transactions
* Proper documentation
* Lookup refs
* Unique constraints, upsert?
* Unique constraints, upsert
* Pull API

## Differences from Datomic
Expand All @@ -236,6 +234,6 @@ Some of the features are omitted intentionally. Different apps have different ne

## License

Copyright © 2014 Nikita Prokopov
Copyright © 2014–2015 Nikita Prokopov

Licensed under Eclipse Public License (see [LICENSE](LICENSE)).
6 changes: 2 additions & 4 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject datascript "0.7.2"
(defproject datascript "0.8.0"
:description "An implementation of Datomic in-memory database and Datalog query engine in ClojureScript"
:license {:name "Eclipse"
:url "http://www.eclipse.org/legal/epl-v10.html"}
Expand Down Expand Up @@ -70,6 +70,4 @@
"release-js/datascript.bare.js"
"release-js/datascript.js"
]


)
)
7 changes: 5 additions & 2 deletions release-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "datascript",
"version": "0.7.2",
"version": "0.8.0",
"description": "Immutable in-memory triplestore with Datalog queries",
"homepage": "https://github.com/tonsky/datascript",
"author": "Nikita Prokopov (https://github.com/tonsky)",
Expand All @@ -17,7 +17,10 @@
"contributors": [
"Nikita Prokopov (https://github.com/tonsky)",
"montyxcantsin (https://github.com/montyxcantsin)",
"Gijs Stuurman (https://github.com/thegeez)"
"Gijs Stuurman (https://github.com/thegeez)",
"Yevgeny Armor (https://github.com/izirku)",
"Kevin Lynagh (https://github.com/lynaghk)",
"Bobby Calderwood (https://github.com/bobby)"
],
"bugs": {
"url": "https://github.com/tonsky/datascript/issues"
Expand Down
4 changes: 2 additions & 2 deletions release-js/wrapper.prefix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Datascript v0.7.2
* Datascript v0.8.0
*
* Copyright 2014 Nikita Prokopov
* Copyright 2014-2015 Nikita Prokopov
*
* Licensed under Eclipse Public License;
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit ce5c9b6

Please sign in to comment.