Skip to content

Releases: prismic-archive/baked.js

0.3.0

21 May 09:04
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

New features

  • New version of the Prismic kit, that comes with several new features such as fetchLinks and UID

Fixes

  • #19 don't overwrite cfg.option
  • #22 Fix issue for global escape

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

14 Apr 02:16
Compare
Choose a tag to compare
0.2.1 Pre-release
Pre-release

Fixes

  • srcDir or dstDir could not be overwritten in gulpfile.js.
  • The dynamic browser was activated for every query strings, now only the ones containing at least ref or access_token will fire it.

0.2.0

16 Jan 03:58
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

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
  • 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

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 and generated by default
      • The projects using baked's gulp.js file should not be impacted

0.1.1

16 Jan 03:57
Compare
Choose a tag to compare
0.1.1 Pre-release
Pre-release

Features

  • Allow to use page's params in query attributes

0.1.0

20 Nov 07:31
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release

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

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 and onlyServer have been introduced.
  • Allow eager loading of a query results' linked documents.
    • To do so, add data-eager="true" in your query tag.

Fixes

  • The oauthCliendId set in the config.json file is now sent to the browser

0.0.8

20 Nov 07:30
Compare
Choose a tag to compare
0.0.8 Pre-release
Pre-release

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
    • This change allows to simplify the use, and reduce the building time ()

0.0.7

20 Nov 07:30
Compare
Choose a tag to compare
0.0.7 Pre-release
Pre-release

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:

  1. cleanup package.json and add baked in dependencies (look at example/blank/package.json)
    • since this point, you can install and use the baked module
  2. 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
  3. you can now delete the src directory since you don't need it anymore
  4. If you didn't do it already, you can also delete the example directory and the README.md and CHANGELOG.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 and urlToHere helpers (return the full URL)
    • do not confuse the new urlTo helper
      and the old (badly named) helper url_to which returns only a path.
  • 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 into pathTo
    • the old version is still supported by deprecated
  • Replace src_dir and dst_dir by srcDir and dstDir, but it should not break existing gulpfiles
    • the init() helper still supports src_dir and dst_dir
    • the parseOptions() helper's response and the baked.config.options object have src_dir and dst_dir as r/w properties.

0.0.6

18 Jul 12:52
Compare
Choose a tag to compare
0.0.6 Pre-release
Pre-release

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

12 Jun 13:58
Compare
Choose a tag to compare
0.0.5 Pre-release
Pre-release

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 helper partial.
      ([%- partial('footer') %] will include the partial “_footer.html.erb”)
  • 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

03 Jun 09:11
Compare
Choose a tag to compare
0.0.4 Pre-release
Pre-release

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
    • custom routes are honored in this mode too 985ff16
    • url_to now accepts global paths (“/index” for instance) b59834a
  • It is now possible to specify an access_token and a ref in the queryString 48b8a58

Incompatible changes

  • Split tasks “gulp” and “gulp serve42b4ada
  • ⚠ Remove the generate.js file 9ef8c16
    • Run gulp --src <src> --dst <dst> instead

Fixes

  • Non-template HTML files are now copied correctly 6f11b12
  • Supports query parameter names using camelcase 09619b8