This page provides information about new features, as well as changes you need to plan for when migrating your customization to this version.
For a detailed list of GBC 1.00.59 changes, please refer to the list of fixes on our issue tracker.
New build tool
A new build tool, command line gbc
, is available to build your customization. It is replacing the grunt
command, which is removed.
Here is an command equivalence table:
Old way | New way |
---|---|
grunt |
gbc build see options below |
grunt dev |
becomes a gbc build option, see below |
grunt clean |
gbc clean |
grunt cleanall |
gbc clean all |
grunt help |
gbc -h or gbc --help |
The build options equivalence:
Old way | New way |
---|---|
--customization=NONE |
--no-customization or -nc |
--customization=<customizationId> |
--customization <customizationId> or -c <customizationId> |
--customization=ALL |
--all or -A |
--create-zip |
--create-zip or -z |
--configuration=<configurationFile> |
--configuration <configurationFile> or -C <configurationFile> |
--compile-mode=<compileMode> |
--compile-mode <compileMode> or -m <compileMode> |
--customizationSuffix=<suffix> |
--customization-suffix <suffix> or -s <suffix> |
--build-dist=<buildDist> |
--build-dist <buildDist> or -d <buildDist> |
--themes=<themes> |
--themes <themes> or -t <themes> |
replaced grunt dev with option |
--watch or -w |
For more information, see GBC build tool reference.
Theme variables
New theme variables are available:
gbc-ChromeBarWidget-flow-gbc-items |
Force Chromebar's GBC items to be flown in the right sidebar |
New library
The time manipulation and formating library: Moment.js has been replaced by Day.js, which is smaller and faster.
Sanitize style attribute
The style attribute sanitize
has been added for the Label, Message, and TextEdit widgets. If set to "yes" (the default), when HTML is passed to a widget, the HTML is cleaned to ensure nothing malicious is executed.
This can cause issues, for example, when a hyperlink contains protocols such as mailto:
inside a html label. To solve this kind of problem, set sanitize
to "no":
<Style name="Label.mail">
<StyleAttribute name="sanitize" value="no"/>
</Style>