Skip to content

Commit

Permalink
Release 0.15.2 (#1339)
Browse files Browse the repository at this point in the history
* Added babelrc and stage-2 preset (#1329)

* Meteor 1.4.1.1 (#1331)

* [email protected]

- [email protected]
- updated Meteor packages, collections2

* version 0.15.2

* move plugin loader from startup to reaction-cli (#1332)

* preserve custom profile fields in Accounts.onCreateUser (#1335)

* copy deprecated cfs:gridfs to local and update npm deps (#1336)
  • Loading branch information
kieckhafer authored and jshimko committed Sep 1, 2016
1 parent 889687a commit 52aecd0
Show file tree
Hide file tree
Showing 22 changed files with 670 additions and 175 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["stage-2"]
}
4 changes: 2 additions & 2 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ juliancwirko:postcss # CSS post-processing plugin (replaces standard-mi
[email protected] # a minifier plugin used for Meteor apps by default
[email protected] # ReactiveDict whose contents are preserved across Hot Code Push
[email protected] # Meteor transparent reactive programming library
[email protected].11
[email protected].12
[email protected]
[email protected]
[email protected]
Expand All @@ -34,7 +34,7 @@ [email protected]
[email protected]
amplify
mdg:validated-method
shell-server
shell-server@0.2.1

# Meteor Auth Packages
[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[email protected]
[email protected].1
16 changes: 8 additions & 8 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ [email protected]
[email protected]
alanning:[email protected]
aldeed:[email protected]
aldeed:collection2@2.9.1
aldeed:collection2-core@1.1.1
aldeed:schema-deny@1.0.1
aldeed:schema-index@1.0.1
aldeed:collection2@2.10.0
aldeed:collection2-core@1.2.0
aldeed:schema-deny@1.1.0
aldeed:schema-index@1.1.0
aldeed:[email protected]
aldeed:[email protected]
[email protected]
Expand Down Expand Up @@ -39,7 +39,7 @@ cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
cfs:[email protected].33
cfs:[email protected].34
cfs:[email protected]
cfs:[email protected]
cfs:[email protected]
Expand All @@ -53,7 +53,7 @@ cfs:[email protected]
cfs:[email protected]
[email protected]
chuangbo:[email protected]
[email protected].4
[email protected].4_1
dburles:[email protected]
[email protected]
[email protected]
Expand Down Expand Up @@ -112,12 +112,12 @@ [email protected]
[email protected]
[email protected]
momentjs:[email protected]
[email protected].11
[email protected].12
[email protected]
[email protected]
mrt:[email protected]
[email protected]
[email protected].46
[email protected].48
[email protected]
[email protected]
[email protected]
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reaction",
"description": "Reaction is a modern reactive, real-time event driven ecommerce platform.",
"version": "0.15.1",
"version": "0.15.2",
"main": "main.js",
"directories": {
"test": "tests"
Expand Down Expand Up @@ -69,6 +69,7 @@
},
"devDependencies": {
"babel-eslint": "^6.1.2",
"babel-preset-stage-2": "^6.13.0",
"eslint": "^3.3.1",
"eslint-plugin-react": "^6.1.2"
},
Expand Down
1 change: 1 addition & 0 deletions packages/gridfs/.npm/package/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
7 changes: 7 additions & 0 deletions packages/gridfs/.npm/package/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This directory and the files immediately inside it are automatically generated
when you change this package's NPM dependencies. Commit the files in this
directory (npm-shrinkwrap.json, .gitignore, and this README) to source control
so that others run the same versions of sub-dependencies.

You should NOT check in the node_modules directory that Meteor automatically
creates; if you are using git, the .gitignore file tells git to ignore it.
89 changes: 89 additions & 0 deletions packages/gridfs/.npm/package/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/gridfs/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- "0.10"
before_install:
- "curl -L http://git.io/s0Zu-w | /bin/sh"
20 changes: 20 additions & 0 deletions packages/gridfs/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2013 [@raix](https://github.com/raix) and [@aldeed](https://github.com/aldeed), aka Morten N.O. Nørgaard Henriksen, [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
48 changes: 48 additions & 0 deletions packages/gridfs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
cfs:gridfs
=========================

NOTE: This package is under active development right now (2014-3-31). It has
bugs and the API may continue to change. Please help test it and fix bugs,
but don't use in production yet.

A Meteor package that adds [GridFS](http://docs.mongodb.org/manual/core/gridfs/) file storage for
[CollectionFS](https://github.com/CollectionFS/Meteor-CollectionFS). When you
use this storage adapter, file data is stored in chunks in your MongoDB database.

## Installation

Install using Meteorite. When in a Meteor app directory, enter:

```
$ meteor add cfs:gridfs
```

## Usage

```js
var imageStore = new FS.Store.GridFS("images", {
mongoUrl: 'mongodb://127.0.0.1:27017/test/', // optional, defaults to Meteor's local MongoDB
mongoOptions: {...}, // optional, see note below
transformWrite: myTransformWriteFunction, //optional
transformRead: myTransformReadFunction, //optional
maxTries: 1, // optional, default 5
chunkSize: 1024*1024 // optional, default GridFS chunk size in bytes (can be overridden per file).
// Default: 2MB. Reasonable range: 512KB - 4MB
});

Images = new FS.Collection("images", {
stores: [imageStore]
});
```

More control over the MongoDB connection is available by specifying [MongoClient.connect options](http://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html#mongoclient-connect-options) as a `mongoOptions` attribute in the options object on the constructor.

Refer to the [CollectionFS](https://github.com/CollectionFS/Meteor-CollectionFS)
package documentation for more information.

## API

[For Users](https://github.com/CollectionFS/Meteor-CollectionFS/blob/master/packages/gridfs/api.md)

[For Contributors](https://github.com/CollectionFS/Meteor-CollectionFS/blob/master/packages/gridfs/internal.api.md)

69 changes: 69 additions & 0 deletions packages/gridfs/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
## cfs-gridfs Public API ##

GridFS storage adapter for CollectionFS

_API documentation automatically generated by [docmeteor](https://github.com/raix/docmeteor)._

-

### <a name="FS.Store.GridFS"></a>new *fsStore*.GridFS(name, options)&nbsp;&nbsp;<sub><i>Server</i></sub> ###

*This method __GridFS__ is defined in `FS.Store`*

__Arguments__

* __name__ *{String}*

The store name

* __options__ *{Object}*
* __beforeSave__ *{Function}* (Optional)

Function to run before saving a file from the server. The context of the function will be the `FS.File` instance we're saving. The function may alter its properties.

* __maxTries__ *{Number}* (Optional, Default = 5)

Max times to attempt saving a file


__Returns__ *{FS.StorageAdapter}*
An instance of FS.StorageAdapter.


Creates a GridFS store instance on the server. Inherits from FS.StorageAdapter
type.

> ```FS.Store.GridFS = function(name, options) { ...``` [gridfs.server.js:16](gridfs.server.js#L16)

-

### <a name="FS.Store.GridFS"></a>new *fsStore*.GridFS(name, options)&nbsp;&nbsp;<sub><i>Client</i></sub> ###

*This method __GridFS__ is defined in `FS.Store`*

__Arguments__

* __name__ *{String}*

The store name

* __options__ *{Object}*
* __beforeSave__ *{Function}* (Optional)

Function to run before saving a file from the client. The context of the function will be the `FS.File` instance we're saving. The function may alter its properties.

* __maxTries__ *{Number}* (Optional, Default = 5)

Max times to attempt saving a file


__Returns__ *{undefined}*


Creates a GridFS store instance on the client, which is just a shell object
storing some info.

> ```FS.Store.GridFS = function(name, options) { ...``` [gridfs.client.js:13](gridfs.client.js#L13)

21 changes: 21 additions & 0 deletions packages/gridfs/gridfs.client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* @public
* @constructor
* @param {String} name - The store name
* @param {Object} options
* @param {Function} [options.beforeSave] - Function to run before saving a file from the client. The context of the function will be the `FS.File` instance we're saving. The function may alter its properties.
* @param {Number} [options.maxTries=5] - Max times to attempt saving a file
* @returns {undefined}
*
* Creates a GridFS store instance on the client, which is just a shell object
* storing some info.
*/
FS.Store.GridFS = function(name, options) {
var self = this;
if (!(self instanceof FS.Store.GridFS))
throw new Error('FS.Store.GridFS missing keyword "new"');

return new FS.StorageAdapter(name, options, {
typeName: 'storage.gridfs'
});
};
Loading

0 comments on commit 52aecd0

Please sign in to comment.