Releases: bigcommerce/paper
Releases · bigcommerce/paper
v3.0.0-rc.3
- Major refactor, moving rendering functionality into paper-handlebars #130 to
allow for alternate template engines.
v3.0 Contains several breaking changes:
- Removed the direct access of
contentServiceContext
for setting page content. From now on, usesetContent()
andgetContent()
. - Removed direct access of
siteSettings
andthemeSettings
. From now on, usegetSiteSettings()
,setSiteSettings()
,
getThemeSettings()
, andsetThemeSettings()
if you need to get/set these values after calling the constructor. - Removed
getTemplateProcessor()
. This is an internal concern ofpaper-handlebars
and is used byloadTemplates
. - Removed
loadTemplatesSync()
. This was only used by helper tests and is no longer needed. - Removed
handlebars
instance variable. Hopefully nobody is accessing that directly. Any helpers that were accessing
it have been updated inpaper-handlebars
to use the global context they are given rather than accessing Paper
directly at all. - The
translator
attribute has been moved topaper-handlebars
and is no longer accessible directly on Paper. - The
decorators
attribute has been moved topaper-handlebars
and is no longer accessible directly on Paper. - The
settings
attribute has been renamed tositeSettings
. This should only be accessed bypaper-handlebars
. - The
cdnify()
function has been moved into a helper library inpaper-handlebars
. - The
inject
attribute has been removed. This is storage used by two of the helpers, and the implementation has
moved topaper-handlebars
.
3.0.0-rc.1
Refactor rendering functionality into paper-handlebars #130 to allow for alternate template engines.
v3.0 Contains several breaking changes:
- Removed the direct access of
contentServiceContext
for setting page content. From now on, useaddContent()
andgetContent()
. - Removed
getTemplateProcessor()
. This is an internal concern ofpaper-handlebars
and is used byloadTemplates
. - Removed
loadTemplatesSync()
. This was only used by helper tests and is no longer needed. - Removed
handlebars
instance variable. Hopefully nobody is accessing that directly. Any helpers that were accessing it have been updated inpaper-handlebars
to use the global context they are given rather than accessing Paper directly at all. - The
translator
attribute has been moved topaper-handlebars
and is no longer accessible directly on Paper. - The
decorators
attribute has been moved topaper-handlebars
and is no longer accessible directly on Paper. - The
settings
attribute has been renamed tositeSettings
. This should only be accessed bypaper-handlebars
. - The
cdnify()
function has been moved into a helper library inpaper-handlebars
. - The
inject
attribute has been removed. This is storage used by two of the helpers, and the implementation has moved topaper-handlebars
.