Skip to content

Latest commit

 

History

History
356 lines (201 loc) · 9.47 KB

CHANGELOG.md

File metadata and controls

356 lines (201 loc) · 9.47 KB

Changelog

This project adheres to Semantic Versioning.

Unreleased

3.0.0 - 2023-12-22

Breaking changes

  • Node 16 is no longer supported, this requires Node 18 or higher to be built.

2.9.1 ( December 19, 2023)

  • Use non-deprecated events API from solid-client-authn-js

2.9.0 ( August 14, 2023)

  • Support Node 18 and 20
  • Support ESM

2.8.3 ( February 6, 2023)

  • Dependency updates (notably, upgrading jest to v29).

2.8.2 ( October 19th, 2022 )

  • Added the ability to prevent the automatic loading of WebID's and Profiles from SessionProvider, this is useful when building provisioning applications where the user has logged in, but doesn't yet have a WebID or Pod or Profile documents.
  • Fixed issue with sourcemaps not being included in our package tarballs

2.8.1 ( October 10, 2022 )

  • Upgrade Inrupt SDKs to latest versions
  • Upgrade typescript to ^4.8.4, this should help with sporadic issues with mismatches in the fetch type definitions

2.8.0 ( June 6, 2022 )

Breaking Changes

  • Support for Node.js v12.x has been dropped as that version has reached end-of-life.

Bugfixes

  • When Image component is editable, the value error will be set if there is no image available, which means the error component (default or custom) wis displayed correctly.

Other Changes

  • This release also significantly upgrades the dependencies used by this package.

2.7.0 ( January 20, 2022 )

New features

  • The Image component now takes an optional prop allowDelete, which renders a default delete button that will remove the value from the dataset. It is also possible to pass a deleteComponent to render a custom delete button in place of the default.

2.6.1

New features

  • The Image component now allows for a new image to be saved even if the property is not found in the dataset, by passing a solidDataset where the Thing should be set after updating, and a saveLocation where the image file should be stored.

Bugfixes

  • The webpack export now works properly for some otherwise-broken webpack-using projects.

2.6.0 ( November 22, 2021 )

New features

  • The SessionContext now has a profile property which contains the user's profiles.

2.5.1 ( October 25, 2021 )

  • Upgrade dependencies, including solid-client and solid-client-authn

2.5.0 ( September 15, 2021 )

  • Add FileUpload component.

2.4.2 ( August 20, 2021 )

  • Change build target from commonjs to umd, to fix webpack issues

2.4.1 ( August 18, 2021 )

  • Fix missing code snippets in storybook
  • Fix dependencies to work with React 17

2.4.0 ( July 23, 2021 )

  • useFile hook added.

  • Table now takes an optional emptyStateComponent to be rendered if no rows are present.

  • TableColumn now takes an optional sortFn sorting function used to sort that column.

  • The following components now take an optional loadingComponent to be rendered while fetching data:

    • Value
    • Text
    • Link
    • Image
    • Video
  • When it is not passed, the components render a default message instead.

  • If null, the default message won't be rendered.

  • The following components now take an optional errorComponent to be rendered in case of error:

    • Value
    • Text
    • Link
  • When it is not passed, the components render a default message instead.

  • DatasetProvider still receives this now as loadingComponent.

  • CombinedProvider now receives this prop and passes it down to the DatasetProvider.

Deprecations

  • loading in DatasetProvider is now deprecated and replaced with loadingComponent to match the rest of the components. loading can still be used in DatasetProvider but may be removed in a future major release.

The following sections document changes that have been released already:

2.3.1 ( June 9, 2021 )

Bugs fixed

  • The Value component now handles the case where datetime-local is unsupported by the browser and renders two inputs with type date and time instead.
  • Updated @inrupt/solid-client-authn-browser, which was causing an issue where SessionContext's sessionRequestInProgress property would not be set to false properly in some cases.

2.3.0 ( May 31, 2021 )

Changed

  • The SessionProvider component now accepts additional variables to enable logging back in on refresh.

2.2.0 ( May 19, 2021 )

Changed

  • Updated all dependencies, including @inrupt/solid-client from 1.3.0 to 1.6.1, and @inrupt/solid-client-authn-browser from 1.5.1 to 1.8.0

2.1.0 ( January 14, 2021 )

Changed

  • If no onError is passed to a SessionContext, an error will be thrown
  • login from useSession will now throw errors if an error occurs
  • Only Enter keyboard events will trigger login and logout on the default LoginButton and LogoutButton
  • Packages have been upgraded - notably, @inrupt/solid-client-authn-browser which allows refreshing without losing the current session

2.0.0 ( November 6, 2020 )

BREAKING

  • dataset property replaced by solidDataset in components so that the property would not conflict with intrisic HTML element attributes.
  • Components such as text and value no longer throw errors if something goes wrong during reading or saving, and instead always call onError if provided.

Added

  • All components which previously took a property prop now can optionally accept a properties prop instead, which will be an ordered list of properties to attempt to read and write from. If none of the properties have values, the first will be used if editing data.

1.7.0 ( November 6, 2020 )

Changed

  • Upgraded dependencies, especially solid-client-* to v1.0

1.6.1 ( November 3, 2020 )

Changed

  • sessionId is now optional for SessionProvider

1.6.0 ( October 27, 2020 )

Added

  • Add login and logout functions to SessionContext/SessionProvider

1.5.1 ( October 26, 2020 )

Changed

  • Updated solid-client-auth to 0.2.2, and solid-client to 0.6.1

1.4.0 ( October 16, 2020 )

Added

  • Added errorComponent to <Image> and <Video>, allowing a placeholder component to be rendered in the place of either in case a thing or value is not found.

Changed

  • Updated package dependencies

1.3.0 ( September 30, 2020 )

Added

  • Added getRowProps to <Table>, allowing a function to be provided to generate attributes for each <tr>, based on row data.

1.2.1 ( September 24, 2020 )

Changed

  • ThingProvider correctly updates its stored Thing in state in response to changes in thing prop

1.2.0 ( September 23, 2020 )

Changed

  • Pass saved dataset and thing to onSave in Text and Value

1.1.0 ( September 22, 2020 )

Changed

  • Exported setDataset and setThing from DatasetProvider and ThingProvider, respectively. This allows components which save data to reset the dataset to what the server returns.
  • Allow non- URL values to be set for the LoginButton. This prevents some errors from occuring, such as if the value is updated as the user types.
  • Added additional storybook documentation and cleaned up examples.

1.0.0 ( September 21, 2020 )

Changed

  • Breaking change to Table - things prop now takes an array of objects { dataset, thing }

0.11.3 ( September 17, 2020 )

Changed

  • Added type for useSession return value
  • Updated decimal and datetime <Value> types to add "step="any" by default
  • Reduced bundle size (making react-table and swr external imports)
  • Upgraded to storybook 6

0.11.2 ( September 15, 2020 )

Changed

  • @inrupt/solid-client version to 0.4.0

0.11.0 ( September 14, 2020 )

Added

  • Add useThing and useDataset hooks

0.9.8 ( September 9, 2020 )

Added

  • Added sortable/filterable <Table> and <TableColumn>, to display rows of Things and columns of properties
  • Tidied logs when testing intentionally thrown errors

0.9.7 ( August 28, 2020 )

Changed

  • Improve handling of unloaded datasets with <Image>, <Text>, and <Value> components.

0.9.6 ( August 28, 2020 )

Added

  • Allow <DatasetProvider> to render a loading property or component instead of its children

0.9.4 ( August 28, 2020 )

Added

  • Allow <Image> and <Video> to read data from ThingContext

0.9.2 ( August 28, 2020 )

Added

  • Generate TypeScript definition files
  • Simplify NPM package structure and files

0.9.1 ( August 26, 2020 )

Added

  • Exported all components, contexts, and providers from src/index.js.

0.9.0 ( August 26, 2020 )

Changed

  • Switched from solid-auth-client to @inrupt/solid-client-authn-browser for authentication, which allows for dynamic registration and DPoP OIDC flow

0.8.2 ( August 12, 2020 )

Changed

  • Added sub-folders for storybook Authentication Providers Components

  • Added storybook knobs to image video and link components

  • Added storybook knobs to Dataset Thing and Combined providers

0.8.1 ( August 12, 2020 )

Changed

  • Added context support for the component

0.8.0 ( August 10, 2020 )

Added

  • Added Video component

0.7.1 ( August 10, 2020 )

Changed

  • @inrupt/solid-client version to 0.1.1

0.7.0 ( August 7, 2020 )

Added

  • Dataset Provider Context
  • Thing Provider Context
  • Combined Dataset and Thing Provider wrapper

0.6.0 ( August 5, 2020 )

Added

  • Image component

0.3.0 ( July 23, 2020 )

Added

  • Session Provider Context
  • useSession hook

0.2.0 ( July 21, 2020 )

Added

  • Log In Component:
  • Log Out Component