Skip to content

Commit

Permalink
Publish v1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Jun 18, 2023
1 parent 42ba42f commit 8afc277
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
10 changes: 1 addition & 9 deletions chocimport.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,9 @@ possible styles of usage, but the most common ones:
5) const arr = []; arr.push(LI()); set_content(thing, arr)
6) const arr = stuff.map(thing => LI(thing.name)); set_content(thing, arr)
7) DOM("#foo").appendChild(LI())
- equivalently before(), after(), append(), insertBefore(), replaceWith()
- also related methods, see DOM_ADDITION_METHODS
8) (x => ABBR(x.attr, x.text))(stuff)
9) replace_content in any context where set_content is valid
TODO: Support import aliases and SVG
- Import aliases should be retained when given and not blown away
- SVG() should trigger an import of "svg:svg": SVG
- Anything inside SVG() should trigger an import that's been lowercased
- If pure lowercasing isn't correct, leave it up to the programmer to fix;
an edited alias import should be supported (that's first prio).
const {"svg:svg": SVG, FOO: BAR} = choc;
*/
import * as espree from "espree";
import fs from "node:fs";
Expand Down
2 changes: 1 addition & 1 deletion factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ function autobind(obj, prop) {
choc = new Proxy(choc, {get: autobind});
lindt = new Proxy(lindt, {get: autobind});

choc.__version__ = "1.7.1";
choc.__version__ = "1.7.2";

//For modules, make the main entry-point easily available.
export default choc;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chocfactory",
"version": "1.7.1",
"version": "1.7.2",
"description": "Simple JS front end library",
"main": "factory.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions whatsnew.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## Chocolate Factory version history

### v1.7.2

* No changes to the Chocolate Factory itself, only the importers
* Bugfix: DOM addition methods (appendChild, etc) had been broken by the importer
changes related to SVG handling (keyword args for state). Now unbroken.
* Bugfix: element.prepend() was omitted from the DOM addition method list.

### v1.7.1

* No changes to the Chocolate Factory itself, only the importers
Expand Down

0 comments on commit 8afc277

Please sign in to comment.