Visitar URL original
USWDS - Sass 2.0.0: Update `renderSync()` function · Issue #6287 · uswds/uswds · GitHub
Skip to content

USWDS - Sass 2.0.0: Update renderSync() function #6287

Closed

Description

@mahoneycm

Description

Sass JS API is updating and removing the deprecated renderSync() function in Dart Sass 2.0.0

Related issue

#6294

Proposed solution

Replace renderSync() with compile() or compileAsync() based on our implementation.

The only use that needs to be updated seems to be in util.js.

Note

The unit tests that are importing and using util.js are currently not being ran at any point. #6294 plans to address this.

Activity

  1. self-assigned this
    on Jan 6, 2025
  2. mejiaj commented on Jan 23, 2025

    @mejiaj
    Contributor

    Blocked by #6294.

    We need to update the render function in util.js to make sure the SASS deprecation warning is gone.

    Not blocked, but should be de-prioritized since this function is being used in unused code which will be re-worked or removed.

  3. moved this from Blocked to Backlog in USWDS Core Project Dataon Feb 13, 2025
  4. ryparker commented on Sep 14, 2026

    @ryparker
    Member

    I'm closing this as complete. The Sass helper now uses compileString in packages/uswds-core/src/js/utils/test/util.js:16-24, and no renderSync references remain in the repository.

    There is still a testing gap: only the specs under src/test import this helper, and the current test run doesn't execute those specs. So the API migration has landed, but a passing test hasn't verified it. That work remains open in #6294.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions