Skip to content

Releases: terrestris/shogun-util

v8.0.0

09 Apr 09:54
Compare
Choose a tag to compare

8.0.0 (2024-04-09)

chore

BREAKING CHANGES

  • ol (and related ol-util) updated to version 9 and moved to peer dependencies

v7.3.1

20 Dec 15:44
Compare
Choose a tag to compare

7.3.1 (2023-12-20)

Bug Fixes

  • determine layer groups visibility by contained layers as well (3114eea)

v7.3.0

29 Sep 08:49
Compare
Choose a tag to compare

7.3.0 (2023-09-29)

Features

  • add find all no paging function (9fc3f47)

v7.2.0

15 Sep 10:00
Compare
Choose a tag to compare

7.2.0 (2023-09-15)

Features

  • include REFERENCE_TABLE type (fb19e25)

v7.1.0

19 Jul 07:42
Compare
Choose a tag to compare

7.1.0 (2023-07-19)

Features

  • add support for parsing XYZ layers (bf647bc)

v7.0.1

14 Jul 12:23
Compare
Choose a tag to compare

7.0.1 (2023-07-14)

Bug Fixes

  • add non-null assertion operator (9fe1a2b)

v7.0.0

14 Jul 08:56
Compare
Choose a tag to compare

7.0.0 (2023-07-14)

Features

  • add option to pass page options (dc2dad3)
  • inlcude Page type to findAll responses (de68643)

Bug Fixes

  • set correct layer type name for WMSTIME (a5a4974)

BREAKING CHANGES

  • This renames the public enum from WMSTime to WMSTIME
  • This changes the return type of the findAll() methods from T[] to Page

v6.1.0

13 Jul 15:59
Compare
Choose a tag to compare

6.1.0 (2023-07-13)

Please note: This release contains a breaking change! Please use v7.0.0 instead.

Features

  • add option to pass page options (dc2dad3)
  • inlcude Page type to findAll responses (de68643)

BREAKING CHANGES

  • This changes the return type of the findAll() methods from T[] to Page

v6.0.1

13 Jul 10:02
Compare
Choose a tag to compare

6.0.1 (2023-07-13)

Bug Fixes

  • pass keep client config param recursively (b9950e4)

v6.0.0

06 Jul 14:22
Compare
Choose a tag to compare

6.0.0 (2023-07-06)

Bug Fixes

  • move to array in gerneric type (dc830da)

Features

  • introduce GenericService as abstract base service (7821c87)

BREAKING CHANGES

  • generics in graphql service require single instances
    now
  • refactor services such that they inherit from
    GenericService

MIGRATION NOTES

Due to the changes in datatype of field data in GraphQLResponse (generic is now a simple type and not an array anymore) you may change the datatype of your result

OLD - Deprecated

const query: GraphQLQueryObject = {
      query: findLayerById,
      variables: {
        id: 4711
      }
    };

const data: Layer[] = await client.graphql().sendQuery<Layer>(query);
// data is always an array

NEW

const query: GraphQLQueryObject = {
    query: findLayerById,
    variables: {
    id: 4711
    }
};

// result is a layer
const {
    findLayerById: result
} = await client.graphql().sendQuery<Layer>(query);


// result will be a layer array if generic is set as array
const {
    findAllLayers: result
} = await client.graphql().sendQuery<Layer[]>(query);