diff --git a/cookie.js b/cookie.js index 954dd7d..547b5df 100644 --- a/cookie.js +++ b/cookie.js @@ -1,14 +1,14 @@ Cookie = {}; Cookie._deps = {}; -Cookie._dep = new Deps.Dependency(); +Cookie._dep = new Tracker.Dependency(); Cookie.get = function(name) { var _dep = Cookie._deps[name]; if(!_dep) { - Cookie._deps[name] = new Deps.Dependency(); + Cookie._deps[name] = new Tracker.Dependency(); _dep = Cookie._deps[name]; } _dep.depend(); @@ -47,7 +47,7 @@ Cookie.set = function(name, value, duration) { var _dep = Cookie._deps[name]; if(!_dep) { - Cookie._deps[name] = new Deps.Dependency(); + Cookie._deps[name] = new Tracker.Dependency(); _dep = Cookie._deps[name]; } _dep.changed(); diff --git a/package.js b/package.js index 441e05d..621188b 100644 --- a/package.js +++ b/package.js @@ -1,11 +1,14 @@ Package.describe({ - summary: "Basic cookies support for client" + summary: "Basic cookies support for client", + version: "0.4.0", + git: "https://github.com/subhog/meteor-cookies.git" }); -Package.on_use(function (api, where) { - if(api.export) { - api.use('deps', 'client'); - api.export('Cookie', 'client'); - } - api.add_files('cookie.js', 'client'); +Package.onUse(function (api) { + api.versionsFrom('METEOR@0.9.2.2'); + + api.use('tracker', 'client'); + api.addFiles('cookie.js', 'client'); + api.export('Cookie', 'client'); + }); diff --git a/smart.json b/smart.json deleted file mode 100644 index 0fe9551..0000000 --- a/smart.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "cookies", - "description": "Basic cookies support for client", - "homepage": "https://github.com/subhog/meteor-cookies", - "author": "Hubert Orlik Grzesik", - "version": "0.3.0", - "git": "https://github.com/subhog/meteor-cookies.git", - "packages": {} -} \ No newline at end of file diff --git a/versions.json b/versions.json new file mode 100644 index 0000000..4d5bb6f --- /dev/null +++ b/versions.json @@ -0,0 +1,19 @@ +{ + "dependencies": [ + [ + "meteor", + "1.1.0" + ], + [ + "tracker", + "1.0.2" + ], + [ + "underscore", + "1.0.0" + ] + ], + "pluginDependencies": [], + "toolVersion": "meteor-tool@1.0.31", + "format": "1.0" +} \ No newline at end of file