Skip to content

v0.4.0

Choose a tag to compare

@shlomoa shlomoa released this 02 Nov 15:11
· 66 commits to main since this release

Highlights

  • OpenUI schema version management: the schema version is owned by the installed openui-spec package (its SCHEMA_VERSION file), read via installed_openui_schema_version() (distribution record, package data, or source-checkout root) and compared (major.minor) against the ngdj command-mapping.json openuiSpecVersion. The openui-spec dependency is unpinned.
  • Local-first angular-django2 integration: the real-tools e2e flow packs and installs the adjacent checkout's built package by default (E2E_NGDJ_LOCAL, E2E_NGDJ_TARBALL), the command-mapping fixture follows the checkout, and the ngdj-contract CI job tracks angular-django2@main.
  • django_angular3.spa.angular_urlpatterns() serves the built Angular application from Django on the same origin as the API.
  • ng_data_service --path forwards the schematic --path (#239), and the real-tools end-to-end flow (DJNG_E2E=1, tracks W and B) covers the whole chain, now also on Windows.

Breaking changes

  • OpenUI documents are versionless (openui-spec 0.15): a root version member is rejected (grammar/unknown-property). Remove it from existing documents; the schema version comes from the installed openui-spec.
  • django-angular3.json is mandatory with no packaged fallback, including angular.build.browserOutputPath and tool.ngAddPackage.
  • build_app translation emits one step for several OpenUI Changes under the same command root.

Upgrading

  1. Remove the root version member from your OpenUI documents.
  2. Add django-angular3.json next to your project configuration (see the tutorial template) with angular.build.browserOutputPath set.
  3. Note: the shipped tool.ngAddPackage still pins angular-django2@0.7.1, which predates versionless documents; for schematic compilation use a local angular-django2 checkout (built from main) until its next release, when the pin will be bumped.

Full details in CHANGELOG.md.