Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Latest commit

 

History

History
494 lines (284 loc) · 33.8 KB

CHANGELOG.md

File metadata and controls

494 lines (284 loc) · 33.8 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.23.1 (2023-02-25)

Bug Fixes

  • null pointers when using resource name starting with _ (c209063)

0.23.0 (2023-02-25)

Features

  • allow resource name to be customized (42ab972)

Chores

  • deps-dev: bump @playwright/test from 1.29.1 to 1.30.0 (2b413cf)
  • deps-dev: bump eslint from 8.31.0 to 8.33.0 (2d69506)
  • deps-dev: bump firebase-tools from 11.19.0 to 11.22.0 (91f759d)
  • deps-dev: bump puppeteer from 19.4.1 to 19.6.2 (5f60534)
  • deps: bump firebase-admin from 11.4.1 to 11.5.0 (dba7120)
  • deps: update dependencies (126b282)

0.22.0 (2023-01-20)

Features

  • subscription-info: return update and cancel url too (0959d5f)

0.21.0 (2023-01-18)

Features

  • subscription-hydration: also store instalments and sale_gross values (b1482c0)
  • subscriptioninfo: return more details for hydrated payments (a13489c)

Chores

  • subscription-hydration: store sale gross and payment amount as string (64b3a60)

0.20.0 (2023-01-08)

Features

  • subscription-hydration: require plan id instead of subscription id param (9e2f32a)
  • subscription-info: add find subscription id method (a6db41e)

Refactorings

  • subscription-hooks: do not flatten objects (d7d5bac)
  • subscription-hooks: return promise instead of waiting it (95be565)

Chores

  • remove unused flatten component (6ace030)
  • subscription-hooks: add resource name property (4b39dd4)
  • subscription-hydration: hide private instance properties (b39c13d)
  • subscription-info: update constructor jsdoc (e466977)

0.19.0 (2023-01-07)

Features

  • api: add get subscription payments method (8e7a294)
  • subscription-hydration: also hydrate payments (c6c254c)
  • subscription-hydration: check if plan already active (fd4ed5d)
  • subscription-hydration: set effective cancellation date based on last payment (85cfd3b)

Bug Fixes

  • html-encoder: do not encode value false (5ad8987)

Refactorings

  • promote subscription hydration to own component (9d3436b)
  • use singular for main component exports (2ccd3c9)

Chores

  • add order details callback (e9de247)
  • subscription-hydration: do not require checkout id (50baca2)

0.18.0 (2023-01-03)

Features

  • api: add get plan by id method (a700319)
  • middleware: emit events after successful hook processing (4764578)
  • subscription-info: expect object or resource ids (4df224b)

Bug Fixes

  • subscription-info: return subscription and not parent object (f184ad7)

Chores

  • deps-dev: bump eslint from 8.30.0 to 8.31.0 (8750ddf)
  • deps: bump actions/stale from 6 to 7 (f89f55b)
  • deps: update dependencies (523ca9e)
  • do not source hidden env file (891c5e0)
  • firebase: prevent port collisions (e49452a)
  • fix type on description (fc6132d)

0.17.0 (2022-12-24)

Features

  • add jsdoc to main export to enable typings (2143b3c)

Chores

  • update module name in logger (3c6df94)

0.16.0 (2022-12-10)

Features

  • allow logging of outgoing requests (4f4bde3)

Bug Fixes

  • middleware: handle of failed and refunded payments (9045cf0)

Chores

  • add simple logger (3dc4b94)
  • deps-dev: bump @playwright/test from 1.28.0 to 1.28.1 (83fb530)
  • deps-dev: bump chai from 4.3.6 to 4.3.7 (8dd28d7)
  • deps-dev: bump express from 4.18.1 to 4.18.2 (548740f)
  • deps-dev: bump mocha from 10.0.0 to 10.1.0 (bf95f5b)
  • deps: bump firebase-admin from 11.2.0 to 11.3.0 (4b83bfa)

0.15.1 (2022-11-27)

Bug Fixes

0.15.0 (2022-11-27)

Features

  • add client function to create customData objects (66abf90)
  • api: add get order method (8055f97)
  • extract ids from namespaced object (77542b8)
  • subscription-info: use custom data to verify api client (4ca8117)

Refactorings

  • api: add api version to path elements (344a0fa)
  • api: create base urls for vendor and checkout api (a7ad551)

Chores

  • error-handler: during tests always return 200 (ac64039)
  • subscription-info: add logging (69c7c01)
  • subscription-info: delete unused method (ae2b96b)

0.14.0 (2022-11-19)

Features

  • api: ensure api is always initialized before first request (de0344c)

0.13.0 (2022-11-17)

Features

  • api: add get single subscription method (606d247)
  • handle errors in middleware gracefully (7adeaa2)
  • subscription-info: allow hydration of local status (48aa964)
  • subscription-info: check whether sub was already hydrated (dbb2df2)

Bug Fixes

  • cannot import without es6 (7700a88)

Refactorings

  • rename sub not found variable (6cb69f8)

Chores

  • add missing whitespace (7ff0354)
  • add payloads of client events (3d069ab)
  • also kill hook server if necessary (d796a2f)
  • ci: increase test timeout (cb9aff0)
  • ci: use node 16 (2607bac)
  • deps-dev: bump eslint from 8.24.0 to 8.26.0 (f1e1f01)
  • deps-dev: bump nodemon from 2.0.19 to 2.0.20 (9b9cfa4)
  • deps-dev: bump puppeteer from 18.0.5 to 19.2.0 (f6f215e)
  • deps: bump firebase-admin from 11.0.1 to 11.2.0 (5d2617f)
  • deps: bump got from 12.5.1 to 12.5.2 (0f6a15d)
  • deps: update dependencies (8d1a9aa)
  • hooks: do not store unit_price (c5441d5)
  • log binary and args when starting and stopping (9566c48)
  • on ci/cd envs return 202 even if not found (992064e)
  • store also checkout id of cancelled events (55c88b6)
  • subscription-info: require also hook storage instance (86081b1)

0.12.0 (2022-10-13)

Features

  • api: add list plans method (0dcb855)
  • api: add list products method (03f3327)
  • api: allow pagination and fetching all subs (23c4432)
  • api: enable customization of http params (9780123)
  • export api constructor too (7fa7dbe)

Chores

  • skip tests before release (3cf108b)

0.11.0 (2022-10-12)

Features

  • api: import got only once (542e40b)
  • subscription-info: add cancel subscription method (09656f0)
  • subscription-info: add update subscription plan method (e19306b)
  • subscription-info: catch and log api errors (7fa6791)

Refactorings

  • extract get subscription plan id to separate method (3dc38bf)

Chores

  • add jsdoc description to cancel subscription method (c03b6a8)
  • update readme (1fa863e)

0.10.1 (2022-10-09)

Bug Fixes

  • timestamp not passed to get stard and end dates (9481284)

0.10.0 (2022-10-09)

Features

  • return future subscription info too (68a6b04)

0.9.0 (2022-10-02)

Features

  • do not add upcoming payment if sub expires before (92f0661)

Bug Fixes

  • check if payments exists before accessing one of them (4e6739f)

Chores

  • ci: run only one job in parallel (931145a)
  • deps-dev: bump @playwright/test from 1.25.1 to 1.26.1 (a6a914f)
  • deps-dev: bump eslint from 8.23.0 to 8.24.0 (e29f1c8)
  • deps-dev: bump firebase-tools from 11.8.0 to 11.13.0 (6c5e286)
  • deps-dev: bump puppeteer from 17.0.0 to 18.0.5 (765f918)
  • deps: bump actions/stale from 5 to 6 (5eddd24)
  • deps: bump got from 12.4.1 to 12.5.1 (5f6e29f)

0.8.0 (2022-09-30)

Features

  • implement get subscription info method (f061e6a)

Refactorings

  • move subscription hooks handling to own component (e29ecb9)
  • rename private method name (38a7281)
  • split hook handling and subscription info components (5adb158)

Chores

0.7.0 (2022-09-27)

Features

  • sort payments trail descending (24e5ce3)
  • sort status trail also descending (54f9128)

Chores

  • sort list also in sub status descending (f886837)
  • update release scripts (c7b3094)

0.6.0 (2022-09-27)

Features

  • add upcoming payment also to payments trail (45e746d)
  • api: add refund payment method (3a7d4eb)
  • html encode also all subscription events (953bc16)

Chores

  • add prefix to pre checkout placeholder (11bd7c8)
  • ci: install playwright deps before e2e tests (97b8a7a)
  • deps: remove dependency to playwright-core (be28b9a)
  • do not reassign result (b89a13c)
  • handle unknown events gracefully (a8f1c24)
  • prevent duplicate code when handling payments (0709909)
  • update resource name (c98bc6b)

0.5.0 (2022-09-14)

Features

  • after sub updated deactivate prev sub (9e301d3)
  • api: add service for paddle subscriptions api (f6fc40d)

Refactorings

Chores

  • allow 10s clockdrift checking sub activeness (ba9ab0e)
  • also store subscription id for cancellation events (596b85e)
  • ci: add secrets to e2e test environment (243cb51)
  • decrease logging (ad75551)
  • deps: install got (629fd9c)
  • make git ignore .env.local files (b43eebc)
  • update what is logged and when (a877918)

0.4.0 (2022-09-11)

Features

  • add get start and end date method (db8e775)
  • add method to compile payments list (93b2704)
  • add method to compile status trail (7dfe368)
  • calculate subscription status per subscription plan id (f0e02bd)
  • return payment trail per sub plan id (bc4c0bd)
  • return start/end date per sub plan id (9a217a9)
  • return status trail per sub plan id (9f1444b)

Refactorings

  • use event_time instead of start_time for status (b2fc819)
  • use event_time instead of start_time for status (bb107dc)

Chores

  • add start date for placeholder (54d837f)
  • do not store signature with payments (e697625)
  • docs: add jsdoc to all functions (1596d8c)
  • docs: add jsdoc types (609ba17)
  • docs: update readme (8fbb40a)

0.3.0 (2022-09-08)

Features

  • dont store subscription in subcollection (6ff74fb)

Refactorings

  • rename all status methods (1dfe541)

Chores

  • docs: update readme (6afe36d)
  • make sure test scripts actually run (591a7a1)
  • run tests before releases (43b7821)

0.2.0 (2022-09-04)

Features

  • add actual server middleware (62ebb98)
  • add body parser module (c46543f)
  • add html encoder (d4cd798)
  • add methods for payments hooks (6eeb570)
  • allow subs to be stored in nested collections (cb76db8)
  • allow to calc sub state in the future (76012fe)
  • also store alert id and name in status models (0f0c913)
  • implement create, update and cancel subscription (bbb716b)
  • throw errors if arguments are falsy (8ef9797)
  • update module exports (c6908ef)

Bug Fixes

  • payments overwritten by subscription hooks (f8a5682)
  • start_at property not used in condition (6999310)
  • used wrong quantity property name (aafae89)

Refactorings

  • add comments and extract to smaller methods (8f22288)
  • prepare usage of nested firestore resource (422f5f7)

Chores

  • add and update bash scripts (6c6e030)
  • add firestore functions (0d41cc2)
  • add hook server (f0d7416)
  • add local firebase emulator config (25eaf32)
  • add test script (5308880)
  • allow node globals (bfebb3b)
  • ci: run also e2e tests (269955d)
  • deps-dev: bump puppeteer from 16.2.0 to 17.0.0 (638874c)
  • deps: install e2e test dependencies (4dcd2ac)
  • deps: install html entities (fea9bb4)
  • deps: make firebase tools a dev dep (510a0d3)
  • deps: update dependencies (c19c04a)
  • do not encode payments twice (d364979)
  • docs: update readme (af94536)
  • remove unused import (7d17ca0)
  • remove unused imports (91e5ed4)
  • run firebase emulator before all tests (7415561)
  • run test script (1c87211)
  • update test scripts (982e078)

0.1.0 (2022-08-21)

Chores