n3 2.10.7 → 2.11.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.
- package/README.md +5 -1
- package/browser/n3.esm.min.js +4 -4
- package/browser/n3.min.js +4 -4
- package/lib/N3DataFactory.js +3 -1
- package/package.json +1 -1
- package/src/N3DataFactory.js +4 -1
package/README.md
CHANGED
|
@@ -79,7 +79,11 @@ console.log(myQuad.object.language); // en
|
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
When no language or datatype is supplied, `literal` automatically assigns XSD datatypes
|
|
82
|
-
to JavaScript booleans, numbers, and valid `Date` objects.
|
|
82
|
+
to JavaScript booleans, numbers, BigInts, and valid `Date` objects.
|
|
83
|
+
Integer-valued numbers below 1e21 and all BigInts become `xsd:integer`,
|
|
84
|
+
so use a BigInt when an integer must stay exact beyond `Number.MAX_SAFE_INTEGER`;
|
|
85
|
+
other numbers become `xsd:double`.
|
|
86
|
+
Dates are converted to UTC
|
|
83
87
|
using `Date.prototype.toISOString()` and receive the `xsd:dateTime` datatype:
|
|
84
88
|
|
|
85
89
|
```JavaScript
|