Commit Graph

813 Commits

Author SHA1 Message Date
Thomas Rittson 220afb98c6
Update client for authService refactor (#448)
* Update for encrypted export support (to pass build only)
2022-02-07 17:31:36 -06:00
Thomas Rittson d938dc82df
Make husky pre-commit hook executable (#466) 2022-02-08 08:30:38 +10:00
Addison Beck 322568b40e
[chore] Update jslib (#467) 2022-02-07 12:08:24 -05:00
Matt Gibson c3f9e1053b
Add deleted date to items (#465) 2022-02-04 16:50:59 -06:00
Daniel James Smith c2ae1bd565
Pull jslib for https://github.com/bitwarden/jslib/pull/654 (#464) 2022-02-03 23:40:15 +01:00
Addison Beck af9b8b94f8
Update jslib (#462) 2022-02-03 14:08:45 -05:00
Addison Beck 3718f35efd
[chore] Update jslib (#459) 2022-01-31 18:00:19 -05:00
Matt Gibson 68548d8db9
Add bot to enforce hold PRs aren't merged (#456)
* Add bot to enforce hold PRs aren't merged

* Use commit hash rather than tag
2022-01-31 12:44:29 -06:00
Addison Beck 5731e1e316
[chore] Update jslib (#457) 2022-01-28 10:09:24 -05:00
Matt Gibson 210e0502ca
Feature/put serve behind feature flag (#455)
* Add build-time feature flag capabilities

* Toggle `bw serve` command with `serve` flag

* Run linter and prettier
2022-01-28 08:29:04 -06:00
Matt Gibson 1b409653a2
Fix/bitwarden serve (#454)
* Handle null passedOptions

* Require authentication to use `bs serve`
2022-01-26 10:28:56 -06:00
Matt Gibson 21e8db9636
Create testing framework for CLI (#453)
* Create testing framework for CLI

- Need to add tsconfig for specs to convert module format and add spec
dir to output
- Use jasmine-ts to test

expected dev cycle would be to have two watchers, one for jslib
and one for CLI tests. We could add jslib tests to this jasmine config,
but it feels wrong to test a submodule

* Run prettier

* Add tests to build pipeline

* Include required package

* Add placeholder test

* Run prettier

* Add nodemon and fix watch
2022-01-21 10:28:36 -06:00
Thomas Rittson 8b650666c5
Fix migration to Key Connector (#452)
* Move Key Connector check to subclass

* Move authService.logout call to main program

* Move Key Connector migration check to unlock command

* Use get/setConvertAccountRequired flag

* Move Key Connector convert to own command, set usesKeyConnector after conversion

* Remove KC conversion check from syncCommand, fix callback

* Make class service private

* Fix naming convention

* Update jslib and deps
2022-01-21 06:03:37 +10:00
Kyle Spearrin 922cd1dc54
serve command (#451) 2022-01-19 10:45:14 -05:00
Thomas Rittson 84a0bfb07c
Update jslib (#449) 2022-01-19 07:05:48 +10:00
Vince Grassia b6c8307437
Update Version Bump action to latest (#445) 2022-01-14 12:38:38 -05:00
Matt Gibson 3b1ccb409e
Fix/lowdb no cache (#443)
* Add jslib prettier commit to client ignore hashes

* Remove lowdb caching

* Fix state service remove being set to null

* Await in-memory key retrieval

* Fix key loading and unlock requests.

* Linter fixes

* linter fixes

* linter fixes
2022-01-13 11:03:19 -06:00
Thomas Rittson b962af303a
Fix always logging out instead of lock (#444) 2022-01-13 17:35:48 +10:00
Ivan Kovnatsky da640794c4
Add git credential helper example (#388) 2022-01-12 04:54:33 -08:00
Daniel James Smith f26bfb5859
Add ts files to prettier (#433)
* Add ts files to prettier

* Add all filestypes to prettier and ignore via .prettierignore

* Add --ignore-unknown to prettier
2022-01-07 19:14:02 +01:00
Robyn MacCallum c874d0d1a7
update jslib (#434) 2022-01-06 13:41:18 -05:00
Daniel James Smith 59ff1a829e
Update year in copyright (#432) 2022-01-05 19:44:04 +01:00
Matt Gibson a3ec45da7f
Update engines in lock file (#431) 2021-12-29 13:31:49 -06:00
Matt Gibson 7bc485b08d
Update webpack (#430)
* Update webpack

* also install dev dependencies in CI

* Add rimraf

* fix added whitespace

* Clarify node warnings and NPM compatibility
2021-12-29 12:05:33 -06:00
Addison Beck 179f1dfe5d
[refactor(Account Switching)] Implement StateService (#424) 2021-12-28 15:38:51 -05:00
Micaiah Martin eb122532bd
Added logic for redeployments (#428) 2021-12-20 13:19:31 -07:00
Oscar Hinton afbf6529c1
Add .git-blame-ignore-revs (#427) 2021-12-20 18:15:11 +01:00
Oscar Hinton 910b4a24e6
Apply Prettier (#426) 2021-12-20 18:04:00 +01:00
Oscar Hinton ec53a16c00
Add Prettier configuration (#425) 2021-12-20 17:44:12 +01:00
Daniel James Smith 18073696d0
Bump node to v16 (#422)
* Pull in jslib

* Bump engines required to node 16 and npm 8

* Bump @types/node to 16

* Modify build.yml to build with node 16 and npm 8

* Update requirements in README.md

* Update 'setup-node' action version

* Update 'pkg' to 5.5.1

* Removed installation of npm8
npm8 is included in node v16

* Pull jslib

* Change engines to only warn on node < 16

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2021-12-13 17:18:20 +01:00
github-actions[bot] 3e4aa8e476
Bumped version to 1.20.0 (#421)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-12-08 09:48:33 -05:00
Oscar Hinton d0e4abf297
Run npm lint in CI (#416) 2021-12-03 20:34:59 +00:00
Micaiah Martin 7444b701e8
Added version bump workflow (#419) 2021-11-30 18:23:08 -07:00
Matt Gibson 4345a093b7
Fix cli user agent (#415)
* Fix cli user agent

* update jslib
2021-11-23 15:13:29 -06:00
Thomas Rittson 62a3ea5699
[Key Connector] QA fixes (#410)
* Fix locked vault message if using key connector

* Add OTP verification on export

* Finish support for OTP on export

* Delete unneeded subclass

* update deps

* Update jslib
2021-11-16 19:42:30 +10:00
Thomas Rittson 0814f3aed6
Update jslib (#411) 2021-11-12 09:33:20 +10:00
Thomas Rittson 85f4f1e727
[Key Connector] Add support for key connector (#406)
Co-authored-by: Hinton <oscar@oscarhinton.com>
2021-11-09 19:00:16 +01:00
Vince Grassia 720bd004a1
Change release workflow to only allow releases from rc or hotfix branches (#408) 2021-11-05 12:01:46 -04:00
Thomas Rittson acbc5c443b
Update jslib (#407) 2021-11-04 07:41:16 +10:00
Vince Grassia ee6990364f
Fix Release workflow (#403)
* Change extract directory to 'build'
2021-10-28 11:34:45 -04:00
Matt Gibson 739dbffd2b
Update jslib (#398)
* Update jslib

* Add new service dependency

* update jslib
2021-10-28 10:17:42 -05:00
Joseph Flinn 9d12d49072
Version Bump 1.19.1 (#400) 2021-10-27 15:47:42 -07:00
Joseph Flinn 8250a99524
fixing the cli release workflow (#399) 2021-10-27 13:10:18 -07:00
Joseph Flinn 3e05935262
Version Bump 1.19.0 (#397) 2021-10-27 08:42:04 -07:00
Thomas Rittson deea0f827a
Add PR template (#396) 2021-10-27 18:59:31 +10:00
Joseph Flinn 6bea3ccc30
Updating release branch constraint (#392)
* Updating release branch constraint and CI pipeline code constraint

* removing the master branch release ci code execution

* updating some verbiage
2021-10-22 08:41:23 -07:00
Oscar Hinton fe0f4120ba
Remove empty catch blocks and remove allow-empty-catch tslint rule (#393) 2021-10-20 22:41:33 +02:00
Vince Grassia 58e632250a
Add notify constraint (#390) 2021-10-15 13:07:10 -04:00
Vince Grassia e9bd76b194
Add Slack alerts for Build workflow failures (#389) 2021-10-14 10:38:43 -04:00
Vincent Salucci 325e9ded0d
[Reset Password] Refactor to use new auth result (#380)
* [Reset Password] Refactor to use new auth result

* Update jslib

* Update class to fix build
2021-10-12 16:51:14 -05:00