Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Releases: kintone-labs/kintone-js-sdk

v0.6.1

13 Dec 09:44
Compare
Choose a tag to compare

New functions / features

  • Support esm/CommonJS distribution.

Updates / bug fixes

  • Update getAllRcordsByQuery() to be able to use seek option.
  • Fix bug that download() function can't be used simultaneously with other functions.

v0.5.1

13 Dec 09:24
Compare
Choose a tag to compare

Updates / Bug fixes

  • Fixed a bug where "getAllRecordsByCursor" could not be executed
  • Updated README to inform about major changes to the SDK's usage

v0.5.0

13 Dec 09:22
Compare
Choose a tag to compare

New functions / features

Completely changed parameters of all modules' constructors and functions to single object parameters

Example: Record module

  • Previous version :
  const kintone = require('@kintone/kintone-js-sdk');

  const auth = new kintone.Auth();
  const username = 'YOUR_USERNAME';
  const password = 'YOUR_PASSWORD';
  auth.setPasswordAuth(username, password);

  // Define connection that included auth
  const connection = new kintone.Connection('YOUR_DOMAIN', auth, 'YOUR_GUEST_SPACE_ID');

  const kintoneRecord = new kintone.Record(connection);
  const app = YOUR_APP_ID;
  const id = YOUR_RECORD_ID;
  kintoneRecord.getRecord(app, id).then((rsp) => {
    console.log(rsp);
  }).catch((err) => {
    console.log(err);
  });
  • v0.5.0 version:
  const kintone = require('@kintone/kintone-js-sdk');

  // Define Authentication object
  const kintoneAuth = new kintone.Auth();
  const paramsAuth = {
      username: 'YOUR_USER_NAME',
      password: 'YOUR_PASSWORD'
  };
  kintoneAuth.setPasswordAuth(paramsAuth);

  const paramsConnection = {
      domain: 'YOUR_DOMAIN',
      auth: kintoneAuth,
      guestSpaceID: GUEST_SPACE_ID
  };
  const connection = new kintone.Connection(paramsConnection);
  const kintoneRecord = new kintone.Record({connection});

  const getRecordParams = {
     app: YOUR_APP_ID,
     id: YOUR_RECORD_ID
  }
  kintoneRecord.getRecord(getRecordParams).then((rsp) => {
    console.log(rsp);
  }).catch((err) => {
    console.log(err);
  });

Updates / bug fixes

v0.4.2

13 Dec 09:22
Compare
Choose a tag to compare

Updates / Bug fixes

  • Fix getAllRecordsByCursor Issue #75

v0.4.1

13 Dec 09:13
Compare
Choose a tag to compare

New functions

  • Added new function "setHttpsProxy" for setting a proxy, which is SSL-secured.

v0.4.0

13 Dec 09:06
Compare
Choose a tag to compare

New functions

  • Added RecordCursor module

Updates / Bug fixes

  • Support proxy authentication for "setProxy()" function
  • Corrections for user guide
  • Improve delivery of package on npmjs
  • Add missing "form-data" to dependencies

v0.3.2

13 Dec 09:02
Compare
Choose a tag to compare

Updates

  • Fix bug of function uploadFile returns 'Blob'
  • Fix DeprecationWarning: Buffer() is deprecated in unit tests
  • Refactor getAllRecordsByQuery function

v0.3.1

13 Dec 08:52
Compare
Choose a tag to compare

Updates

  • Upgrade axios to version 0.19.0
  • Make connection parameter unnecessary when initializing SDK modules in browser environment on kintone domain.

v0.3.0

13 Dec 08:47
Compare
Choose a tag to compare

Updates

  • Change nock.intercept("DELETE") to nock.delete
  • Browser: change type of download file from ArrayBuffer to Blob

New functions

Auth

  • setClientCertByPath
  • setClientCert

Record module

  • upsertRecord
  • upsertRecords

v0.2.0

13 Dec 08:45
Compare
Choose a tag to compare

Updates

  • Support tree shaking

New functions

Record module

  • getAllRecordsByQuery
  • addAllRecords
  • updateAllRecords
  • deleteAllRecordsByQuery