Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

types/document -> types/embedded

  • Loading branch information...
commit 63c2dbb6d61826ed90ebb4afd5c1fe8b360fe724 1 parent 0f24c74
@aheckmann aheckmann authored
View
2  lib/schema/documentarray.js
@@ -6,7 +6,7 @@
var SchemaType = require('../schematype')
, ArrayType = require('./array')
, MongooseDocumentArray = require('../types/documentarray')
- , Subdocument = require('../types/document')
+ , Subdocument = require('../types/embedded')
, CastError = SchemaType.CastError
, Document = require('../document');
View
2  lib/types/array.js
@@ -3,7 +3,7 @@
* Module dependencies.
*/
-var EmbeddedDocument = require('./document');
+var EmbeddedDocument = require('./embedded');
var Document = require('../document');
var ObjectId = require('./objectid');
View
2  lib/types/buffer.js
@@ -9,8 +9,6 @@ var driver = global.MONGOOSE_DRIVER_PATH || '../drivers/node-mongodb-native';
* Module dependencies.
*/
-var EmbeddedDocument = require('./document');
-var ObjectId = require('./objectid');
var Binary = require(driver + '/binary');
/**
View
0  lib/types/document.js → lib/types/embedded.js
File renamed without changes
View
5 lib/types/index.js
@@ -5,7 +5,10 @@
exports.Array = require('./array');
exports.Buffer = require('./buffer');
-exports.Document = require('./document');
+
+exports.Document = // @deprecate
+exports.Embedded = require('./embedded');
+
exports.DocumentArray = require('./documentarray');
exports.Number = require('./number');
exports.ObjectId = require('./objectid');
View
2  test/model.test.js
@@ -16,7 +16,7 @@ var start = require('./common')
, ObjectId = Schema.ObjectId
, DocumentObjectId = mongoose.Types.ObjectId
, DocumentArray = mongoose.Types.DocumentArray
- , EmbeddedDocument = mongoose.Types.Document
+ , EmbeddedDocument = mongoose.Types.Embedded
, MongooseNumber = mongoose.Types.Number
, MongooseArray = mongoose.Types.Array
, MongooseError = mongoose.Error;
View
2  test/types.document.test.js
@@ -6,7 +6,7 @@
var should = require('should')
, start = require('./common')
, mongoose = start.mongoose
- , EmbeddedDocument = require('../lib/types/document')
+ , EmbeddedDocument = require('../lib/types/embedded')
, DocumentArray = require('../lib/types/documentarray')
, Schema = mongoose.Schema
, SchemaType = mongoose.SchemaType
View
2  test/types.documentarray.test.js
@@ -6,7 +6,7 @@
var mongoose = require('./common').mongoose
, MongooseArray = mongoose.Types.Array
, MongooseDocumentArray = mongoose.Types.DocumentArray
- , EmbeddedDocument = require('../lib/types/document')
+ , EmbeddedDocument = require('../lib/types/embedded')
, DocumentArray = require('../lib/types/documentarray')
, Schema = mongoose.Schema
Please sign in to comment.
Something went wrong with that request. Please try again.