Skip to content

Commit a278bea

Browse files
committed
Merge branch 'feature/core-0.4.0'
2 parents 77525d2 + 150820c commit a278bea

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

core/CHANGELOG

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Version 0.4.0 (2014-12-03)
2+
--------------------------
3+
Updated contexts schema to 1-0-1 (#292)
4+
Added ability to send an empty contexts array (#296)
5+
16
Version 0.3.0 (2014-11-04)
27
--------------------------
38
Applied callback to the Payload for an event rather than the event dictionary (#259)

core/lib/core.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ function trackerCore(base64, callback) {
6868
* @return object Outer JSON
6969
*/
7070
function completeContexts(contexts) {
71-
if (contexts && contexts.length) {
71+
if (contexts) {
7272
return {
73-
schema: 'iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0',
73+
schema: 'iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-1',
7474
data: contexts
7575
};
7676
}

core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "snowplow-tracker-core",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"devDependencies": {
55
"grunt": "^0.4.5",
66
"intern": "^2.0.1"

core/tests/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ define([
486486
url: url,
487487
page: page,
488488
co: JSON.stringify({
489-
schema: 'iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0',
489+
schema: 'iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-1',
490490
data: inputContext
491491
})
492492
};

0 commit comments

Comments
 (0)