todos-contra-el-fuego-web/packages/publish-performant-counts/package.js
vjrj eb3aec82ae meteor3: purge dead client packages — web UI renders on 3.1
alanning:roles removed (client crashed the whole bundle; plain user.roles
checks instead), selaias:cookie-consent replaced by in-repo React banner,
publish-performant-counts vendored with countAsync, Meteor.autorun dropped
(App)/Tracker.autorun (FiresMap), and the map publications not covered by
the REST smoke (activefiresmyloc, activefiresunionmyloc, fireAlerts,
oauth.verifyConfiguration) converted to async APIs.

Verified in browser: / and /fires render with map + cookie banner, zero
uncaught exceptions. REST smoke byte-identical (12/12).
2026-07-14 11:32:19 +02:00

16 lines
592 B
JavaScript

// Vendored natestrauser:publish-performant-counts 0.1.2, patched for Meteor 3
// (server cursor.count() is gone -> countAsync). Same public API: server
// `new Counter(name, cursor)`, client `Counter.get(name)`.
Package.describe({
name: 'tcef:publish-performant-counts',
version: '0.2.0',
summary: 'Vendored publish-performant-counts patched for Meteor 3 (countAsync)'
});
Package.onUse(function (api) {
api.versionsFrom('3.0');
api.use(['meteor', 'mongo', 'ecmascript']);
api.addFiles('server.js', 'server');
api.addFiles('client.js', 'client');
api.export('Counter');
});