Skip to content

Commit

Permalink
feat: upgrade to MobX v6
Browse files Browse the repository at this point in the history
Upgrades to the library to support MobX 6. We had to wrap the task in an `action` to prevent MobX from automatically converting it to an action.

BREAKING CHANGE: The decorator will break when a MobX decorator is used on the same method. Additionally, updated the TypeScript target to es6, same as MobX 6.
  • Loading branch information
jeffijoe committed Aug 22, 2022
1 parent 2470408 commit f2f2578
Show file tree
Hide file tree
Showing 15 changed files with 20,040 additions and 7,319 deletions.
34 changes: 13 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
# Oh yeah!
language: node_js

# Node 18 binaries require glibc >= 2.28
dist: focal

node_js:
- 'stable'
- '16'

cache:
directories:
- node_modules
notifications:
email: false

# Add additional versions here as appropriate.
node_js:
- 'stable'
- '10'
- '8'
# Set INIT_CWD for Husky due to Npm 7 not including it.
before_install:
- export INIT_CWD="$(pwd)"

# Lint errors should trigger a failure.
before_script:
- npm run lint
- npm run build

# Runs the coverage script (which runs the tests)
script: npm run cover
before_script: npm run lint && npm run build

# Code coverage
after_success:
- npm run coveralls
- npm run semantic-release

branches:
except:
- /^v\d+\.\d+\.\d+$/
script: npm run coveralls
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 3.0.0

* **Breaking**: Stacking the `@task` decorator with MobX `@action` no longer works in MobX v6. Instead, the task itself was made an action by default. This was done to escape the MobX auto-action behavior.
* **Breaking**: TypeScript target updated to `es6`.
* Add MobX v6 support.
* Upgrade all dependencies.

## 2.0.1

- Fix sourcemaps content.

## 2.0.0

- TypeScript definitions for public API based on the DefinitelyTyped ones.
Expand Down

0 comments on commit f2f2578

Please sign in to comment.