Find all notable changes of this project in this file.
- updated dependencies
- updated dependencies
- #113 remove {} value wrapping for cs/cd @ruslantalpa
- the fix in this version might break old versions, as the {} are removed. Thus, one needs to manually add the {} for cs/cd.
- updated dependencies
- #100 support "meta.columns" on all code paths (useful when the user does not have permissions on all the columns in which case doing select=* gives permissions errors) - @ruslantalpa
- #50 and #88 solved by #100 including other fixes - @ruslantalpa
- updated dependencies
- #81, use {} with cs and cd operators url - @YannBeauxis
- Changed from from regular parameters to instantiate the dataProvider to a configuration interface/class. Thus, in future initalize the dataProvider by creating a structure which implements the interface:
import { fetchUtils } from 'react-admin';
import postgrestRestProvider,
{ IDataProviderConfig,
defaultPrimaryKeys,
defaultSchema } from '@raphiniert/ra-data-postgrest';
const config: IDataProviderConfig = {
apiUrl: 'http://path.to.my.api/',
httpClient: fetchUtils.fetchJson,
defaultListOp: 'eq',
primaryKeys: defaultPrimaryKeys,
schema: defaultSchema
}
dp = postgrestRestProvider(config);
- updated dependencies
- #49, custom schema name can be used
- updated dependencies
- updated
urlBuilder
and integrated URL encoding
- #48 solved by pull request #55, the create method should return the data returned by postgrest and not the posted data - @christiaanwesterbeek
- #39, allow passing extra headers via meta for react-admin hooks - @christiaanwesterbeek
- #41, allow columns filtering for getList and getManyReference - @christiaanwesterbeek
- added support of #41 for other functions, but
create
andupdateMany
- #38, Let the sort param in getList be optional - @christiaanwesterbeek
- small fix in condition
- fixed package name
- #42, started adding some unit tests - @christiaanwesterbeek
- dropped authProvider
- code cleanup & restructuring
- minor bugfixes - @christiaanwesterbeek
- added some notes to README.md
- dropped authProvider as this should rather be an own package in case of a generic piece of software or application specific.
- #33, adding dependabot - @promitheus7
- #30 and #33, updated dependency to compatible starting from
ra-core
4.1.x - @corrideat, @promitheus7
- #30, updated ts and modified code, such that some package dependencies became unrequired - @corrideat
- required re-release as I missed to transpile all and upload the features of 1.1.7 to npm.
- fixed bad behaivor with compound keys while using field named
id
issue #27 and issue #19 - @kenfehling
- #26, added rpc filter support, which is explained here - @TheRealAstroboy
- #24, fixed eq. prefix for non-compound keys issue #23 - @andymed-jlp
- fixed query string generation of rpc endpoints issue #22
- Support was dropped for generating the query string given many ids in case of an rpc endpoint. If your application has some psql functions which parse the standard input, I recommend to rework your db design. If this change causes strong damage to your application, please contact me in order to find a proper generic solution. Query strings of single rpc calls now drop the operator (
eq.
) and are generated properly.
- deployment error
- fixed the last fix of getMany and getManyReferecnce for compound keys :)
- fixed getMany and getManyReferecnce for compound keys
- removed requirement to define order key in react admin, when using compound keys: default was
id
, now it's the compound key
- refactored compound primary keys:
For single custom keys wrap an array as follows:
const dataProvider = postgrestRestProvider( API_URL, fetchUtils.fetchJson, 'eq', new Map([ ['some_table', ['custom_id']], // <- instead of ['some_table','custom_id'] ['another_table', ['first_column', 'second_column']], ]) );
- #14, added compound primary keys (see README.md) - @programmarchy
import React from 'react';
->import * as React from 'react';
- Some minor code cleanup
- Fixed wrong support statement concerning postgrest starter kit in readme
- Fixed bug when multidelete - @colonist4096
- #5, Fixed bug while using multiple filters on the same attribute - @olivierdalang
- initial release