Files
meteor/packages/spark/package.js
David Glasser 3cfeed5b5b Various bugs involving idStringify.
In minimongo, we support various types as _id fields; the most important are
strings and ObjectIds. We have a special encoding that we use when we need to
represent them as strings, but we had a few bugs with using it.

minimongo: The duplicate-ID check in insert needed to check using the encoded
string.

spark OrderedDict: due to linker changes, it was not successfully finding
LocalCollection._idStringify, and so it fell back to the identity
function. Fixed to use weak dependencies. Also, later refactorings have removed
the need for idStringify(null) === null so that special case is removed.

spark branch labels: use idStringify in various places where _id is used as a
branch label.
2013-08-19 22:00:37 -07:00

34 lines
950 B
JavaScript

Package.describe({
summary: "Toolkit for live-updating HTML interfaces",
internal: true
});
Package.on_use(function (api) {
api.use(['underscore', 'random', 'domutils', 'liverange', 'universal-events',
'ordered-dict', 'deps', 'ejson'],
'client');
// If we have minimongo available, use its idStringify function.
api.use('minimongo', 'client', {weak: true});
api.export('Spark', 'client');
api.export('SparkTest', 'client', {testOnly: true});
api.add_files(['spark.js', 'patch.js', 'convenience.js',
'utils.js'], 'client');
});
Package.on_test(function (api) {
api.use('webapp', 'server');
api.use(['tinytest', 'underscore', 'liverange', 'deps', 'domutils',
'minimongo', 'random']);
api.use(['spark', 'test-helpers', 'jquery'], 'client');
api.add_files('test_form_responder.js', 'server');
api.add_files([
'spark_tests.js',
'patch_tests.js'
], 'client');
});