-
Notifications
You must be signed in to change notification settings - Fork 14
History
RegPack was created after js1k 2012 with the intent to improve compression over jsCrush and First Crush. The use of a regular expression to describe the tokens was inspired by p01's original work.
New features were introduced in each version to improve compression. The diagram below represents, for each module, the version that first saw it.
- 1.0, Mar. 2013
The initial version of RegPack only contains the Crusher and the algorithm that builds the regular expression from the token list.
- 2.0, Apr. 2013
The algorithm was completed in the second version to use negated character classes in the regular expression and pick the best of the two.
- 3.0, Feb. 2014
- 3.0.1, Mar. 2014
- 3.0.2, Feb. 2015
The third version introduces preprocessing with the ability to rename variables to give extra tokens to the crusher, and create aliases for context method names only. It does not operate on properties yet.
- 4.0, Dec. 2015
- 4.0.1, Feb. 2016
The fourth version runs with both Node.js and inside a browser. With the latter, patterns used by the crusher are shown on the input code.
It also elaborates on preprocessing : Aliasing can also be performed on context properties, and another module merges the evaluation of the unpacked string and its main loop.
- 5.0.0, Feb. 2017
- 5.0.1, Feb. 2017
- 5.0.2, Oct. 2017
The fifth revision brings support for ES6 (arrow function, for..of
loop, tagged template literals), a [module](Module - quote strings) that optimizes the choice of string quotes, and the thermal view in browser environment.