Comparing version 3.7.0 to 3.8.0
@@ -0,1 +1,5 @@ | ||
# v3.8.0 | ||
- Thread annotations for individual enum definitions | ||
# v3.7.0 | ||
@@ -2,0 +6,0 @@ |
@@ -38,2 +38,3 @@ // Copyright (c) 2016 Uber Technologies, Inc. | ||
this.namesToNames = Object.create(null); | ||
this.namesToAnnotations = Object.create(null); | ||
this.surface = this.namesToNames; | ||
@@ -80,2 +81,3 @@ this.annotations = null; | ||
this.valuesToNames[value] = name; | ||
this.namesToAnnotations[name] = enumDef.annotations; | ||
value++; | ||
@@ -82,0 +84,0 @@ } |
{ | ||
"name": "thriftrw", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"description": "thrift encoding/decoding using bufrw", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -40,2 +40,9 @@ // Copyright (c) 2016 Uber Technologies, Inc. | ||
tape('can access enum def annotations', function t(assert) { | ||
var MAE = thrift.models.MyAnnotatedEnum; | ||
assert.deepEqual(MAE.annotations, {'aka': 'my.annotated.enum'}); | ||
assert.deepEqual(MAE.namesToAnnotations.MAE_A, {'aka': 'my.annotated.enum.a'}); | ||
assert.end(); | ||
}); | ||
tape('round trip an enum', function t(assert) { | ||
@@ -42,0 +49,0 @@ var inStruct = {me2_2: 'ME2_2', me3_n2: 'ME3_N2', me3_d1: 'ME3_D1'}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
756804
16138