Meteor-Community-Packages / meteor-simple-schema

Meteor integration package for simpl-schema
https://github.com/Meteor-Community-Packages/meteor-simple-schema
MIT License
920 stars 162 forks source link

Call Match.Where as a function rather than as a constructor. #723

Closed benjamn closed 9 months ago

benjamn commented 6 years ago

Fixes #722, which was exposed while testing Meteor 1.6.1 betas.

Thanks to @jasonschock for the original report.

crapthings commented 6 years ago

does it impact https://github.com/aldeed/simple-schema-js too ?

crapthings commented 6 years ago

i've changed that line by manually but i've got this.

ERR)                        ^
W20171222-15:17:10.684(8)? (STDERR)
W20171222-15:17:10.684(8)? (STDERR) TypeError: Match.Where is not a constructor
W20171222-15:17:10.685(8)? (STDERR)     at packages/aldeed_simple-schema.js:1547:26
W20171222-15:17:10.685(8)? (STDERR)     at packages/aldeed_simple-schema.js:2160:4
W20171222-15:17:10.685(8)? (STDERR)     at packages/aldeed_simple-schema.js:3128:3
W20171222-15:17:10.685(8)? (STDERR)     at infos.forEach.info (/Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:415:13)
W20171222-15:17:10.685(8)? (STDERR)     at Array.forEach (<anonymous>)
W20171222-15:17:10.685(8)? (STDERR)     at /Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:414:9
W20171222-15:17:10.685(8)? (STDERR)     at /Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:468:5
W20171222-15:17:10.686(8)? (STDERR)     at Function.run (/Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/profile.js:510:12)
W20171222-15:17:10.686(8)? (STDERR)     at /Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:467:11
=> Exited with code: 1
W20171222-15:17:13.398(8)? (STDERR) /Users/monsterstep/.meteor/packages/meteor-tool/.1.6.1-beta.21.qhrpdx.u2i9j++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20171222-15:17:13.399(8)? (STDERR)                         throw(ex);
W20171222-15:17:13.399(8)? (STDERR)                         ^
W20171222-15:17:13.399(8)? (STDERR)
W20171222-15:17:13.399(8)? (STDERR) TypeError: Match.Where is not a constructor
W20171222-15:17:13.399(8)? (STDERR)     at packages/aldeed_simple-schema.js:1547:26
W20171222-15:17:13.399(8)? (STDERR)     at packages/aldeed_simple-schema.js:2160:4
W20171222-15:17:13.400(8)? (STDERR)     at packages/aldeed_simple-schema.js:3128:3
W20171222-15:17:13.400(8)? (STDERR)     at infos.forEach.info (/Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:415:13)
W20171222-15:17:13.400(8)? (STDERR)     at Array.forEach (<anonymous>)
W20171222-15:17:13.400(8)? (STDERR)     at /Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:414:9
W20171222-15:17:13.400(8)? (STDERR)     at /Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:468:5
W20171222-15:17:13.401(8)? (STDERR)     at Function.run (/Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/profile.js:510:12)
W20171222-15:17:13.401(8)? (STDERR)     at /Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:467:11
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.
=> Modified -- restarting.
W20171222-15:17:34.292(8)? (STDERR) /Users/monsterstep/.meteor/packages/meteor-tool/.1.6.1-beta.21.qhrpdx.u2i9j++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20171222-15:17:34.292(8)? (STDERR)                         throw(ex);
W20171222-15:17:34.292(8)? (STDERR)                         ^
W20171222-15:17:34.293(8)? (STDERR)
W20171222-15:17:34.293(8)? (STDERR) TypeError: Mongo.Collection._rewriteSelector is not a function
W20171222-15:17:34.293(8)? (STDERR)     at new CursorDescription (packages/mongo/mongo_driver.js:846:36)
W20171222-15:17:34.293(8)? (STDERR)     at MongoConnection.find (packages/mongo/mongo_driver.js:772:11)
W20171222-15:17:34.293(8)? (STDERR)     at packages/peerlibrary_reactive-mongo.js:35:91
W20171222-15:17:34.293(8)? (STDERR)     at packages/peerlibrary_reactive-mongo.js:135:4
W20171222-15:17:34.294(8)? (STDERR)     at packages/peerlibrary_reactive-mongo.js:139:4
W20171222-15:17:34.294(8)? (STDERR)     at packages/peerlibrary_reactive-mongo.js:145:3
W20171222-15:17:34.294(8)? (STDERR)     at infos.forEach.info (/Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:415:13)
W20171222-15:17:34.294(8)? (STDERR)     at Array.forEach (<anonymous>)
W20171222-15:17:34.294(8)? (STDERR)     at /Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:414:9
W20171222-15:17:34.294(8)? (STDERR)     at /Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:468:5
W20171222-15:17:34.295(8)? (STDERR)     at Function.run (/Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/profile.js:510:12)
W20171222-15:17:34.295(8)? (STDERR)     at /Users/monsterstep/dev/cube-patch/cube/.meteor/local/build/programs/server/boot.js:467:11
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

feit:server-picker

meteor-base@1.2.0             # Packages every Meteor app needs to have
mongo@1.3.1                   # The database Meteor supports right now
blaze-html-templates    # Compile .html files into Meteor Blaze views
reactive-var@1.0.11            # Reactive variable for tracker
jquery@1.11.10                  # Helpful client-side library
tracker@1.1.3                 # Meteor's client-side reactive programming library

standard-minifier-css@1.3.5   # CSS minifier run for production mode
standard-minifier-js@2.2.0    # JS minifier run for production mode
ecmascript@0.9.0              # Enable ECMAScript2015+ syntax in app code

meteorhacks:kadira

accounts-password@1.5.0
kadira:flow-router
dburles:collection-helpers
aldeed:simple-schema@1.5.4
aldeed:collection2
matb33:collection-hooks
vsivsi:file-collection
reywood:publish-composite
check@1.2.5
tmeasday:publish-counts
maximum:server-transform
#meteorhacks:fast-render
stylus@2.513.13
http@1.3.0
accounts-base@1.4.0
lvfang:aggregate
random@1.0.10
meteorhacks:zones
meteorhacks:unblock
peerlibrary:control-mergebox
ccorcos:subs-cache

crapthings:cao
lvfang:intl
shell-server
dynamic-import