Coder Social home page Coder Social logo

shiftcode / dynamo-easy Goto Github PK

View Code? Open in Web Editor NEW
204.0 4.0 27.0 3.13 MB

DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.

Home Page: https://shiftcode.github.io/dynamo-easy/

License: MIT License

TypeScript 99.54% JavaScript 0.46%
dynamodb typescript orm aws dynamo typescript-decorators fluent-api serverless odm objectmapper

dynamo-easy's People

Contributors

greenkeeper[bot] avatar hookercookerman avatar jthomerson avatar michaellieberherr avatar michaelwittwer avatar renovate-bot avatar simonmumenthaler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dynamo-easy's Issues

improve batch requests

batch-get Request:

  • add execNoMap function
  • handle UnprocessedItems in response
  • handle ProvisionedThroughputExceededException (needs further investigation)
  • allow consistent read
  • improve method to add keys forModel()

batch-get-single-table Request:

  • handle UnprocessedItems in response
  • handle ProvisionedThroughputExceededException (needs further investigation)
  • allow consistent read

batch-write-single-table Request:

  • handle ProvisionedThroughputExceededException (needs further investigation)

pagedRequest

  • remove

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two-Factor Authentication, make configure the auth-only level is supported. semantic-release cannot publish with the default auth-and-writes level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot 📦🚀

different improvements

  • update typings away from AttributeValue / AttributeMap to support better typing for custom mappers
  • fix or remove excluded tests

review key naming

either use partitionkey / sort key or hashkey / rangekey consistently (aws dynamodb uses hash / range for the two key types)

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two-Factor Authentication, make configure the auth-only level is supported. semantic-release cannot publish with the default auth-and-writes level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot 📦🚀

make moment optional

moment is currently a peerDependency but is only used as optional type with its Mapper.

investigate about inheritance and decorators

there are some issues with inheritance, investigate and document implications

support for inheritance (see form as an example), when using a DynamoStore of type Form it has some metadata from FrameOrderTemplate (SortKey), which leads to unexpected behavior

prepare new scoped release

  • make a new 0.0.x release where we point to the new version of scoped package (just update the doc)
  • merge the rxjs branch into master and create an introduction (coming from 0.0.x)
  • merge initial version of greenkeeper

support getItem operation

a getItem request requires all information about the primary key to be present (compared to query where the range key is optional)

  • introduce a new request where we can define the options with the fluent api

ensure code quality

Make sure we have all the required tooling setup to ensure good code quality.

git:pre-commit

  • prettier
  • tslint
  • sort keys in package.json

git:push

  • run tests

build

  • generate and report coverage
  • use code quality tool

periodically

  • renovate (keep node dependencies up to date)
  • security vulnerabilities

expression validation

there are several TODO tasks with topic LOW:VALIDATION.
Research if validation is required or can be done trough typings. Think about concept on how to validate the input for expressions.

paged loader

implement generic paged loader to support paged data with any request which returns more than one item

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml
  • The new Node.js version is in-range for the engines in 1 of your package.json files, so that was left alone

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

IN expression does not work

somehow the IN exression does not work like expected i tried with L and S as attribute values, both calls were executed succesfully but no result was returned

Dependency deprecation warning: @types/reflect-metadata (npm)

On registry https://registry.npmjs.org/, the "latest" version (v0.1.0) of dependency @types/reflect-metadata has the following deprecation notice:

This is a stub types definition for reflect-metadata (https://github.com/rbuckton/ReflectDecorators). reflect-metadata provides its own type definitions, so you don't need @types/reflect-metadata installed!

Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.

Affected package file(s): package.json

If you don't care about this, you can close this issue and not be warned about @types/reflect-metadata's deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:

"suppressNotifications": ["deprecationWarningIssues"]

remove unused code

  • EnumMapper (check again if required)
  • check for unused code (DynamoErrorCode, DynamoError for example)

Fix condition builder

name conflicts are not resolved in ParamUtil.addExpression
(eg. when condition uses same property as update)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.