Back to Explore

remarkablemark/style-to-object

GitHub
3 updates · last 90 days2 watchersOpen source

Last release:

style-to-object parses CSS inline style strings (for example, `color: #C0FFEE; background: #BADA55;`) into a JavaScript object of property name to value. It can also invoke an optional iterator callback to process each parsed declaration individually. Useful for turning inline CSS declarations into structured JS data.

Project status

  • The source appears actively maintained, with very recent GitHub activity (last upstream push on 2026-07-08) and multiple tagged updates in the past few weeks (v2.0.2 on 2026-07-06, v2.0.1 on 2026-07-04, v2.0.0 on 2026-06-14).
  • The apparent update cadence is steady and fairly fast by recent standards, about weekly in early July 2026, after a larger update on 2026-06-14; overall it suggests an evolving library rather than maintenance mode.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.0.2

    v2.0.2 is a small maintenance release that bumps the core dependency inline-style-parser from 0.2.8 to 0.2.9. The diff also updates package metadata and adds a new test fixture covering a data URI style value.

  • v2.0.1

    v2.0.1 is a small patch release focused on CSS parsing correctness for URLs containing semicolons and parentheses, plus a build fix to ensure the inline-style-parser code is included in the UMD bundle. The release notes describe two bug fixes, and the diff corroborates both as build/test and dependency changes.

  • v2.0.0

    v2.0.0 includes a TypeScript build target change from es5 to es6. Beyond that, the repo has a major build-tooling overhaul (tsdown) and TypeScript type output/export wiring changes, plus a small internal refactor in src/index.ts around the StyleObject type and object initialization.

    Breaking
  • v1.0.14

    Release v1.0.14 primarily updates the build dependency inline-style-parser. The release notes describe a single change, bumping inline-style-parser from 0.2.6 to 0.2.7.

  • v1.0.13

    Release v1.0.13 is documented as a README badge refresh. The actual diff also includes a package version bump metadata update and substantial devDependency/lockfile changes for the project toolchain (lint/build/test), plus a small README link change.

  • v1.0.12

    v1.0.12 primarily updates the library dependency inline-style-parser from 0.2.4 to 0.2.6. The release notes only mention that one change, but the actual diff also updates CI workflow tooling (actions/setup-node) and bumps multiple development dependencies.

  • v1.0.11

    v1.0.11 is primarily presented as a bug fix for ESM TypeScript types packaging. The code changes also introduce new package publishing linting steps (publint) in CI and in the pre-commit hook, and they adjust which type declaration file is published for ESM.

  • v1.0.10

    v1.0.10 primarily focuses on fixing the package's ESM output and improving type exports for consumers. The release notes mention removing the previous ESM build artifact approach, switching to a real ESM build, and exporting the StyleObject interface. The code diff also includes multiple packaging and build-system changes that are not fully covered in the release notes.

    Features
  • v1.0.9

    v1.0.9 appears to be a tooling-focused release with no documented library/runtime changes. The diff shows CI configuration updates (Codecov action major version bump), build tooling adjustments (Rollup TypeScript plugin compilerOptions), and a large set of development dependency version bumps.

  • v1.0.8

    Release v1.0.8 primarily updates dependencies, specifically bumping the runtime dependency inline-style-parser from 0.2.3 to 0.2.4. The diff shows no application/source code changes, only changelog, package.json, and lockfile updates.

  • v1.0.7

    Release v1.0.7 is primarily a CI and publishing workflow update, specifically adding npm provenance when publishing to the registry. The actual library code changes in this diff are minimal, limited to import ordering and test cleanup, with no apparent runtime API changes.

  • v1.0.6

    v1.0.6 is primarily a dependency bump release. The release notes only mention bumping inline-style-parser from 0.2.2 to 0.2.3, but the code diff also updates multiple repository and tooling configurations (CI, release automation, and dev dependencies).

  • v1.0.5

    Release v1.0.5 is presented as a single bug fix for ESM TypeScript typings. The code diff shows packaging and build pipeline changes to generate and ship ESM declaration files, plus multiple tooling and dependency bumps.

    Breaking