Skip to content

Releases: wearelucid/api-fetcher

v3.1.1

05 Nov 14:48
Compare
Choose a tag to compare

#13

What's Changed

New Contributors

Full Changelog: v3.1.0...v3.1.1

v2.3.0

05 Nov 14:15
Compare
Choose a tag to compare

#v2.3.0

Changes

  • Allow not only 10 categories to be fetched by default but 100.
  • Use node version 16
  • Update dependency axios

v3.0.0

26 Feb 14:52
Compare
Choose a tag to compare
  • [Fix/Refactor] WP Menu Fetcher (possibly breaking change but probably not): Refactor to get i18n-ed menu locations
  • [Update] Deps: Use node 12, remove mkdirp and replace with native fs, update deps, add yarn.lock, remove bows because the function is alsways noop in our node env somehow

v2.2.0

08 Nov 10:59
Compare
Choose a tag to compare

Allow transforms on getWPCategories, getWPCustomTaxonomy and getWPMenus

v2.1.0

07 Nov 21:39
Compare
Choose a tag to compare

Allow to pass additional query parameters to getWPPostType request url.
Like:

fetcher.paginate(
  'posts',
  {
    posts: {
      method: fetcher.getWPPostType,
      postType: 'events',
      additionalQueryParams: [
        { key: 'orderby', value: 'date' },
        { key: 'order', value: 'desc' },
        { key: 'after', value: '2019-10-13T17:00:00' }
      ],
      transforms: [flattenACF, decodeTitle]
    }
  },
  config.fetcherConfigEvents
)

Which will result in
/api/wp/v2/events?per_page=5000&lang=de&orderby=date&order=desc&after=2019-10-13T17:00:00

v2.0.0

25 Jul 09:24
Compare
Choose a tag to compare

v2.0.0

Make fetcher ready to use new version of the plugin that exposes the menu to the REST API: https://wordpress.org/plugins/wp-rest-api-v2-menus/

v1.1.1

13 Jun 09:47
8558daa
Compare
Choose a tag to compare

Fetch categories and taxonomies

v1.1.0

20 Mar 10:10
Compare
Choose a tag to compare

Posts named with Slug

Paginated posts are now being written with their slug name