@jesscss/core 2.0.0-alpha.1 → 2.0.0-alpha.2

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.
Files changed (2) hide show
  1. package/README.md +1 -3
  2. package/package.json +2 -3
package/README.md CHANGED
@@ -4,6 +4,4 @@ This is separate from the `jess` package, because it contains the AST, therefore
4
4
 
5
5
  ## Data structures
6
6
 
7
- I've fiddled around with lots of data structures trying to find optimal node insertion / removal. With the latest code, I've eliminated most (if not all?) of mid-list insertion/deletion in array-like structures. I had a lot of code based on [Queue from data-structure-typed](https://github.com/zrwusa/data-structure-typed) (and tried some other structures), but Queue is really only faster when items need to be removed / added to the beginning, because of Array resizing. If we're doing only pushes & pops, no mid-list insertions, and only indexed lookups, then a native Array will always win. In those array-like structures for that library, pushes / pops, then an Array will be fine (and its an ArrayList internally).
8
-
9
- For HashMap-like structures, I actually think using a simple extension of Map might be ideal. It's roughly the same speed as `data-structure-typed`'s HashMap, and I can do a custom clone that utilizes a [custom while loop that is currently fastest in Chrome](https://jsperf.app/savivi/6).
7
+ Evaluation uses native `Array` for queues (push/shift) and `Map` for registries no external data-structure libraries. The eval queue is partitioned by priority; rules are evaluated in order with retry/step-down for `StyleImport` only.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "2.0.0-alpha.1",
7
+ "version": "2.0.0-alpha.2",
8
8
  "description": "The Jess Core Library",
9
9
  "main": "lib/index.js",
10
10
  "types": "lib/index.d.ts",
@@ -32,10 +32,9 @@
32
32
  "@ungap/set-methods": "~0.1.1",
33
33
  "chalk": "^5.2.0",
34
34
  "combinate": "^1.1.11",
35
- "data-structure-typed": "~2.0.0",
36
35
  "enhanced-resolve": "~5.18.3",
37
36
  "lodash-es": "^4.17.21",
38
- "@jesscss/awaitable-pipe": "2.0.0-alpha.1"
37
+ "@jesscss/awaitable-pipe": "2.0.0-alpha.2"
39
38
  },
40
39
  "author": "Matthew Dean <matthew-dean@users.noreply.github.com>",
41
40
  "license": "MIT",