n3 1.11.2 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,12 @@ class Term {
48
48
 
49
49
  get value() {
50
50
  return this.id;
51
+ } // ### Implement hashCode for Immutable.js, since we implement `equals`
52
+ // https://immutable-js.com/docs/v4.0.0/ValueObject/#hashCode()
53
+
54
+
55
+ get hashCode() {
56
+ return 0;
51
57
  } // ### Returns whether this object represents the same term as the other
52
58
 
53
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n3",
3
- "version": "1.11.2",
3
+ "version": "1.12.0",
4
4
  "description": "Lightning fast, asynchronous, streaming Turtle / N3 / RDF library.",
5
5
  "author": "Ruben Verborgh <ruben.verborgh@gmail.com>",
6
6
  "keywords": [
@@ -35,6 +35,12 @@ export class Term {
35
35
  return this.id;
36
36
  }
37
37
 
38
+ // ### Implement hashCode for Immutable.js, since we implement `equals`
39
+ // https://immutable-js.com/docs/v4.0.0/ValueObject/#hashCode()
40
+ get hashCode() {
41
+ return 0;
42
+ }
43
+
38
44
  // ### Returns whether this object represents the same term as the other
39
45
  equals(other) {
40
46
  // If both terms were created by this library,