Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "datom", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "standardized immutable objects in the spirit of datomic, especially suited for use in data pipelines", | ||
@@ -31,3 +31,3 @@ "main": "lib/main.js", | ||
"dependencies": { | ||
"cnd": "^4.9.0", | ||
"cnd": "^5.3.0", | ||
"emittery": "^0.5.1", | ||
@@ -34,0 +34,0 @@ "intertype": "^3.1.0", |
@@ -29,3 +29,2 @@ | ||
- [Managing Scope](#managing-scope) | ||
- [HTML Conversion](#html-conversion) | ||
- [To Do](#to-do) | ||
@@ -395,30 +394,5 @@ | ||
## HTML Conversion | ||
* For the tagname: | ||
* `d.$key` will become the tagname | ||
* the tagname must conform to the [XML tagname restrictions](https://www.w3.org/TR/xml) | ||
* For the attributes: | ||
* all facets with value `true` (the boolean, not the text) will be turned into 'lone attributes', such | ||
that `{ $key: '<p', contenteditable: true, }` will result in `<p contenteditable>` | ||
* facet values are subject to HTML5 attribute value escaping rules as detailed in | ||
https://mathiasbynens.be/notes/unquoted-attribute-values | ||
* where permitted, values will be left unquoted ('naked'); where necessary, values will be surrounded | ||
by `'` (single quotes) | ||
* facets with an empty string are not treated specially; per attribute value escaping rules, they will | ||
result in `''` (two single quotes) | ||
* all keys that start with a `$` will be ignored | ||
* if `d.$value` is an object, its facets will be turned into HTML attributes; all other keys are ignored | ||
* Open questions: | ||
* how to treat system-level names (sigils `[`, `~`, `]`)? | ||
* ignore? | ||
* as comments? | ||
* as prefixed/namespaced tags? | ||
* how to treat datom keys that contain hyphens, underscores? | ||
* turn underscores into hyphens? | ||
------------------------------------------------------------------------ | ||
@@ -425,0 +399,0 @@ |
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
185487
404
- Removedcnd@4.9.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
Updatedcnd@^5.3.0