This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
Releases: MoOx/phenomic
Releases · MoOx/phenomic
0.8.2
0.8.1
- Fixed: URLs which does not have the required trailing slash are now adjusted.
This prevent relative links in loaded page content to be wrong. - Fixed: infinite loop for page not found
(#186) - Fixed: dev server redirection if trailing slash is missing works again.
- Added: dev server now send 404.html if there is any in collection when
url is not in collection
(#181)
Boilerplate
- Fixed: Avoid warning of
babel-plugin-webpack-loader
in boilerplate
(#185)
0.8.0
→ Example of update from 0.7 to 0.8
- Changed: use
react-router
basename feature.
All urls in collection do not contain base pathname anymore and
all url in markdown or component should not have it anymore
(#165) - Changed: build script now require an
exports
value
that must contains path tolayouts
,metadata
androutes
.
This values should be strings.
See changes inboilerplate/scripts/build.js
(#145) - Fixed: Redux devtools don't cause invalid checksum anymore
(#152) - Fixed: Homepage url is not prerendered as
//
if you don't have a pathname
in your base url (package.json/homepage
)
(#104) - Fixed: ability to pass custom webpack devServer config
(#157) - Added: Intercept clicks on markdown links so they will not trigger
full page reload
(#67) - Added: Generate meta description and bundle it to collection
Seeboilerplate/web_modules/layouts/Page/index.js
for an example.
(#79) - Added: cli option to server static dist build
npm run build -- --server
(#163) - Added: during development for pre-rendering, dev server will refresh
all files for each render
(#145) - Added: custom routes are supported if you use a
route
field in your
markdown front matter.
See example inboilerplate/content/404.md
(#47) - Added: hot loading support for markdown content.
See changes inboilerplate/scripts/index-client.js
(#11) - Added: boilerplate now enable source maps by default during development.
See changes inboilerplate/scripts/webpack.config.babel.js
(#170)
Under the hood
- Changed: codecov is used for code coverage instead of coverall.
0.7.1
Minor release since the only change only affects new setup (so this is not
really a breaking change).
- Changed: better init setup command
(#129) - Fixed:
process.env.NODE_ENV
is adjusted by--production
CLI flag
(#133) - Fixed: during development (dev server), after a change and a page reload/new
page,<script>
tags are now correct
(#136) - Added: allow to disable automatically open new tab when start dev server
(#135)
0.7.0
Lot's of changes in the boilerplate (scripts/*
).
You should better watch the default boilerplate and grab most of it, then add
back your original modifications.
This changes have been introduced for the better. Pages are now pre-rendered
during development and static build should be faster than before.
- Removed:
collection.json
file does not exist anymore. The collection is
now inlined in generated html pages, even during development so we can use and
access the collection directly and it avoid a server/client request. - Removed: All injected constantes like
__DEV__
and__PROD__
have been
replaced byprocess.env.*
call to make code more universal.
(eg:if (__DEV__)
=>if (process.env.NODE_ENV !== "production")
). - Changed: remove mkdirp in favor of fs-extra
(#126) - Changed: logs are now handled by debug
(#124) - Changed: Move opinionated deps to optionalPeerDependencies
(#99) - Changed: the static build does not require a 3 steps process anymore. No more
statinamic-static.js
script.
Every webpack transformations are now handled via
babel-plugin-webpack-loaders.
to avoid the old painful/slow process.
See boilerplate changes (look forBABEL_ENV=statinamic
and babel
configuration inpackage.json
and in webpack client config). - Changed: collection is now passed in the React
context],
not in the store anymore. - Changed:
pageComponents
are now calledlayouts
.
All references should be renamed accordingly. See boilerplate changes. - Changed:
defaultComponent
prop ofPageContainer
is now
defaultLayout
- Changed: layouts are now passed in the React context, not in the store
anymore. So you need to pass them in the client script now (see boilerplate
change). - Changed:
react-router
has been upgraded to v2.0.0
(#95) - Changed:
redux
as been upgraded to v4.x.
(#91) - Fixed: Dev server now redirects pages without trailing slash
(eg: You callhttp://.../some/thing
; will redirect to
http://.../some/thing/
)
(#22) - Added: the entire configuration is now inspected so you do not provide
unexpected types or unrecognized configuration values.
(#120) - Added:
assets
option to add static assets such as images, video
(#94) - Added:
statinamic
section inpackage.json
can be used to define core
options likeCNAME
. - Added:
CNAME
option to generate aCNAME
file according to your
homepage
(#24) - Added:
nojekyll
option to create.nojekyll
file. - Added:
verbose
option to create get more informations during development. - Added:
devHost
anddevPort
options so you can choose your url during
development. - Added: Development server now generate pre-rendered pages on the fly.
- Added: Allow to pass extra middlewares and store enhancers to redux store
(#102)
Boilerplate
Lot's of change due to how static generation is handled without a 3 steps
process:
- Removed: boilerplate
scripts/index-static.js
(and so
scripts/statinamic-static.js
) - Changed: shorter start and build script
(#127) - Changed:
web_modules/app/store.js
don't have references to
pageComponents
norcollection
. - Changed: boilerplate
web_modules/app/layouts.js
=>
web_modules/layouts/index.js
- Changed: boilerplate
web_modules/Page/
=>web_modules/layouts/Page/
- Changed: boilerplate
web_modules/PageError/
=>
web_modules/layouts/PageError/
- Changed: boilerplate
Layout
wrapper is now calledLayoutContainer
- Changed: boilerplate
static
npm script has been renamed asbuild
to
make the build step easier to find. - Changed: webpack entries now use hashed name by default
- Added: boilerplate includes cssnext instead 2 PostCSS
plugins.
(#87) - Added: boilerplate includes stylelint and
lint CSS with a standard configuration.
(#86) - Added: boilerplate now support a new field from markdown files to specify the
<title>
tag without affecting the body page title (<h1>
)
(See Writing section of the documentation for more information).
(#76)
0.6.1
- Fixed: avoid rerendering on homepage without base url
(#61) - Added: documentation is now included in the npm package in
statinamic/docs/content
Under the hood
- Changed: use babel-preset-stage-1 only (stage-0 is not really safe).
(#68) - Fixed: static class properties (semicolon required)
(babel/babel#3225)
0.6.0
- Changed: boilerplate is now non-transpiled and in
statinamic/boilerplate
(#66) - Changed: switch to babel@^6.0.0
(#42) - Changed: boilerplate now rely on
babel-preset-react-hmre
to get hot loading and visual errors.
(#52) - Fixed: "statinamic setup" message say that dependencies are installed when
they actually are
(#65) - Added: default Page component now warn about missing
title
with the filename - Added: non-transpiled sources are added to npm package, just in case
Under the hood
0.5.1
0.5.0
- Removed:
statinamic/lib/enhance-collection
do not add siblings by default.
You will need to pass{ addSiblingReferences: true }
in the options to get
next and previous references to collection items. - Added:
statinamic/lib/enhance-collection
can now filter keys using a RegExp. - Added: when
--production
is used,process.env.NODE_ENV
is automatically
set toproduction
.
0.4.3
- Fixed (in boilerplate): collection cache can now be used for static rendering
(ref putaindecode#499) - Fixed: escape end of script tags in JSON of
__INITIAL_STATE__
(ref putaindecode#501)