Skip to content

Latest commit

 

History

History
356 lines (203 loc) · 21.4 KB

CHANGELOG.md

File metadata and controls

356 lines (203 loc) · 21.4 KB

Change Log

1.9.0

Minor Changes

  • 63fc4559 #564 Thanks @luisherranz! - New post type handlers for plain query permalinks:

    • /?p=ID for posts and custom post types.
    • /?page_id=ID for pages.
  • 63fc4559 #564 Thanks @luisherranz! - Sort the link query alphabetically. For example, ?k1=v1&k2=v2 is now the same than ?k2=v2&k1=v1.
  • 63fc4559 #564 Thanks @luisherranz! - Support the preview=true query in the PostType and PostTypeWithQuery handlers.

    If that query is present, the handlers will do an additional request to get the latest revision and they will substitute the title, content and excerpt with the last one.

  • 63fc4559 #564 Thanks @luisherranz! - Add queryString to the list of link params we get/set using libraries.source.parse and libraries.source.stringify.
  • 63fc4559 #564 Thanks @luisherranz! - Support regular expression patterns to match queries in the URLs, like "RegExp:(\?|&)preview=true".

Patch Changes

1.8.4

Patch Changes

  • b8d187b3 #571 Thanks @michalczaplinski! - Revert a change introduced in #542. Keep setting query, link and route on all entities (including non-URL entities) in source.data

1.8.3

Patch Changes

  • 5eaf92cc #548 Thanks @DAreRodz! - Add a derived prop in state.source called entity that returns the entity pointed by a given link.

1.8.2

Patch Changes

1.8.1

Patch Changes

  • 2a28af19 #513 Thanks @michalczaplinski! - Fix a bug where requesting posts for a date that is outside of the calendar range causes a 500 error instead of a 404.
  • 769a7bfd #506 Thanks @michalczaplinski! - Fix the bug that causes a server crash and 500 errors to be returned if a URL contained a partly known entity. E.g. /undefined/2020/some-interesting-post.

  • Updated dependencies [17f539bf]:

    • frontity@1.10.1

1.8.0

Minor Changes

Patch Changes

1.7.1

Patch Changes

  • 1c247126 #389 Thanks @michalczaplinski! - Bugfixes:

    • When using actions.source.fetch("/some-link", { force: true }), the data object property isReady should never be reset to false.
    • The data object custom properties (like items, isCategory...) should not be removed from the data.
    • The entities I get from the new fetch should overwrite the old ones.
    • When calling actions.source.fetch, it should populate data with link, route, page and query, even if data already exists.
  • 75343be3 #433 Thanks @SantosGuillamot! - Change urls to point to test.frontity.org instead of test.frontity.io.

  • Updated dependencies [996865a2, 661ac083, 75343be3]:

    • @frontity/connect@1.1.0
    • frontity@1.7.0
    • @frontity/source@1.2.1

1.7.0

Minor Changes

  • 9b7858ba #382 Thanks @DAreRodz! - Add an option called authorBase to change the base of author links. Useful when a custom structure for permalinks is set in the WordPress site connected with the @frontity/wp-source package.

1.6.3

Patch Changes

1.6.2

Patch Changes

  • e6f48dd9 #339 Thanks @luisherranz! - - Add a fallback to 0 in case default (second param) is missing in both getTotal and getTotalPages.
    • Add backward compatibility to handlers receiving the route param instead of the link one.

1.6.1

Patch Changes

  • cdc84d57 #335 Thanks @luisherranz! - Fix isFetching not turning to true when data exists. It may happen in cases where we are fetching that data in the embed of others. Like for example, taxonomies in posts.

1.6.0

Minor Changes

  • e8210ee9 #253 Thanks @michalczaplinski! - We have made easier to work with searches and pagination by adding this new properties to the data object returned by state.source.get(someLink):

    In all entities:

    • data.link: the link (short for permalink).
    • data.page: the page number.
    • data.route: the link without the pagination part.

    In archives:

    • data.next: the link of the next page in an archive.
    • data.previous: the link of the previous page in an archive.

    In searches:

    • data.isSearch: true for links that are searches.
    • data.searchQuery: the value of the search.

Patch Changes

1.5.0

Minor Changes

Patch Changes

  • c3d4340a #303 Thanks @DAreRodz! - Add force param to actions.source.fetch and libraries.source.populate.

    Also, change the default behavior of populate to not overwrite entities in the state.- Updated dependencies [417f2b0f, 495771f8, 696dec11, 80c1aa3a]:

    • frontity@1.5.0
    • @frontity/connect@1.0.4

1.5.0

Minor Changes

  • 6ac389b #242 Thanks @DAreRodz! - Add a schema for post types and refactor populate. Use also the new types that come from @frontity/source.

Patch Changes

  • Updated dependencies [e887fa1]:
    • @frontity/source@1.1.0

1.4.3 (2019-12-10)

Note: Version bump only for package @frontity/wp-source

1.4.2 (2019-11-04)

Bug Fixes

  • post-type: fix handler if a query is present (0c36a7c)

1.4.1 (2019-10-10)

Note: Version bump only for package @frontity/wp-source

1.4.0 (2019-10-02)

Bug Fixes

  • typescript: update to latest version (a89b11c)

Features

  • wp-source: add postTypes and taxonomies arrays to state (8f8fce3)

1.3.1 (2019-09-10)

Bug Fixes

  • wp-source: move clone-deep from code to tests (4cd6787)

1.3.0 (2019-09-10)

Bug Fixes

  • wp-source: allow arrays inside params in api.get (50fcd63)
  • wp-source: fix handlers, refactor them and improve tests (#193) (c7e2bfe)
  • wp-source: properly populate custom post types and taxonomies (857f803)

Features

  • wp-source: add postEndpoint and params props to state (d921b33)

1.2.0 (2019-08-12)

Bug Fixes

  • wp-source: do not set isHome in postArchive handler (#179) (13e5c1e)

Features

  • frontity: expose fetch and URL from frontity package (#168) (235c465)

1.1.8 (2019-07-12)

Bug Fixes

  • source: set isHome value for the home data object (9af88b4)

1.1.7 (2019-07-04)

Note: Version bump only for package @frontity/wp-source

1.1.6 (2019-07-04)

Bug Fixes

  • babel: use workaround for a bug in babel 7.5.0 (3c489ae)

1.1.5 (2019-07-01)

Note: Version bump only for package @frontity/wp-source

1.1.4 (2019-06-20)

Note: Version bump only for package @frontity/wp-source

1.1.3 (2019-06-20)

Note: Version bump only for package @frontity/wp-source

1.1.2 (2019-06-20)

Note: Version bump only for package @frontity/wp-source

1.1.1 (2019-06-19)

Note: Version bump only for package @frontity/wp-source

1.1.0 (2019-06-19)

Features

  • wp-source: add support for subdirectory, redirections, pages as home, category and tag base (#131) (0b877b2)

1.0.3 (2019-06-19)

Bug Fixes

  • source-get: make isFetching and isReady properties to be always present (#122) (6d2e485)

1.0.2 (2019-06-05)

Bug Fixes

  • source: fix wrong import in source tests (209cdfd)

1.0.1 (2019-06-05)

Bug Fixes

  • all: update typscript and fix some keywords (1fe5fec)
  • wp-source: change apiUrl for api (26947e7)

1.0.0 (2019-06-05)

Bug Fixes

  • route-utils: support custom names in routes (1b0994b)
  • source: change routeUtils functions to "getParams" and "getRoute" (e385d3c)
  • wp-source: fix archive handlers (c09736f)
  • wp-source: fix searches in taxonomies (8b9257f)
  • wp-source: remove domains from links (f111b8c)
  • wp-source: transform WpSource into a function (abd7034)

Features

  • source: accept only strings in 'source.get' and 'source.fetch' (2e9ae62)
  • source: add 'normalize' to libraries (9e0e9e3)
  • source: change 'data' to 'get' and 'dataMap' to 'data' (f32be1a)
  • source: move list pages to their own data (148bc0a)
  • source: rename route libraries to 'stringify' and 'parse' (f230f86)
  • wp-source: add library 'routeUtils' (0a31246)
  • wp-source: remove domain from links (ff1752b)

BREAKING CHANGES

  • source: objects cannot be passed as arguments in 'source.get' and 'source.set'
  • source: route libraries have new names
  • source: "data.pages" doesn't exist anymore, use "data.items" instead. Each "route" represents now an archive's page (if "route" points to an archive).
  • source: changes source API ("data" by "get")

0.1.7 (2019-05-20)

Note: Version bump only for package @frontity/wp-source

0.1.6 (2019-05-17)

Note: Version bump only for package @frontity/wp-source

0.1.5 (2019-05-16)

Note: Version bump only for package @frontity/wp-source

0.1.4 (2019-05-16)

Note: Version bump only for package @frontity/wp-source

0.1.3 (2019-05-15)

Note: Version bump only for package @frontity/wp-source

0.1.2 (2019-05-15)

Note: Version bump only for package @frontity/wp-source

0.1.1 (2019-05-15)

Bug Fixes

  • jest-config: transform js files with ts-jest (943b3e4)