Releases: henry-luo/mark
Releases · henry-luo/mark
Release list
Mark 1.0.0 Release
Comparing to v0.11 beta release, Mark 1.0 have following major changes:
- Mark element syntax changed from {element ...} to <element ...>;
- Binary syntax changed from [#...] to: b'...';
- Added new types: symbol, datetime, decimal and list;
- Removed pragma;
Mark 1.0 release just mark the start of a long journey to make web a better platform to store and exchange both object and markup data.
1.0 release just means whatever is released in this version will receive backward compatible support in the foreseeable future like the ever-green HTML.
Syntax and API fine tuning
- Binary object syntax changed from
{: ... }to[# ... ]. - Array-like APIs, like map(), filter(), reduce(), etc., have been made to work when the 'length' property is set on the Mark object.
Syntax and API fine tuning
- Changed .length() to .length, so that Mark object is now array-like, thus functional libraries that work with array-like data can also work with Mark object without change.
- Added Mark.lengthOf() to get content length of a Mark object. This is useful when the .length property is defined on the Mark object.
- Introduced double ?? escape to Mark pragma.
- Mark stringify() now omits comma.
Syntax fine-tuning
Some minor syntax fine-tuning:
- String value need not be quoted if it is an identifier.
- Block comment
/* ... */can now be nested. - Added an alternative pragma syntax
(? ... ?). - Content normalization for
Changed pragma delimiters
- Changed Mark pragma delimeters from back ticks `...` to round brackets (...).
- Made the symbols used by Mark public.
Simplified pragma syntax
In this beta release, Mark pragma syntax has been simplified from {...} to `...`.
As its syntax is now clearly distinguished from Mark and JSON object, it's parsing and usage is much simpler.
Binary data support and separated mutative API
- Binary data can now be encoded in base64 or ascii85;
- Mutative API functions are now separated into sub-module mark.mutate.js;
- Added new API functions .each() and .text();
- Added Mark('{source}') shorthand support;
- Added XML and HTML stringification indentation support;
- Some minor bug fixes and code clean up;
New release to support optional comma
A minor release to support optional comma in Mark.