Skip to content

Releases: sim51/react-sigma

v5.0.2

16 Jan 15:01
Compare
Choose a tag to compare

Full Changelog: v5.0.1...v5.0.2

Version 5.0.2

Fixes

  • Remove some console.log and prevent it with an eslint config

v5.0.1

15 Jan 12:16
Compare
Choose a tag to compare

Due to some issues when releasing the v5.0.0, I did this version.

Full Changelog: v5.0.0...v5.0.1

v5.0.0

15 Jan 12:13
Compare
Choose a tag to compare

Full Changelog: v4.0.3...v5.0.0

Breaking changes

  • CSS has been renamed style.css, so you must change import "@react-sigma/core/lib/style.css"; by import "@react-sigma/core/lib/react-sigma.min.css";. Now the rollup config is shared, and for each module that export a css file, it will be named style.css.
  • SearchControl in core has been removed. A new module called graph-search replace it.

Features

  • Upgrade to the latest stable release of Sigma (ie. 3.0.0)
  • Upgrade all librairies to their latest version
  • Adding minimap module
  • Adding graph-search module
  • Upgrade all project dependencies
  • Review prettier configuration
  • Sharing rollup configuration across modules

v4.0.3

25 Jul 12:02
Compare
Choose a tag to compare
  • Upgrade to lastest beta of Sigma 3
  • Review events definition in core, and adding missing Sigma events (like the resize one)

v4.0.2

07 Apr 21:27
Compare
Choose a tag to compare

Fixes

  • 65: Sigma: could not find a suitable program for node type "circle"!

v4.0.1

05 Apr 10:29
Compare
Choose a tag to compare

Fixes

  • #64: fail to import in vite project because of lodash

v4.0.0

03 Apr 15:39
Compare
Choose a tag to compare

Features

  • Upgrade to sigma v3
  • Upgrade all project dependencies
  • Refacto project structure
  • Replace example project by a storybook
  • Replace E2E framework by playwright, and run it on the storybook
  • Using stories in website example
  • Fully graph typed API (see #58). Component & hooks take generic types for node, edge & graph attributs. Exemple for the load graph hook :
const loadGraph = useLoadGraph<{label:string, x:number, y:number}, {label:string, size:number}>();

Breaking changes

  • React-sigma doesn't depends anymore to lodash. It was use to make a deep equal on the settings provided to the SigmaContainer. Now you have to handle that :
// Sigma settings are outside the react lifecycle to avoid the change of its ref at every render
// which triggers a full render of sigma. An other way is to use the `useMemo` hook inside the component.
const sigmaSettings = {
  allowInvalidContainer: true,
};

export const Example: FC = () => {
  return (
    <SigmaContainer settings={sigmaSettings}>
      <SampleGraph />
    </SigmaContainer>
  );
};
  • The sigma setting allowInvalidContainer is no more set per default. You have to pass it to the container (check above).

  • When you register events on edges, we don't set the correspondig settings anymore, like enableEdgeClickEvents (see #49)

v3.4.2

30 Jun 13:33
Compare
Choose a tag to compare

Fixes

  • #55 Fix the order in export in package.json (default entry should be the last)

v3.4.1

30 Jun 13:32
Compare
Choose a tag to compare

Fixes

  • #54 Compatibility with the TS moduleResolution bundler

v3.4.0

30 Jun 13:31
Compare
Choose a tag to compare

Feature

  • #48 Camera state is restored when Sigma.js is recreated