Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thenativeweb/node-cqrs-domain
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.8.0
Choose a base ref
...
head repository: thenativeweb/node-cqrs-domain
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.1
Choose a head ref
  • 12 commits
  • 5 files changed
  • 3 contributors

Commits on May 4, 2015

  1. David update 20150504064918

    tachikoma.io committed May 4, 2015
    Copy the full SHA
    9a36500 View commit details
  2. Merge pull request #45 from tachikomapocket/tachikoma/update-20150504…

    …064918
    
    Exec tachikoma update 20150504064918
    adrai committed May 4, 2015
    Copy the full SHA
    8a059ce View commit details

Commits on May 11, 2015

  1. David update 20150511064925

    tachikoma.io committed May 11, 2015
    Copy the full SHA
    daa95c2 View commit details
  2. Merge pull request #46 from tachikomapocket/tachikoma/update-20150511…

    …064925
    
    Exec tachikoma update 20150511064925
    adrai committed May 11, 2015
    Copy the full SHA
    24323f6 View commit details

Commits on May 23, 2015

  1. Copy the full SHA
    9d3b49a View commit details
  2. readme ident

    adrai committed May 23, 2015
    Copy the full SHA
    1c3465f View commit details

Commits on May 25, 2015

  1. David update 20150525064928

    tachikoma.io committed May 25, 2015
    Copy the full SHA
    f0e4a7e View commit details
  2. Copy the full SHA
    eac0def View commit details
  3. fix deps

    adrai committed May 25, 2015
    Copy the full SHA
    e170b19 View commit details
  4. Copy the full SHA
    f099db5 View commit details

Commits on May 27, 2015

  1. update deps

    adrai committed May 27, 2015
    Copy the full SHA
    8692e3c View commit details
  2. 1.8.1

    adrai committed May 27, 2015
    Copy the full SHA
    9dfab8f View commit details
Showing with 19 additions and 7 deletions.
  1. +4 −1 README.md
  2. +6 −0 lib/domain.js
  3. +5 −5 package.json
  4. +3 −0 releasenotes.md
  5. +1 −1 test/unit/aggregateLockTest.js
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -324,7 +324,10 @@ The values describes the path to that property in the event message.
version: 'version',

// optional, if defined the values of the command will be copied to the event (can be used to transport information like userId, etc..)
meta: 'meta'
meta: 'meta',

// optional, if defined the commit date of the eventstore will be saved in this value
commitStamp: 'commitStamp'
});


6 changes: 6 additions & 0 deletions lib/domain.js
Original file line number Diff line number Diff line change
@@ -162,6 +162,12 @@ _.extend(Domain.prototype, {
}

this.definitions.event = _.defaults(definition, this.definitions.event);

if (this.definitions.event.commitStamp) {
this.eventStore.defineEventMappings({
commitStamp: this.definitions.event.commitStamp
});
}
return this;
},

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "adrai",
"name": "cqrs-domain",
"version": "1.8.0",
"version": "1.8.1",
"private": false,
"main": "index.js",
"engines": {
@@ -11,12 +11,12 @@
"lib": "./lib"
},
"dependencies": {
"async": "0.9.0",
"debug": "2.1.3",
"async": "1.0.0",
"debug": "2.2.0",
"dotty": "0.0.2",
"eventstore": "1.3.1",
"eventstore": "1.4.0",
"jsondate": "0.0.1",
"lodash": "3.7.0",
"lodash": "3.9.3",
"node-uuid": "1.4.3",
"tolerance": "1.0.0",
"tv4": "1.1.9"
3 changes: 3 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [v1.8.1](https://github.com/adrai/node-cqrs-domain/compare/v1.8.0...v1.8.1)
- update eventstore and make use of its commitStamp functionality

## [v1.8.0](https://github.com/adrai/node-cqrs-domain/compare/v1.7.3...v1.8.0)
- added more detailed infos for some ValidationErrors

2 changes: 1 addition & 1 deletion test/unit/aggregateLockTest.js
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ describe('AggregateLock', function() {

describe('with options containing a type property with the value of', function() {

var types = ['inmemory', 'mongodb', 'tingodb', 'redis', 'couchdb'/*, 'azuretable'*/];
var types = ['inmemory', 'mongodb', 'tingodb', 'redis'/*, 'couchdb', 'azuretable'*/];

types.forEach(function(type) {