Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
jsxstyle@3.0.0
jsxstyle-nextjs-plugin@3.0.0
Major Changes
cssMode
to'styled-jsx'
in yourjsxstyle/webpack-plugin
config options.jsxstyle-utils@3.0.0
Major Changes
Minor Changes
b4ad4cc: Added a new utility,
makeCustomProperties
, that makes generating CSS custom properties a whole lot easier. It’s currently exported asEXPERIMENTAL_makeCustomProperties
. I’ll remove the "EXPERIMENTAL" prefix once it’s been battle tested a bit.1efdeb8: Combined jsxstyle and jsxstyle-utils. Partially inspired by Proposal: combine jsxstyle and webpack plugin #167.
jsxstyle/utils
.jsxstyle/utils
with jsxstyle rather than treating it like an external dependency. This allows the CommonJS bundle of jsxstyle to contain only essential utilities fromjsxstyle/utils
.f6408ad: Added common component prop filtering. Common props like
type
,name
, and a few others can now be set at the top level of a jsxstyle component. This should make both styling and configuring commonly-used components like inputs, buttons, and links a bit less painful. For additional context, see Add aStyled
component #147.b736a71: Ensured that style rules are only written to the DOM one time.
473e9e0: Added a new exported function,
processProps
, that turns an object of style props and component props into an object of component props and an array of CSS rules.processProps
powers the “one classname per style prop” functionality introduced in Generate one classname per style prop #163.jsxstyle-webpack-plugin@3.0.0
Major Changes
77951e4: Moved
jsxstyle-webpack-plugin
into the main jsxstyle package. The webpack plugin can now be imported fromjsxstyle/webpack-plugin
. The plugin export has also been changed to a named export:4d2bc2a: Implemented one className per style prop functionality.
0a7e20b: Moved
cacheFile
option andclassNameFormat
options from the webpack loader to the plugin.dbd1f6e: Removed style group support from the webpack plugin.
f8b0322: Removed support for webpack 1-4. webpack 1-3 were already untested so this was mostly a formality.
92ded84: Made a few breaking config changes to
jsxstyle/webpack-plugin
:whitelistedModules
option tostaticModules
.staticModules
array are now compiled using the parent webpack config, so they can contain any syntax that the webpack config can compile. The main breaking change: thestaticModules
option is now passed directly to the plugin rather than as a loader option.Minor Changes
47f9c96: Added inline CSS import support to
jsxstyle/webpack-plugin
. This officially replaces the virtual filesystem stuff we were doing behind the scenes.You can enable this new option by setting
inlineImports
to eithersingle
ormultiple
in yourjsxstyle/webpack-plugin
settings.inlineImports
is set tosingle
, one import will be prepended to each processed file. This import will contain all the extracted CSS rules from the file. This is equivalent to whatjsxstyle/webpack-plugin
has already been doing.inlineImports
is set tomultiple
, one import per CSS rule will be prepended to the file. This option allows webpack to dedupe extracted CSS with perfect precision, but it does so by generating hundreds and possibly even thousands of new modules at build time. This may have adverse effects on webpack’s build time.jsxstyle-react@3.0.0
Minor Changes
1efdeb8: Combined jsxstyle and jsxstyle-utils. Partially inspired by Proposal: combine jsxstyle and webpack plugin #167.
jsxstyle/utils
.jsxstyle/utils
with jsxstyle rather than treating it like an external dependency. This allows the CommonJS bundle of jsxstyle to contain only essential utilities fromjsxstyle/utils
.jsxstyle-solid@3.0.0