Change record status: 
Project: 
Introduced in branch: 
9.1.x
Introduced in version: 
9.1.3
Description: 

Summary

Patternkit 9.1.3 removes its unused bundled AJV assets and build dependency.
Patternkit did not use these assets for its own validation.

Who is affected

Site builders, administrators, and editors

Sites without custom code that directly uses Patternkit's bundled AJV assets
are unaffected. No action is required, and Patternkit's editor validation
continues through JSON Editor.

Module and theme developers

Custom code that relies on Patternkit to load AJV loses that supplied
dependency. This affects only code that directly uses the bundled assets,
not code that attaches Patternkit's editor libraries without using AJV.

What changed

  • Previously, Patternkit bundled AJV and loaded it with the
    patternkit/jsoneditor and patternkit/jsoneditor.dev libraries.
  • In 9.1.3, those libraries no longer load js/ajv.min.js. Its bundled source
    map and the AJV build dependency are also removed.

Required action for developers using AJV

  • If custom JavaScript still uses AJV, supply and load that dependency
    independently. Attaching a Patternkit JSON Editor library no longer supplies it.
  • If your code no longer uses AJV, remove the unused reliance. Review any build
    declaration retained solely to reproduce Patternkit's former asset build.
  • Keep your own AJV dependency when your code still uses it.
Impacts: 
Module developers
Themers