1
0
Fork 0
mirror of https://github.com/Oreolek/raconteur.git synced 2024-05-02 00:49:20 +03:00
raconteur/CHANGES
2015-10-21 11:05:35 -02:00

28 lines
2 KiB
Plaintext

# 0.5.0 (October 21st, 2015)
The `markdown` object from markdown-it is now exposed as situation.markdown, so that it can be configured.
# 0.4.1 (May 13th, 2015)
Each situation with content is now output as its own `<section>` element. Each situation with content clears the `#current-situation` id from previous situations and gives its content section that id.
Writers, instead of inserting before the `.options` or at the end of the content spool, now insert at the end of the `#current-situation`. This behaviour has ramifications if you're doing strange things with Raconteur situations, but if you're using most of the features as intended this change should be transparent.
The gain from this feature is significant: Situations can now be styled individually, or in groups by giving the situation a `classes` property.
The major potential pitfalls are: first, the "changeover" happens at the content-printing step of `RaconteurSituation#enter`, so if you define a "before" function in your situation and refer to the `#current-situation` that will still be the *previous* situation. Second, if you are using Undum's low-level API to write to the end of the content spool (With `system#write` for instance) and mixing that with Raconteur writers, you might have odd behaviour where text is popping up where you don't expect it. The fix is to make sure you always `writeInto` the `#current-situation` section, OR that you use `system#write` throughout that situation instead. It might be useful to create a new, empty `#current-situation` at the bottom of the content spool by entering a situation with a function that returns empty string as its content.
# 0.4.0 (May 4th, 2015)
- qualities.js now exports `create()` and `use()`, two functions used to
incorporate your own quality constructors into the API.
# 0.3.0 (April 30th, 2015)
- Did away with exportUndum(), since the problem it solves doesn't really exist.
- Moved undum to a devdependency.
# 0.2.1 (April 18th, 2015)
- Add racontest.js, a module for inserting debugging/testing utilities.