Skip to content

v10.0.0rc0

Pre-release
Pre-release

Choose a tag to compare

@sebastian-goeldi sebastian-goeldi released this 16 Sep 14:25
· 52 commits to main since this release

gdsfactory 10.0.0rc0 is the first release candidate for version 10.0.0. It replaces gdsfactory’s cross-section models with native kfactory profiles, improving persistence and support for asymmetric geometry. This release introduces breaking API changes.

  • Native cross sections: factories return gf.SymmetricCrossSection or gf.AsymmetricCrossSection. gf.CrossSection is now their type union.
  • Complete profile persistence: cross-section geometry, names, radii, and bounding-box metadata travel with ports through GDS/OAS round trips.
  • Asymmetric bundle routing: supports opposite-handed bend pairs, including automatic generation from compatible bend factories.
  • Updated dependencies: requires kfactory ≥3.2.1; the lockfile includes kfnetlist 0.3.0 as a transitive dependency.

To migrate existing code:

  • Replace gf.Section(...) with (layer, minimum, maximum) tuples or kfactory.DCrossSectionLayer. Read resolved strips through xs.get_sections().
  • Pass port definitions, width/offset functions, simplification, insets, and hidden sections to extrusion.
  • Replace xs.copy(width=...) with gf.cross_section.with_width(xs, width).
  • Define radius defaults when a profile is first registered. Pass geometry-specific radius overrides to bends and routes.
  • Replace strip_no_ports with strip and ports={}. metal_routing now aliases metal3.
  • Use xs.add_bbox(component) for bounding-box layers, or add_bbox=True during extrusion.

The rib preset no longer applies its former slab simplification automatically, which can change slab geometry. Review the migration guide (https://github.com/gdsfactory/gdsfactory/blob/release/10.0.0/docs/cross_section_migration.md) for examples, snapping rules, and
geometry details.

Release tooling now supports prerelease versions. Docker prereleases use version-specific and prerelease tags, preserving latest for stable releases. Towncrier has been removed.