Coder Social home page Coder Social logo

nicklozon / meteor-collection-revisions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from todda00/meteor-collection-revisions

2.0 2.0 2.0 19 KB

Keep revision history for Meteor collection documents and provide restore functionality.

CoffeeScript 85.04% JavaScript 14.96%

meteor-collection-revisions's People

Contributors

jthomaschewski avatar nicklozon avatar todda00 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

meteor-collection-revisions's Issues

When restoring, no new revision is created

When I save a document, I have my first version of my document - the initial version. No revisions-property has been created on the document so far, right? Now I change something, save it and get my second version. Now the revisions-property is set to an array having one document, namely the document in it's first version.

If I now try to revert my document to the first version, my changes, done in my second version, are gone. I would like to have them now stored as a new document in the revisions array - that said - now being in the 3rd version ...

Compatibility with Meteor 1.6.1 (update to `coffeescript` 2)

The new release of Meteor v1.6.1 now requires your code to use coffeescript in version 2.x. which means that every project would have to update it's dependency for the coffeescript package.

I've never written coffeescript myself. What I could help with is rewriting the code in plain ES6 javascript, if you would be happy with it...

For now I just tried to copy the code into a coffeescript 2 online compiler which didn't throw any errors, so I guess it should all work as expected.

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.