From 5d043c2f0bcdf02502510bfd542afe65dffe6da3 Mon Sep 17 00:00:00 2001 From: Jan Dvorak Date: Tue, 24 May 2022 13:47:53 +0200 Subject: [PATCH 1/2] Make compatible with Meteor 2.4+ --- package.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.js b/package.js index c40db33..687ebf5 100644 --- a/package.js +++ b/package.js @@ -1,12 +1,12 @@ Package.describe({ summary: 'Accounts Templates styled for Materialize Css.', - version: '1.14.2', + version: '1.15.0', name: 'useraccounts:materialize', git: 'https://github.com/meteor-useraccounts/materialize.git', }); Package.on_use(function(api, where) { - api.versionsFrom('METEOR@1.0'); + api.versionsFrom(['METEOR@1.0', 'METEOR@2.4']); api.use([ 'templating', @@ -18,11 +18,11 @@ Package.on_use(function(api, where) { ], ['client', 'server']); // Requires all routing packages loads before this asking for weak dependencies. - api.use('useraccounts:flow-routing@1.14.2', ['client', 'server'], {weak: true}); - api.use('useraccounts:iron-routing@1.14.2', ['client', 'server'], {weak: true}); + api.use('useraccounts:flow-routing@1.15.0', ['client', 'server'], {weak: true}); + api.use('useraccounts:iron-routing@1.15.0', ['client', 'server'], {weak: true}); api.imply([ - 'useraccounts:core@1.14.2', + 'useraccounts:core@1.16.2', ], ['client', 'server']); api.add_files([ From d9b8f61941ab54287237eeb1782630abb1051925 Mon Sep 17 00:00:00 2001 From: Jan Dvorak Date: Tue, 24 May 2022 13:49:08 +0200 Subject: [PATCH 2/2] Update API --- package.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.js b/package.js index 687ebf5..0cd2147 100644 --- a/package.js +++ b/package.js @@ -5,7 +5,7 @@ Package.describe({ git: 'https://github.com/meteor-useraccounts/materialize.git', }); -Package.on_use(function(api, where) { +Package.onUse(function(api, where) { api.versionsFrom(['METEOR@1.0', 'METEOR@2.4']); api.use([ @@ -25,7 +25,7 @@ Package.on_use(function(api, where) { 'useraccounts:core@1.16.2', ], ['client', 'server']); - api.add_files([ + api.addFiles([ 'lib/at_error.html', 'lib/at_error.js', 'lib/at_form.html', @@ -67,7 +67,7 @@ Package.on_use(function(api, where) { ], ['client']); }); -Package.on_test(function(api) { +Package.onTest(function(api) { api.versionsFrom('METEOR@1.4.0.1'); api.use([ @@ -82,7 +82,7 @@ Package.on_test(function(api) { 'templating' ], ['client', 'server']); - api.add_files([ + api.addFiles([ 'tests/tests.js' ], ['client', 'server']); });