Skip to content

Commit

Permalink
Vogels 2.0 - JSON document support. Closes #50
Browse files Browse the repository at this point in the history
New Features

 * Full JSON document support, including support for List, Map, and BOOL datatypes. Closes #16, #44
 * New timestamps config option to automatically add the attributes createdAt and updatedAt when defining a model. These attributes will get automatically get set when you create and update a record.
 * Flexible schema configuration to allow unknown, dynamic attributes both on top level and nested records
 * Ability to fully configure global and local secondary indexes. Allows to configure index names, attribute projection settings and index throughput. Closes #43 , #48
 * adding deleteTable api to remove the table from DynamoDB. Closes #10
 * 100% code coverage with new integration test suite and integration with travis-ci.

Bug Fixes

 * CreateTables checks if error occurs while attempting to create a table. Fixes #41
 * Fixed error handling when streaming query, scan and parallel scan requests.
 * Fixed retry handling when running query and scans. Fixes #45

Updated dependencies

 * Joi to v5.1.0
 * aws-sdk to v2.1.5 - Closes #49
 * async to v0.9.0
 * lodash to v2.4.1
  • Loading branch information
ryanfitz committed Jan 14, 2015
1 parent b6a681c commit 6d5e70e
Show file tree
Hide file tree
Showing 54 changed files with 6,006 additions and 2,199 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -5,3 +5,5 @@ Debug/
Release/
npm-debug.log
tmp
covreporter/
coverage/
13 changes: 13 additions & 0 deletions .travis.yml
@@ -1,3 +1,16 @@
language: node_js
node_js:
- "0.10"
env:
global:
- AWS_ACCESS_KEY_ID=AKID
- AWS_SECRET_ACCESS_KEY=SECRET
- AWS_REGION=us-east-1
before_script:
- wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz -O /tmp/dynamodb_local_latest.tar.gz
- tar -xzf /tmp/dynamodb_local_latest.tar.gz -C /tmp
- java -Djava.library.path=/tmp/DynamoDBLocal_lib -jar /tmp/DynamoDBLocal.jar -inMemory &
- sleep 2
addons:
hosts:
- dynamodb-local
9 changes: 9 additions & 0 deletions Dockerfile
@@ -0,0 +1,9 @@
FROM google/nodejs

WORKDIR /app
ADD package.json /app/
RUN npm install
ADD . /app

# CMD []
# ENTRYPOINT ["/nodejs/bin/npm", "test"]
64 changes: 0 additions & 64 deletions Gruntfile.js

This file was deleted.

39 changes: 39 additions & 0 deletions Makefile
@@ -0,0 +1,39 @@
REPORTER ?= list
SRC = $(shell find lib -name "*.js" -type f | sort)
TESTSRC = $(shell find test -name "*.js" -type f | sort)

default: test

lint: $(SRC) $(TESTSRC)
@node_modules/.bin/jshint --reporter node_modules/jshint-stylish/stylish.js $^

test-unit: lint
@node node_modules/.bin/mocha \
--reporter $(REPORTER) \
--ui bdd \
test/*-test.js

test-integration: lint
@node node_modules/.bin/mocha \
--reporter spec \
--ui bdd \
test/integration/*-test.js

test-cov: lint
@node node_modules/.bin/mocha \
-r jscoverage \
$(TESTSRC)

test-cov-html: lint
@node node_modules/.bin/mocha \
-r jscoverage \
--covout=html \
$(TESTSRC)

coverage: lint
@node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha $(TESTSRC)
@node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --branches 100 --lines 100

test: test-unit test-integration

.PHONY: test test-cov test-cov-html

0 comments on commit 6d5e70e

Please sign in to comment.