Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nozbe/zacs

Package Overview
Dependencies
Maintainers
9
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nozbe/zacs - npm Package Versions

2345

2.1.1

Diff

Changelog

Source

2.1.1 (2023-08-28)

Bug fixes

  • aspectRatio: <number> no longer incorrectly transpiles to <number>px in CSS
  • aspectRatio: <number> is no longer a Flow error
radex
published 2.1.0 •

Changelog

Source

2.1.0 (2023-06-07)

New features

  • You can now use zacs:style on all elements
  • '.foo, .bar': {} CSS-only stylesets
  • border: [1, 'red'] shorthand
  • You can now use shorthands and web/native: {} scopes inside zacs:style={} attribute. Note that this only works if an object literal is passed. You can transform any such style object with zacs._experimental_resolve({ ... })
  • <zacs.view /> and <zacs.text /> anonymous ZACS elements
  • You can now use ...mixin syntax in stylesheets instead of _mixin: mixin
  • On React Native, stylesheet mixins can now be arbitrary expressions and ZACS will generate more efficient representation

Performance

  • Overriden properties are now stripped on native to save space and silence Hermes warnings
  • StyleSheet.create() is now stripped in production (it doesn't really do anything in modern RN)
  • More efficient React Native imports of Text and View
  • New {experimentalStripEmpty: true} setting - if set, stylesets that are empty won't be emitted at all
  • Optimizes colors in React Native in production

Bug fixes

  • Fix zacs.styled('UppercaseBuiltin'), e.g. 'RCTText'
  • Fix unnecessary require('react-native') insertions
  • Fix broken zacs.styled({ web: ..., native: zacs.text })
  • Fix -ms--prefixed CSS properties

Other

  • keepDeclarations option is removed. Now, declarations are always kept in dev mode (to aid debuggability and to fix React Refresh by default), and always stripped in production mode.
  • __zacs_original_name debug attribute is now placed at the beginning of output elements
  • className={} is now consistently placed before style={}
  • stylesheets: try to preserve comments in output
radex
published 2.1.0-4 •

radex
published 2.1.0-3 •

radex
published 2.1.0-2 •

radex
published 2.1.0-1 •

radex
published 2.1.0-0 •

radex
published 2.0.0 •

Changelog

Source

2.0.0 (2023-02-20)

  • BREAKING: If you use Flow, you need to upgrade to >=0.199.0
  • Officially release zacs.stylesheet({})
  • Flow typing improvements - zacs.styled() now returns correctly typed React component in most cases
radex
published 2.0.0-8 •

radex
published 2.0.0-7 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc