Граф коммитов

264 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] fca4dac6f9
Bump semver from 5.4.1 to 5.7.2 (#178)
Bumps [semver](https://github.com/npm/node-semver) from 5.4.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.4.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-13 08:09:57 -07:00
dependabot[bot] 16abf3c4e6
Bump tough-cookie from 4.0.0 to 4.1.3 (#177)
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.0.0...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-09 07:17:39 -07:00
Scott Mikula 9a76626564
v4.3.1 (#174) 2022-12-20 16:50:58 -08:00
Scott Mikula de4979897a
Update MobX peer dependencies (#172)
Satchel works fine with later versions of MobX; this updates the peer dependencies to reflect that.
2022-12-20 16:49:18 -08:00
microsoft-github-policy-service[bot] d4238bb5a7
Microsoft mandatory file (#169)
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
2022-09-26 14:32:11 -07:00
Michael Loughry 276b4cfa1d
4.3.0 (#168) 2022-07-27 15:27:33 -07:00
dependabot[bot] 2dfb5853a3
Bump minimist from 1.2.5 to 1.2.6 (#164)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-27 13:26:39 -07:00
dependabot[bot] 85392c0286
Bump shell-quote from 1.6.1 to 1.7.3 (#165)
Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.6.1 to 1.7.3.
- [Release notes](https://github.com/substack/node-shell-quote/releases)
- [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md)
- [Commits](https://github.com/substack/node-shell-quote/compare/1.6.1...1.7.3)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-27 13:24:08 -07:00
Michael Loughry bdab0c9c87
Add non-breaking ESM support (#167)
* Add non-breaking ESM support

* Update exports map to handle some folder indices
2022-07-27 13:21:48 -07:00
jarmit 0419fba00c
4.2.5 (#162) 2022-02-28 13:18:15 -08:00
jarmit be5cb2f0b6
Use catch instead of finally for browser compatibility (#161) 2022-02-28 12:33:00 -08:00
Scott Mikula 0c63b419ac
Update vulnerable dependencies (#160) 2021-10-13 16:19:43 -07:00
Scott Mikula 662d093772
Update jest in order to address vulnerable dependencies (#158) 2021-10-13 15:56:12 -07:00
Microsoft Provenance Contributions dfecc6849c
Update package.json to include the repository key (#154)
With the rise in supply chain attacks and OSS dependencies being used as a attack vector, Microsoft is working with our ecosystem partners, such as the Linux Foundation's OpenSSF, to enable OSS consumers to track packages back to their public sources.
We've identified that the following packages published to NPM do not report where sources can be found, typically accomplished by including a link to your GitHub repository in your `package.json` REPOSITORY field. This PR was created to add this value, ensuring future releases will include this provenance information.
Published NPM packages with repository information:
	*satcheljs
2021-06-30 08:05:12 -07:00
Scott Mikula a7cf823fe6
v4.2.4 (#153) 2021-06-02 11:30:23 -07:00
Michael Loughry c362109cff
Fix global reference (#151)
`global` is a value in NodeJS, and is polyfilled by webpack, but it is not defined in any browser context. `globalThis` is meant to act as the global reference in all contexts, but is only implemented in Edge/Chrome >= 71, Firefox >= 65, Safari >= 12.1, and NodeJS >= 12

This change replaces all references to `global` with `globalObject`, a value that is initialized to point to either `globalThis`, `window`, or `global`, depending on which is defined.
2021-05-26 16:22:51 -07:00
Scott Mikula b813c47d75
Switch from Travis to GitHub Actions for CI and publishing (#152) 2021-05-26 16:15:41 -07:00
Scott Mikula 72b0c99a31
v4.2.3 (#144) 2020-08-14 12:12:47 -07:00
Michael Loughry c79ca4de7c
Improve mutatorAction typings (#143)
This change improves `mutatorAction` typings to return a function with the same parameters as the input function, rather than simply `(...args: any[]) => void`
2020-08-14 12:04:05 -07:00
dependabot[bot] c38d704ae8
Bump lodash from 4.17.15 to 4.17.19 (#142)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-16 13:55:23 -07:00
jarmit b8f35f4760
U/jarmit/fix mutator name (#141)
* Setting the name of the mutator instead of the name of the creating function

* 4.2.2

* fix tests

* Actually fix tests

* rename
2020-04-30 12:24:36 -07:00
jarmit e964670a63
Ensure mutators don't return a type through a build time error instead of a run time error (#140)
* Ensure mutators don't return a type through a build time error instead of a run time error
2020-03-20 14:44:38 -07:00
jarmit ed5a2f6119
Improve the error message for an action getting thrown inside a mutator (#139)
* The error thrown when an action called inside a mutator should give more information
2020-03-18 11:05:57 -07:00
dependabot[bot] 133581d910
Bump acorn from 5.7.3 to 5.7.4 (#138)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-16 11:33:40 -07:00
Lucas de Ávila Martins 208bfd75e2 Fix minor typo in README.md (#137) 2020-01-06 09:49:26 -08:00
dependabot[bot] 1b4ecdd40d Bump handlebars from 4.1.2 to 4.5.3 (#136)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-01-02 12:00:57 -08:00
Scott Mikula 55ec68d1b8
v4.1.0 (#135) 2019-11-18 10:36:25 -08:00
Scott Mikula 88439deadb
Update to latest version of prettier (#134) 2019-11-18 10:33:37 -08:00
Tim Zadorozhniy a4ab6b2f07 Use named MobX actions (#133) 2019-11-16 17:03:03 -08:00
Scott Mikula 48a768aa1e
Update vulnerable dependencies (#131) 2019-10-28 11:01:51 -07:00
Scott Mikula 8eddeee363
Prohibit mutator actions from returning values or being async (#130)
This addresses #129.  The fix was simple; we already have this check for normal mutators, so the fix is to pass the return value through so that the same check can apply to mutator actions.
2019-09-10 11:37:21 -07:00
Scott Mikula d2f8c68d7d
Update vulnerable dependencies (#128) 2019-07-09 11:38:43 -07:00
Scott Mikula 8fc3854ce3
Update vulnerable dependencies (#127) 2019-07-03 16:02:07 -07:00
Scott Mikula 5748c7b22d
v4.0.1 (#126) 2019-07-01 10:24:09 -07:00
Scott Mikula 155b35d4e7
Cleanup redundant stack frames (#125)
Drawing on the learnings from #124, this removes some unnecessary anonymous functions from the modern Satchel dispatch pipeline.
2019-07-01 10:13:49 -07:00
Fabio Pintos d76863e670 Use bind instead of anonymous function to reduce call stack depth in legacy dispatcher (#124)
Using bound functions instead of anonymous functions helps reduce the depth of the call stack between the point where an action is invoked and the point where the respective method is called, making it easier to read the call stack while debugging.
2019-06-27 16:43:38 -07:00
Scott Mikula 1825a62b86
Update version to 4.0.0 (#121) 2019-05-31 15:19:07 -07:00
Scott Mikula 08323e99cb
Update version to 4.0.0-beta3 (#119) 2019-04-05 16:02:13 -07:00
Scott Mikula aac3f8339d
Add a basic CONTRIBUTING.md (#117) 2019-03-22 16:09:48 -07:00
Eric Allen 4426d74336 Throw error if user tries to create a store that already exists (#114) 2019-03-22 13:24:31 -07:00
Scott Mikula a9f1248dec
Upgrade and simplify build tooling (#116)
I noticed that the TravisCI build was not failing even when there were legitimate test failures.  I'm still not sure what the root of the problem was, but it led me down a rabbit hole of fixes:

1. Simplify the `.travis.yml` script.  There's no reason not to just run build+tests on every build.
2. Switch to using `ts-jest` instead of our own custom transform...
3. ...Which led to updating `typescript` and `jest`...
4. ...Which involved a small handful of dev and test code fixes.
2019-03-22 12:54:17 -07:00
Eric Allen 7fe3e9c956 Remove orchestratorAction and all references to it (#109) 2019-03-21 11:47:06 -07:00
Eric Allen 8e8498f65f add npm version shield and MIT shield to README (#111) 2019-03-13 15:01:51 -07:00
Scott Mikula 028bc0c4be
Wrap dispatch in a transaction (#106)
For various historical reasons dispatch hasn't been wrapped in `transaction` since an early version of Satchel.  This means that every subscriber to an action executes in its own transaction, possibly causing multiple unnecessary renders.  Now that we've updated to MobX v4, it's possible to use `transaction` again.

The change to actual source code is trivial; the rest of the change is test code to validate that we're handling the transaction correctly.
2019-03-11 16:14:03 -07:00
Scott Mikula 4c09ba38a0
Update version to 4.0.0-beta2 (#102) 2018-09-11 15:35:53 -07:00
Scott Mikula 193bc20a50
Relax strict mode to be compatible with earlier versions of Satchel (#101)
There are actually two things going on here:

1. Update to latest MobX 4.x release.  In this version the [API for turning on strict mode](https://github.com/mobxjs/mobx/blob/gh-pages/docs/refguide/api.md#enforceactions) changed.  (The old values are still accepted, but if you try to use them it prints an annoying warning to the console.)
2. Change our strict mode from `always` to `observed`.  The main place this is an issue is when creating a `new ObservableMap()` in order to initialize a store.  In `always` mode that would have to be done inside an action, which Satchel doesn't give a convenient way to do.  The `observed` mode is the closest match to how strict mode worked in MobX 2.x.
2018-09-11 15:32:30 -07:00
Scott Mikula ed730bf897
Update version to 4.0.0-beta1 (#99) 2018-06-07 16:00:34 -07:00
Scott Mikula 6aded636ee
Update to MobX v4 (#98)
This updates Satchel to the latest versions of `mobx` and `mobx-react`.  There were a number of breaking API changes, including some (as far as I can tell) undocumented ones in the spying infrastructure.  This will be in v4 of Satchel since consumers will be forced to take a new major version of MobX.
2018-06-07 15:19:55 -07:00
Shoaib Bhimani ef1e94c96d Fix example in README.md (#73) 2018-06-04 16:01:01 -07:00
Scott Mikula 60b0234747
v3.1.2 (#95) 2018-02-09 10:39:51 -08:00