Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: MONEI/Shopify-api-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d95df367a65a1e2423bccb5eb76204a362f35f87
Choose a base ref
...
head repository: MONEI/Shopify-api-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a7f20a2d6c4c931ea356ac33654862ad1f69631a
Choose a head ref

Commits on Feb 25, 2021

  1. Copy the full SHA
    2d9296a View commit details
  2. Copy the full SHA
    eb0011c View commit details

Commits on Mar 14, 2021

  1. Copy the full SHA
    a501b67 View commit details
  2. Copy the full SHA
    1cee4b2 View commit details
  3. [dist] 3.6.6

    lpinca committed Mar 14, 2021
    Copy the full SHA
    88d5e04 View commit details

Commits on Mar 26, 2021

  1. Copy the full SHA
    757b9a1 View commit details
  2. Copy the full SHA
    6e5cc5f View commit details
  3. [dist] 3.6.7

    lpinca committed Mar 26, 2021
    Copy the full SHA
    68d3b1f View commit details

Commits on Mar 31, 2021

  1. Copy the full SHA
    833f130 View commit details
  2. [dist] 3.6.8

    lpinca committed Mar 31, 2021
    Copy the full SHA
    7873562 View commit details

Commits on Apr 2, 2021

  1. Copy the full SHA
    6573c25 View commit details
  2. [dist] 3.6.9

    lpinca committed Apr 2, 2021
    Copy the full SHA
    254cf24 View commit details

Commits on Apr 8, 2021

  1. Copy the full SHA
    0ca95af View commit details
  2. [dist] 3.6.10

    lpinca committed Apr 8, 2021
    Copy the full SHA
    2015009 View commit details

Commits on Apr 19, 2021

  1. [doc] Remove "official" wording

    alexandresaiz authored and lpinca committed Apr 19, 2021
    Copy the full SHA
    e1163d6 View commit details

Commits on Apr 21, 2021

  1. Copy the full SHA
    b1e7a9e View commit details

Commits on Apr 23, 2021

  1. Copy the full SHA
    f8c5255 View commit details
  2. [dist] 3.6.11

    lpinca committed Apr 23, 2021
    Copy the full SHA
    7d0b8d9 View commit details
  3. [ci] Test on node 16

    lpinca committed Apr 23, 2021
    Copy the full SHA
    f171ce8 View commit details

Commits on Apr 26, 2021

  1. Copy the full SHA
    a739069 View commit details

Commits on May 3, 2021

  1. Copy the full SHA
    6bc6f3a View commit details

Commits on May 6, 2021

  1. Copy the full SHA
    ece5b84 View commit details
  2. Copy the full SHA
    a7108a6 View commit details

Commits on May 7, 2021

  1. [dist] 3.6.12

    lpinca committed May 7, 2021
    Copy the full SHA
    e10cb96 View commit details

Commits on May 23, 2021

  1. Copy the full SHA
    d1fd13e View commit details

Commits on Jul 5, 2021

  1. Copy the full SHA
    70f5998 View commit details
  2. Copy the full SHA
    0501cf3 View commit details
  3. Copy the full SHA
    00bb5d9 View commit details
  4. [dist] 3.6.13

    lpinca committed Jul 5, 2021
    Copy the full SHA
    6b6f167 View commit details

Commits on Jul 22, 2021

  1. [ts] Make force_ssl optional (#497)

    As of API version 2021-07, the `force_ssl` field on the Shop resource has been removed.
    samkit5495 authored Jul 22, 2021
    Copy the full SHA
    671f3de View commit details
  2. [dist] 3.6.14

    lpinca committed Jul 22, 2021
    Copy the full SHA
    ad75244 View commit details

Commits on Aug 10, 2021

  1. [test] Fix nits

    lpinca committed Aug 10, 2021
    Copy the full SHA
    e8f7588 View commit details

Commits on Aug 15, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c8b5cdb View commit details

Commits on Aug 19, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5c1c631 View commit details
  2. [dist] 3.7.0

    lpinca committed Aug 19, 2021
    Copy the full SHA
    489d1fb View commit details

Commits on Aug 21, 2021

  1. [ts] Add type to IMetafield interface

    Fixes: #505
    lpinca committed Aug 21, 2021
    Copy the full SHA
    c79cce9 View commit details
  2. [dist] 3.7.1

    lpinca committed Aug 21, 2021
    Copy the full SHA
    16b49af View commit details

Commits on Aug 27, 2021

  1. Copy the full SHA
    e369f29 View commit details

Commits on Sep 2, 2021

  1. Copy the full SHA
    b25b666 View commit details
  2. [dist] 3.7.2

    lpinca committed Sep 2, 2021
    Copy the full SHA
    c8f1a9d View commit details

Commits on Sep 13, 2021

  1. Copy the full SHA
    086fc02 View commit details

Commits on Sep 21, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f51f9bb View commit details
  2. [dist] 3.7.3

    lpinca committed Sep 21, 2021
    Copy the full SHA
    94171c3 View commit details

Commits on Sep 25, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    16cefb9 View commit details
  2. Copy the full SHA
    033d64d View commit details
  3. [dist] 3.8.0

    lpinca committed Sep 25, 2021
    Copy the full SHA
    51893c9 View commit details

Commits on Oct 10, 2021

  1. Copy the full SHA
    e3f68c7 View commit details
  2. Copy the full SHA
    7dedac8 View commit details
  3. Copy the full SHA
    b64f063 View commit details
  4. Copy the full SHA
    d47d2e4 View commit details
Showing with 337 additions and 114 deletions.
  1. +2 −5 .eslintrc.yaml
  2. +7 −3 .github/workflows/ci.yml
  3. +4 −0 .husky/pre-commit
  4. +0 −5 .huskyrc.json
  5. +12 −6 README.md
  6. +195 −59 index.d.ts
  7. +33 −13 index.js
  8. +10 −8 package.json
  9. +1 −1 resources/index.js
  10. +2 −2 test/fulfillment-order.test.js
  11. +1 −1 test/resource-feedback.test.js
  12. +70 −11 test/shopify.test.js
7 changes: 2 additions & 5 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -4,15 +4,12 @@ env:
node: true
extends:
- eslint:recommended
- prettier
- plugin:prettier/recommended
parserOptions:
ecmaVersion: 9
plugins:
- prettier
ecmaVersion: latest
rules:
no-var: error
prefer-const: error
prettier/prettier: error
quotes:
- error
- single
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -13,14 +13,18 @@ jobs:
- 10
- 12
- 14
- 16
- 17
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run lint
if: matrix.node == 16
- run: npm test
- uses: coverallsapp/github-action@v1.1.2
if: matrix.node == 14
- uses: coverallsapp/github-action@1.1.3
if: matrix.node == 16
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
5 changes: 0 additions & 5 deletions .huskyrc.json

This file was deleted.

18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Shopify API Node.js (Official module)
# Shopify API Node.js

[![Version npm][npm-shopify-api-node-badge]][npm-shopify-api-node]
[![Build Status][ci-shopify-api-node-badge]][ci-shopify-api-node]
[![Dependencies][david-shopify-api-node-badge]][david-shopify-api-node]
[![Coverage Status][coverage-shopify-api-node-badge]][coverage-shopify-api-node]

Official Shopify API bindings for Node.js.
Shopify API bindings for Node.js.

## Installation:

@@ -54,8 +53,16 @@ Creates a new `Shopify` instance.
specifies a limit of 2 requests per second with a burst of 35 requests. When
set to `true` requests are limited as specified in the above example. Defaults
to `false`.
- `parseJson` - Optional - The function used to parse JSON. The function is
passed a single argument. This option allows the use of a custom JSON parser
that might be needed to properly handle long integer IDs. Defaults to
`JSON.parse()`.
- `presentmentPrices` - Optional - Whether to include the header to pull
presentment prices for products. Defaults to `false`.
- `stringifyJson` - Optional - The function used to serialize to JSON. The
function is passed a single argument. This option allows the use of a custom
JSON serializer that might be needed to properly handle long integer IDs.
Defaults to `JSON.stringify()`.
- `timeout` - Optional - The number of milliseconds before the request times
out. If the request takes longer than `timeout`, it will be aborted. Defaults
to `60000`, or 1 minute.
@@ -688,6 +695,7 @@ shopify
- [Youtube Traffic][youtube-traffic]
- [Shipatron][shipatron]
- [UPC Code Manager][upc-code-manager]
- [Shopify Passwordless Login][dimension-software]

## Supported by:

@@ -707,9 +715,6 @@ Used in our live products: [MoonMail][moonmail] & [MONEI][monei]
https://img.shields.io/github/workflow/status/MONEI/Shopify-api-node/CI/master?label=CI
[ci-shopify-api-node]:
https://github.com/MONEI/Shopify-api-node/actions?query=workflow%3ACI+branch%3Amaster
[david-shopify-api-node-badge]:
https://img.shields.io/david/MONEI/Shopify-api-node.svg
[david-shopify-api-node]: https://david-dm.org/MONEI/Shopify-api-node
[coverage-shopify-api-node-badge]:
https://img.shields.io/coveralls/MONEI/Shopify-api-node/master.svg
[coverage-shopify-api-node]: https://coveralls.io/github/MONEI/Shopify-api-node
@@ -743,3 +748,4 @@ Used in our live products: [MoonMail][moonmail] & [MONEI][monei]
[youtube-traffic]: https://apps.shopify.com/youtube-traffic?ref=microapps
[shipatron]: https://shipatron.io
[upc-code-manager]: https://apps.shopify.com/upc-code-manager-1
[dimension-software]: https://login.dimensionsoftware.com
Loading