Skip to content

Releases: nhn/tui.code-snippet

v2.3.3

18 Jun 18:33
Compare
Choose a tag to compare

Documentation

  • c4f3904 docs: add notice about CDN for v1

Enhancement

v2.3.2

06 Apr 01:29
Compare
Choose a tag to compare

Bug Fixes

  • 8e267a7 Fix: prevent access to the window object in the node (fix #48) (#49)

v2.3.1

29 Jan 08:24
Compare
Choose a tag to compare

Bug Fixes

  • 9132861 Fix: access xhr.status after xhr.readystate becomes done (fix #45) (#46)

v2.3.0

28 Jan 06:09
Compare
Choose a tag to compare

Features

  • ce12fb3 Feat: ajax (#44)
    • A module for the Ajax request. [API Page]
      • If the browser supports Promise, return the Promise object. If not, return null after complete the Ajax call.
      • It supports beforeRequest, success, error, and complete callbacks.
      • Common configurations can be specified in ajax.defaults.
      • It provides ES6(tui-code-snippet/ajax/index.mjs) and transpiled(tui-code-snippet/ajax/index.js) files. Transpiled version supports IE8+.
import ajax from 'tui-code-snippet/ajax'; // import ES6 module (written in ES6)
// import ajax from 'tui-code-snippet/ajax/index.js'; // import transfiled file (IE8+)

ajax({
  url: 'https://nhn.github.io/tui-code-snippet/2.3.0/latest',
  method: 'POST',
  contentType: 'application/json',
  params: {
    version: 'v2.3.0',
    author: 'NHN. FE Development Lab <dl_javascript@nhn.com>'
  },
  beforeRequest: () => {
    showProgressBar();
  },
  complete: () => {
    hideProgressBar();
  }
}).then(({ data }) => {
  console.log(data);
}).catch(({ status, statusText }) => {
  console.error(`${status} - ${statusText}`);
});

v2.2.0

19 Dec 02:14
Compare
Choose a tag to compare

Features

  • 5b91727 Feat: support bracket notation with quotes and dot notation (#41)

Bug Fixes

v2.1.0

29 Nov 07:39
Compare
Choose a tag to compare

Features

Notice

  • Since v2.0, tui.code-snippet does not provide bundle files. If you need a bundle file, you should make it yourself using the command npm run bundle. Please refer to this.

v2.0.0

04 Sep 09:09
Compare
Choose a tag to compare

Breaking Changes

  • The v2.0 should be installed using the npm command. CodeSnippet does not support bower and CDN anymore. See the detail here.
  • The functions are separated into individual files. To use the functions of CodeSnippet, you should import the functions one by one. See the detail here.
  • The v2.0 is combined with tui.dom, so domEvent and domUtil functions are added. See the detail here.
  • The v2.0 deprecated several functions. See the detail here.

Features

  • d04b9cb Feat: separate functions into individual files (close #33)

Documentation

  • Docs: edit README
  • Docs: add getting-started, v2.0-migration-guide

v1.5.2

25 Jul 08:04
Compare
Choose a tag to compare

Bug Fixes

  • 822a9da Fix: Don't call methods that aren't available in the node environment

Documentation

v1.5.1

09 Apr 07:16
Compare
Choose a tag to compare

changed

  • change company name(nhnent -> nhn)

v1.5.0

05 Dec 07:25
Compare
Choose a tag to compare

Features

  • bdda85c feat: sendHostname can works after 7 days and change GA Tracking ID (#20)
import util from 'tui-code-snippet';

util.sendHostname('componentName', trackingID);