Permalink
Commits on Nov 10, 2012
  1. release 3.4.0

    aheckmann committed Nov 10, 2012
  2. add 3.3.x docs

    aheckmann committed Nov 10, 2012
  3. tests; add $and tests

    aheckmann committed Nov 10, 2012
  4. added Query#and

    aleclofabbro committed with aheckmann Nov 2, 2012
  5. docs; fix expires examples

    closes #1203
    aheckmann committed Nov 10, 2012
Commits on Nov 9, 2012
Commits on Nov 8, 2012
  1. remove old support dir

    aheckmann committed Nov 8, 2012
  2. docs; transform

    aheckmann committed Nov 8, 2012
  3. support generic toJSON/toObject transforms

    Calling doc.toObject() or doc.toJSON() now applies an optional
    transform before returning the resulting document. Useful when
    excluding document properties or complex reformatting is
    necessary when JSON.stringifying a document etc.
    
    The transform is either passed inline during execution:
    
        doc.toJSON({ transform: someFunction })
    
    or is set in the schema options:
    
        schema.options.toJSON = { transform: someFunction }
    
    Note that all schema options are overridden when passed inline,
    so calling the following will result in no tranform applied:
    
        doc.toObject({ getters: true })
    
    However, passing `transform: true` will apply it anyway:
    
        doc.toObject({ getters: true, tranform: true })
    
    Closes #1197
    Relates to #1020
    Relates to #1160
    aheckmann committed Nov 8, 2012
  4. fixed; adding nested paths to non-objects throws

    var schema = Schema({ name: String });
    schema.add({ name: { last: String }}) // Error!
    aheckmann committed Nov 8, 2012
  5. docs

    aheckmann committed Nov 8, 2012
  6. clean up

    aheckmann committed Nov 8, 2012
Commits on Nov 7, 2012
  1. tests; group by ActiveRoster

    aheckmann committed Nov 7, 2012
Commits on Nov 3, 2012
  1. website; remove unnecessary .miff

    closes #1189
    aheckmann committed Nov 3, 2012
Commits on Nov 2, 2012
  1. fixed issue #1180

    issue here: #1180
    anotheri committed with aheckmann Oct 31, 2012
Commits on Oct 31, 2012
  1. use mocha --async-only

    fixes the problem of false positives
    aheckmann committed Oct 31, 2012
  2. website; clarify example

    aheckmann committed Oct 31, 2012
Commits on Oct 30, 2012
  1. fixed; overwriting of query arguments

    closes #1176
    aheckmann committed Oct 30, 2012
  2. async only

    aheckmann committed Oct 30, 2012
  3. consistent test name

    aheckmann committed Oct 30, 2012
Commits on Oct 26, 2012
  1. Revert "added; custom toObject/JSON formatting support"

    This reverts commit 7df1f8c.
    
    This would break existing core functionality: when
    options are passed to `doc.toObject`, all schema
    options are ignored, otherwise we would be introducing
    changes to the documents during save operations.
    aheckmann committed Oct 26, 2012
  2. added; custom toObject/JSON formatting support

    If an option for toObject/toJSON is a function, execute it
    passing the current document, the object being returned from
    toObject/toJSON, and the options specified. This allows users
    to fully customize the formatting of their objects as well as
    hide properties they want, etc.
    
    Example:
    
      function format (mongooseDocument, objectReturned, options) {
        // perform formatting on based on the document
        // and/or options passed to toObject/JSON which default
        // to the options specified in the schema.
        if (options.hidden && 'string' == typeof options.hidden) {
          // apply custom property to `objectReturned` here
        }
      }
    
      new Schema({..}, { toJSON: { hide: format, hidden: 'some props' } }
    
      doc.toObject({ hidden: 'just these.props' })
    
    See #1160, #1020
    aheckmann committed Oct 18, 2012
Commits on Oct 20, 2012
  1. website; tweek mobile style

    aheckmann committed Oct 20, 2012
  2. website; add app imgs

    aheckmann committed Oct 20, 2012
Commits on Oct 19, 2012
  1. website; add more prod links

    aheckmann committed Oct 19, 2012
  2. website; new homepage imgs

    aheckmann committed Oct 19, 2012
  3. website; fix img sizes

    aheckmann committed Oct 19, 2012
  4. website; fix target

    aheckmann committed Oct 19, 2012
  5. docs; update master

    aheckmann committed Oct 19, 2012
  6. website; :target::before

    aheckmann committed Oct 19, 2012