`Meteor.addCollectionExtension` is deprecated
bwobst opened this issue · comments
Ran meteor update
a couple days ago and began getting this console warning message.
Meteor.addCollectionExtension
is deprecated, please use CollectionExtensions.addExtension
How to fix?
Do you by any chance have a package that uses dburles:mongo-collection-instances
? I need to PR him to upgrade his package dependency.
Don't think so:
bwobst_1:~/workspace (master) $ for p in `meteor list | grep '^[a-z]' | awk '{ print $1"@"$2 }'`; do echo "$p"; meteor show "$p" | grep -E '^ [a-z]'; echo; done
accounts-base@1.2.2
autopublish@1.0.4 (weak dependency)
blaze@2.1.3 (weak dependency)
callback-hook@1.0.4
check@1.1.0
ddp@1.2.2
ddp-rate-limiter@1.0.0
ecmascript@0.1.6
ejson@1.0.7
isobuild:isopack-2@1.0.0
localstorage@1.0.5
mongo@1.1.3
oauth-encryption@1.0.6 (weak dependency)
random@1.0.5
service-configuration@1.0.5
tracker@1.0.9
underscore@1.0.4
accounts-password@1.1.4
accounts-base@1.2.2
check@1.1.0
ddp@1.2.2
ecmascript@0.1.6
ejson@1.0.7
email@1.0.8
isobuild:isopack-2@1.0.0
npm-bcrypt@=0.7.8_2
random@1.0.5
sha@1.0.4
srp@1.0.4
underscore@1.0.4
accounts-ui@1.1.6
accounts-base@1.2.1
accounts-ui-unstyled@1.1.8
isobuild:isopack-2@1.0.0
less@2.5.0_1
andrei:tablesorter@0.0.1
autopublish@1.0.4
blaze-html-templates@1.0.1
blaze@2.1.3
spacebars@1.0.7
templating@1.1.2
ui@1.0.7
cfs:filesystem@0.1.2
cfs:base-package@0.0.28
cfs:storage-adapter@0.2.1
cfs:s3@0.1.3
cfs:base-package@0.0.28
cfs:storage-adapter@0.2.1
cfs:standard-packages@0.5.9
cfs:access-point@0.1.49
cfs:base-package@0.0.30
cfs:collection@0.5.5
cfs:collection-filters@0.2.4
cfs:file@0.1.17
cfs:upload-http@0.0.20
cfs:worker@0.1.4
ecmascript@0.1.6*
ecmascript@0.1.6*: not found
email@1.0.8
underscore@1.0.4
es5-shim@4.1.14
fezvrasta:bootstrap-material-design@0.3.0
jquery@1.0.0 || 1.0.1
twbs:bootstrap@3.3.1
fortawesome:fontawesome@4.5.0
insecure@1.0.4
iron:router@1.0.12
deps@1.0.3
ejson@1.0.2
iron:controller@1.0.12
iron:core@1.0.11
iron:layout@1.0.12
iron:location@1.0.11
iron:middleware-stack@1.0.11
iron:url@1.0.11
isobuild:isopack-2@1.0.0
templating@1.0.6
ui@1.0.2
underscore@1.0.0
webapp@1.1.1
jquery@1.11.4
kevohagan:sweetalert@1.0.0
maazalik:highcharts@0.4.0
jquery@1.11.3_2
templating@1.1.0
meteor-base@1.0.1
ddp@1.2.1
hot-code-push@1.0.0
livedata@1.0.14
underscore@1.0.4
webapp@1.2.2
meteortoys:allthings@2.3.1
meteortoys:authenticate@2.1.0
meteortoys:autopub@2.1.0
meteortoys:blueprint@2.1.0
meteortoys:email@2.1.0
meteortoys:hotreload@2.1.0
meteortoys:listen@2.1.0
meteortoys:method@3.0.2
meteortoys:pub@3.0.2
meteortoys:result@2.1.0
meteortoys:shell@2.1.0
meteortoys:status@2.1.0
meteortoys:sub@2.1.0
meteortoys:throttle@2.1.0
msavin:jetsetter@1.5.0
msavin:mongol@1.6.2
mobile-experience@1.0.1
fastclick@1.0.7
launch-screen@1.0.3
mobile-status-bar@1.0.6
momentjs:moment@2.10.6
mongo@1.1.3
autopublish@1.0.4 (weak dependency)
binary-heap@1.0.4
callback-hook@1.0.4
check@1.1.0
ddp@1.2.2
diff-sequence@1.0.1
disable-oplog@1.0.4 (weak dependency)
ejson@1.0.7
facts@1.0.5 (weak dependency)
insecure@1.0.4 (weak dependency)
minimongo@1.0.10
mongo-id@1.0.1
npm-mongo@1.4.39_1
random@1.0.5
tracker@1.0.9
underscore@1.0.4
webapp@1.2.3 (weak dependency)
random@1.0.5
ecmascript@0.1.6
isobuild:isopack-2@1.0.0
underscore@1.0.4
session@1.1.1
ejson@1.0.7
reactive-dict@1.1.1
reload@1.1.4 (weak dependency)
underscore@1.0.4
standard-minifiers@1.0.2
isobuild:minifier-plugin@1.0.0
minifiers@1.1.7
tracker@1.0.9
tsega:bootstrap3-datetimepicker@4.17.37_1
jquery@1.0.0
momentjs:moment@2.8.4
wylio:mandrill@1.0.1
email@1.0.4
http@1.0.8
bwobst_1:~/workspace (master) $
Oh, I see, I think it's Mongol that has the dependency on my package, which probably has a dependency on dburles:mongo-collection-instances
. No wonder I couldn't see it on the list of dependants on Atmosphere.
Hi,
I also get this warning after meteor update and my app startup crashed:
`Meteor.addCollectionExtension` is deprecated, please use `CollectionExtensions.addExtension`
This is my meteor list
output.
How to fix this???
accounts-password 1.1.4 Password support for accounts
alanning:roles 1.2.14 Authorization package for Meteor
aldeed:autoform 5.8.1 Easily create forms with automatic insert and update, and automatic reactive validation.
aldeed:collection2 2.8.0 Automatic validation of insert and update operations on the client and server.
aldeed:simple-schema 1.5.3 A simple schema validation object with reactivity. Used by collection2 and autoform.
blaze-html-templates 1.0.1 Compile HTML templates into reactive UI with Meteor Blaze
check 1.1.0 Check whether a value matches a pattern
dburles:collection-helpers 1.0.4 Transform your collections with helpers that you define
ejson 1.0.7 Extended and Extensible JSON library
gadicohen:sitemaps 0.0.23 functions to easily output valid sitemaps
ian:accounts-ui-bootstrap-3 1.2.84 Bootstrap-styled accounts-ui with multi-language support.
insecure 1.0.4 (For prototyping only) Allow all database writes from the client
iron:router 1.0.12 Routing specifically designed for Meteor
jquery 1.11.4 Manipulate the DOM using CSS selectors
logging 1.0.8 Logging facility.
matb33:collection-hooks 0.8.1 Extends Mongo.Collection with before/after hooks for insert/update/remove/find/findOne
matteodem:easy-search 2.0.0 Easy-to-use search with Blaze Components (+ Elastic Search support)
maximum:server-transform 0.4.1 Meteor package to transform documents on publish
meteor-base 1.0.1 Packages that every Meteor app needs
meteorhacks:npm 1.5.0 Use npm modules with your Meteor App
mongo 1.1.3 Adaptor for using MongoDB and Minimongo over DDP
npm-container 1.2.0+ Contains all your npm dependencies
random 1.0.5 Random number generator and utilities
reactive-dict 1.1.3 Reactive dictionary
reload 1.1.4 Reload the page while preserving application state.
sacha:spin 2.3.1 Simple spinner package for Meteor
session 1.1.1 Session variable
spacebars 1.0.7 Handlebars-like template language for Meteor
standard-minifiers 1.0.2 Standard minifiers used with Meteor apps by default.
tracker 1.0.9 Dependency tracker to allow reactive callbacks
twbs:bootstrap 3.3.6 The most popular front-end framework for developing responsive, mobile first projects on the web.
+ These packages are built locally from source.
Is the warning actually crashing the app?
I don't know but I guess app crashing is result of this warning, because my app worked well before update meteor and before this warning. 😢
Is there a stack trace that doesn't involve my warning?
I received this message after running meteor update:
Newer versions of the following indirect dependencies are available:
* lai:collection-extensions 0.1.4 (0.2.1_1 is available)
* momentjs:moment 2.10.6 (2.11.0 is available)
* softwarerero:accounts-t9n 1.1.7 (1.2.0 is available)
To update one or more of these packages, pass their names to `meteor update`.
So I updated lai:collection-extensions to 0.2.1_1 and am now getting this error warning. I'm not even sure what package is using yours as a dependency.
accounts-password 1.1.4 Password support for accounts
alanning:roles 1.2.14 Authorization package for Meteor
aldeed:autoform 5.8.1 Easily create forms with automatic insert and update, and automatic reactive validation.
aldeed:autoform-bs-datepicker 1.1.1 Custom bootstrap-datepicker input type for AutoForm
aldeed:collection2 2.8.0 Automatic validation of insert and update operations on the client and server.
aldeed:tabular 1.4.2 Datatables for large or small datasets in Meteor
blaze-html-templates 1.0.1 Compile HTML templates into reactive UI with Meteor Blaze
bojicas:howler2 2.0.0_9 Meteor package for Howler audio library
check 1.1.0 Check whether a value matches a pattern
ejson 1.0.7 Extended and Extensible JSON library
email 1.0.8 Send email messages
flyandi:reactive-countdown 0.0.3 A simple reactive countdown timer for Meteor
fortawesome:fontawesome 4.5.0 Font Awesome (official): 500+ scalable vector icons, customizable via CSS, Retina friendly
iron:router 1.0.12 Routing specifically designed for Meteor
jquery 1.11.4 Manipulate the DOM using CSS selectors
less 2.5.1 Leaner CSS language
logging 1.0.8 Logging facility.
meteor-base 1.0.1 Packages that every Meteor app needs
meteortoys:allthings 2.3.1 Insanely Handy Development Tools
mobile-experience 1.0.1 Packages for a great mobile user experience
mongo 1.1.3 Adaptor for using MongoDB and Minimongo over DDP
nemo64:bootstrap 3.3.5_2 Highly configurable bootstrap integration.
pascoual:pdfkit 1.0.7 PDF generation library. Use PDFKit 0.4.3 and Fiber for best performances and non-blocking thread !
peppelg:bootstrap-3-modal 1.0.4 Simple usage of bootstrap 3 modals.
rajit:bootstrap3-datepicker 1.5.0 Meteor packaging of eternicode/bootstrap-datepicker for Bootstrap 3
random 1.0.5 Random number generator and utilities
reload 1.1.4 Reload the page while preserving application state.
session 1.1.1 Session variable
spacebars 1.0.7 Handlebars-like template language for Meteor
standard-minifiers 1.0.2 Standard minifiers used with Meteor apps by default.
tracker 1.0.9 Dependency tracker to allow reactive callbacks
udondan:jszip 2.4.0_1 Create, read and edit .zip files on server
underscore 1.0.4 Collection of small helpers: _.map, _.each, ...
useraccounts:bootstrap 1.13.1 Accounts Templates styled for Twitter Bootstrap.
useraccounts:iron-routing 1.13.1 UserAccounts package providing routes configuration capability via iron:router.
Guys, it is a warning. That does not constitute an error. I will update the dependency, which I'm sure Meteor Toys uses.
Thanks, wasn't trying to hassle you, just trying to provide information and keep all my project packages in order.
Np, I plan to get this done tonight EST. If I don't get to it, feel free to hassle me 😆.
I updated the dburles:mongo-collection-instances package dependency on this package. Is anyone still getting the warning?
Not getting it anymore after meteor update
. Thanks sir!
Thanks for the feedback @bwobst.
@soitech @cyclops24 any errors for you guys?
Error is gone after update. Thanks!