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

carto

Package Overview
Dependencies
Maintainers
44
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carto - npm Package Versions

23
7

1.2.0

Diff

Changelog

Source

1.2.0

  • Update dependencies
  • Update mapnik-reference to support new Mapnik API version (#498)
nebulon42
published 1.1.0 •

Changelog

Source

1.1.0

  • Update dependencies
  • Update mapnik-reference to support new Mapnik API version (#494)
nebulon42
published 1.0.1 •

Changelog

Source

1.0.1

  • Fix a error in the serialization process. (#473)
nebulon42
published 1.0.0 •

Changelog

Source

1.0.0

  • Documentation is now available on https://cartocss.readthedocs.io. (#473)
  • Warnings are emitted if properties are used that are deprecated, unstable or experimental. There is a new command line / API switch (-q / --quiet / quiet) to suppress those warnings. (#474)
  • Warnings are emitted if a layer has no associated styles or styles do not match a corresponding layer selector. (#29)
  • New command line switch -f / --file to specify a file for output instead of stdout.
  • carto now honors variable redefinition and uses the last defined value instead of the first one (#338).
  • All parameters of XML tags are now ouput in alphabetical order. This makes output more predictable.
  • carto is now able to output a JSON variant of Mapnik XML. There is a new command line / API switch (-o / --output / outputFormat) to choose the output format. Possible values are mapnik (default) for Mapnik XML and json for the JSON variant (part of #413). For Mapnik XML all character data as tag content is now prefixed with CDATA.
  • Expressions are allowed in filters e.g. [height] % 50 = 0 or [height] + 10 = 0, fields have to be properly written within brackets (#377)
  • carto now accepts custom references for validating rules (part of #413)
  • The JavaScript API has been documented (#479)
  • New symbolizer rules (work on the whole symbolizer) enable control of symbolizer serialization. Write e.g. line: none to suppress output of the line symbolizer for this definition. Write e.g. marker: auto to output a markers symbolizer with default values. Symbolizer rules are considered an advanced features and are never inherited to other definitions (#477).
  • Remove millstone from optional dependencies again (#482).

Breaking changes

Stylesheets
  • The deprecated name attribute for layers is no longer supported. Use id instead.
  • The deprecated color functions husl and husla are no longer supported. Use hsluv and hsluva instead.
  • If you define a variable with the same name twice the latest defined value is now used in contrast to the first defined one as before.
  • All parameters of XML tags are now ouput in alphabetical order. If you somehow depend on the order of parameters (e.g. for tests) expect them to change.
API
  • carto.Renderer.render and carto.Renderer.renderMSS now return an object { msg: Array, data: String } instead of just a string. data contains the output as before and msg now contains an array of error or warning objects. In case of errors data is null.
  • carto now only throws errors in case of program failures. All other style processing related errors can be found in the msg property (see above).
  • The constructor of carto.Renderer now only takes one options object instead of a env and options parameter.
  • The option mapnik_version and validation_data of carto.Renderer have been renamed to version and validationData respectively.
  • carto.Renderer now checks each option before forwarding them to the rendering chain. Supported options are defined in the documentation. If you use a option that is missing please open a issue.
nebulon42
published 0.18.2 •

Changelog

Source

0.18.2

  • Remove millstone from optional dependencies again
nebulon42
published 0.18.1 •

Changelog

Source

0.18.1

  • Updated mapnik-reference to fix an install problem for some Node.js versions
  • Backported documentation updates
nebulon42
published 0.18.0 •

Changelog

Source

0.18.0

  • Compile time performance improvement by leaving out rules that do not apply to layer minzoom and maxzoom restrictions if specified (#469)
  • Confirmed that #348 does not occur (anymore)
  • Updated dependencies
nebulon42
published 0.17.3 •

Changelog

Source

0.17.3

  • Fix regression with number parsing after fixing of #411 (#471)
nebulon42
published 0.17.2 •

Changelog

Source

0.17.2

  • Remove unintended scoping of package. It is now again carto. The NPM requirement is dropped.
  • Variables in font definitions are now processed correctly (#333)
  • Display a better error for missing fonts on font name validation (#242)
  • Some properties can now be reset to their default value by using none (#214)
nebulon42
published 0.16.3 •

Changelog

Source

0.16.3

  • Fixed outdated library reference for carto help screen (#444)
  • Fixed a regression related to color math with non-color values being interpreted as HSL instead of RGB (#446)
23
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