Releases: prismic-archive/baked.js
Releases · prismic-archive/baked.js
0.3.0
New features
- New version of the Prismic kit, that comes with several new features such as fetchLinks and UID
Fixes
Potentially incompatible changes
- The updated version of the Prismic kit has changes on DocumentLink that should be transparent for most users but may require an adaptation for some cases; see prismicio/javascript-kit@21ef7ff
0.2.1
0.2.0
Features
- It is now possible to ignore some file/directories
- Globbing is accepted (e.g. “
.*~
”) - The destination directory is automatically ignored if in the source directory
- It is now possible to call
baked --src . --dst build
with infinite loop
- It is now possible to call
- Globbing is accepted (e.g. “
- The default source directory of the
baked
command is now the current directory- A baked website can now be generated using only
baked
without options
- A baked website can now be generated using only
Incompatible changes
- The default directories are changed
- The
baked
command now uses the current directory as source directory - The Gulp file still uses
to_generate
andgenerated
by default- The projects using baked's
gulp.js
file should not be impacted
- The projects using baked's
- The
0.1.1
0.1.0
Incompatible changes
- The queries results are no longer arrays but prismic.io's javascript-kit's
Response
object.- The response elements are in its
results
field
- The response elements are in its
Features
- It it now possible to specify a ref & accessToken server side.
- Allow to display some content only when the page is generated by browser/server.
- For this purpose, the helpers
onlyBrowser
andonlyServer
have been introduced.
- For this purpose, the helpers
- Allow eager loading of a query results' linked documents.
- To do so, add
data-eager="true"
in your query tag.
- To do so, add
Fixes
- The oauthCliendId set in the config.json file is now sent to the browser
0.0.8
Changes
- Stop generating a local version of the library
- In order to use the dynamic generation, you should either
- refer to an official library (for instance
https://prismicio.github.io/baked.js/baked-0.0.7.js
) - build yourself you own version of the library and put it yourself in the generated directory
- refer to an official library (for instance
- This change allows to simplify the use, and reduce the building time ()
- In order to use the dynamic generation, you should either
0.0.7
Big change
baked is now a npm module containing an executable!
This means:
- you don't have to work inside the baked.js repository anymore
- you can use baked.js without creating any gulpfile.js and package.json file
WARNING
Because of this change, if you worked inside the baked.js directory in order to build your website, I strongly recommand to adapt you code accordingly:
- cleanup
package.json
and addbaked
in dependencies (look atexample/blank/package.json
)- since this point, you can install and use the
baked
module
- since this point, you can install and use the
- updates your
gulpfile.js
file to load"baked/gulp"
instead of"./src/tasks/gulp"
- since this point, you are not using the local baked.js files
- you can now delete the
src
directory since you don't need it anymore - If you didn't do it already, you can also delete the
example
directory and theREADME.md
andCHANGELOG.md
files.
Features
- Only errors are now displayed by default.
- (ok this is not an error but it's still cool)
- Add
pathToHere
helper (returns the path of the current page) - Add
urlTo
andurlToHere
helpers (return the full URL)- do not confuse the new
urlTo
helper
and the old (badly named) helperurl_to
which returns only a path.
- do not confuse the new
- Add a global configuration file, which handles:
- the logger level
- the API's URL
- the base URL
Changes
- The
url_to
helper has been renamed intopathTo
- the old version is still supported by deprecated
- Replace
src_dir
anddst_dir
bysrcDir
anddstDir
, but it should not break existing gulpfiles- the
init()
helper still supportssrc_dir
anddst_dir
- the
parseOptions()
helper's response and thebaked.config.options
object havesrc_dir
anddst_dir
as r/w properties.
- the
0.0.6
Feature
- Templates can now include Javascript files using
require
f58cff4- Theses files are evaluated inside the template context
- They are cached (but it's possible to bypass the cache)
- Added
clean
task (thanks to @robinvanb) bdca9b6 - Fixed a bug which may block generation (thanks to @robinvanb) 0bfcddb
0.0.5
This version provide an important feature: the partials (i.e the ability to include a template file into an other).
Features
- Use EJS for template rendering de1e872
- Its HTML escaping and filters are available
- Add template partial 3b96c93
- A partial is a template whose name starts by “_”. It won't be rendered directly
(so it doesn't need meta like “prismic-api”) but is included in other templates using the helperpartial
.
([%- partial('footer') %]
will include the partial “_footer.html.erb”)
- A partial is a template whose name starts by “_”. It won't be rendered directly
- Add OAuth helpers 1e6b7be
- A helper which authenticates an user
- A helper which changes the ref to use
Incompatible changes
- Because EJS is now used, every template returning HTML have to be fixed
(by replacing[%= ... %]
by[%- ... %]
) in order to stop escaping the HTML
twice.
0.0.4
This release tries to be more user-friendly:
- The gulpfile has been cleaned (every internal functions and tasks has been put in
src/tasks/gulp.js
) to incite you to customize it to your own needs. - It is now possible to preview your website using a specific version of your prismic.io content.
Feature
- The dynamic mode is now based on the HTTP server fcc604c
- It is now possible to specify an
access_token
and aref
in the queryString 48b8a58
Incompatible changes
- Split tasks “
gulp
” and “gulp serve
” 42b4ada - ⚠ Remove the generate.js file 9ef8c16
- Run
gulp --src <src> --dst <dst>
instead
- Run