Skip to content

Bump semver from 7.3.5 to 7.5.4 #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
5e12453
ci: version bump to 0.6.23
gh-action-bump-version Jun 19, 2021
87678e4
Merge branch 'master' of https://github.com/microsoft/ObjectStoreProv…
Jun 19, 2021
93b2337
ci: version bump to 0.6.24
gh-action-bump-version Jun 19, 2021
15e9176
Fixes to ignore spec files in published packages,
Jun 19, 2021
5f8351f
Fixing up security issue
Jun 19, 2021
062903a
Making sure chroem/firefox are installed
Jun 19, 2021
53014ed
Setting up browser enfironment variables for karma
Jun 19, 2021
bec59e3
Typo
Jun 19, 2021
4bf550c
Making it simpler, + Attempt 4 at getting this to work
Jun 19, 2021
b083da6
Attempt 5
Jun 19, 2021
7d80e76
ci: version bump to 0.6.25
gh-action-bump-version Jun 19, 2021
ca06723
Adding more logging
Jun 19, 2021
971084d
Merge branch 'master' of https://github.com/microsoft/ObjectStoreProv…
Jun 19, 2021
cb1cd36
ci: version bump to 0.6.26
gh-action-bump-version Jun 19, 2021
cd1b218
Downgraded tsconfig output to ES5, and did package upgrades (#20)
thomastay Jun 23, 2021
ed1c574
Cleanups to publish to npm (#22)
thomastay Jul 12, 2021
e701db4
Trigger package bump
thomastay Jul 12, 2021
f831d21
ci: version bump to v0.6.30
gh-action-bump-version Jul 12, 2021
9aa9161
Trigger CI after automated bump
thomastay Jul 12, 2021
57f2455
Merge pull request #23 from microsoft/angtay/bump/bump-package-version
M1Les Jul 12, 2021
0097f29
Fix for deleting an item from non-unique index
M1Les Aug 2, 2021
343c3ab
Prettier
M1Les Aug 2, 2021
21cd0c8
feat: Replace rbtree with btree
M1Les Aug 3, 2021
58b0922
Added ability to switch between tree types
M1Les Aug 4, 2021
c3dfe9c
Clean up comments
M1Les Aug 4, 2021
3680f5b
Rename tree var
M1Les Aug 4, 2021
619c352
Version bump
M1Les Aug 4, 2021
b90c5e6
Prettier
M1Les Aug 5, 2021
0698def
PR comments
M1Les Aug 5, 2021
88643bb
Merge pull request #25 from microsoft/m1les/btree
M1Les Aug 6, 2021
cc6dce9
Create unit tests and an automated testing generator to catch regress…
thomastay Aug 10, 2021
ee1f518
lock rb tree version
eliranek1 Aug 12, 2021
5e7cd94
ci: version bump to 0.6.34
gh-action-bump-version Aug 12, 2021
4e3c804
empty commit to force CI rerun
thomastay Aug 12, 2021
f51185a
Merge pull request #28 from microsoft/eleretzk/rbtree/lock-version
eliranek1 Aug 12, 2021
c090d2a
upgrade red-black-tree dependency (#30)
thomastay Sep 10, 2021
bb320ff
plumbing limit
eliranek1 Oct 14, 2021
72b02c0
pr feedback
eliranek1 Oct 15, 2021
c066d0a
Merge pull request #31 from microsoft/eleretzk/fulltext/plumb-limit
eliranek1 Oct 15, 2021
72d2b17
Bump engine.io from 4.1.1 to 4.1.2 (#32)
dependabot[bot] Jan 17, 2022
f9eb884
Bump follow-redirects from 1.14.1 to 1.14.7 (#33)
dependabot[bot] Jan 19, 2022
87c40e2
Avoid creating new Map in InMemoryStore for read-only transaction and…
balaji-viswanathan Jul 15, 2022
0bc8dc4
prettier
balaji-viswanathan Jul 15, 2022
e0b721f
add test
balaji-viswanathan Jul 15, 2022
fd25911
Add supportsRollback property to InMemoryProvider
balaji-viswanathan Jul 15, 2022
7cba9d0
code review comments
balaji-viswanathan Jul 15, 2022
1e5767c
prettier
balaji-viswanathan Jul 15, 2022
f9080d8
Don't export InMemoryStore class
balaji-viswanathan Jul 15, 2022
b9cd5f5
Merge pull request #40 from microsoft/bviswanathan/memorystore-fix
M1Les Jul 16, 2022
34e9a64
Udated polyfill for finally
M1Les Feb 8, 2023
18aa263
Typo
M1Les Mar 17, 2023
b1322e6
Avoid clearing object stores when db doesn't exist yet (during db open)
balaji-viswanathan Jul 11, 2023
88b0272
Merge pull request #50 from microsoft/bviswanathan/db_open
M1Les Jul 14, 2023
2a9faa0
Merge branch 'master' into geguskov/fix/promise-finally-polyfill
M1Les Jul 21, 2023
a948786
Prettier
M1Les Jul 21, 2023
cff5585
Null check
M1Les Jul 21, 2023
69ef513
ci: version bump to 0.6.41
gh-action-bump-version Jul 21, 2023
9347402
Merge pull request #46 from microsoft/geguskov/fix/promise-finally-po…
M1Les Jul 21, 2023
23f1de1
Bump semver from 7.3.5 to 7.5.4
dependabot[bot] Jul 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions .github/workflows/main.yml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# This is a workflow that runs on PR builds.

name: "PR build"

# Controls when the action will run.
on:
# Triggers the workflow on pull request events for the master branch
pull_request:
branches: [master]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2

# Sets up Node and an .npmrc file. This is the official Github supported way to set up node.
- uses: actions/setup-node@v2
with:
node-version: "12"
registry-url: "https://registry.npmjs.org"
cache: "yarn"
always-auth: "true"

- name: Install packages
run: yarn --frozen-lockfile

- name: Set Firefox Env Variable
run: export FIREFOX_BIN=$(which firefox)

- name: Set Chrome Env Variable
run: export CHROME_BIN=$(which chrome)

- name: Print environment variables
run: echo "CHROME_BIN = $CHROME_BIN FIREFOX_BIN = $FIREFOX_BIN"

- name: CI BUILD + UT
run: yarn ci-test

- name: Check whether version was bumped in PR
id: actions_project_version_check
uses: "thomastay/[email protected]"
with:
token: ${{ secrets.GITHUB_TOKEN }}
file-to-check: package.json
fail-build-if-not-bumped: false
target-branch: master

- name: "Automated Version Bump"
uses: "phips28/gh-action-bump-version@master"
if: ${{ steps.actions_project_version_check.outputs.semver == 'no-update' }}
with:
skip-tag: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Final check for version bump
uses: "thomastay/[email protected]"
with:
token: ${{ secrets.GITHUB_TOKEN }}
file-to-check: package.json
fail-build-if-not-bumped: true
target-branch: master
51 changes: 51 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This is a workflow that runs on every successful merge to master

name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push events for the master branch
push:
branches: [master]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
bump-version-and-publish:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2

# Sets up Node and an .npmrc file. This is the official Github supported way to set up node.
- uses: actions/setup-node@v2
with:
node-version: "12"
registry-url: "https://registry.npmjs.org"
cache: "yarn"
always-auth: "true"

- name: Install packages
run: yarn --frozen-lockfile

- name: Set Firefox Env Variable
run: export FIREFOX_BIN=$(which firefox)

- name: Set Chrome Env Variable
run: export CHROME_BIN=$(which chrome)

- name: Print environment variables
run: echo "CHROME_BIN = $CHROME_BIN FIREFOX_BIN = $FIREFOX_BIN"

- name: CI BUILD + UT
run: yarn ci-test

- name: Publish package
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 6 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
/node_modules
*.user
/ObjectStoreProviderTestsPack.js
/.vscode
test.html
tsconfig.json
webpack.config.js
README.md
.eslintrc.js
.npmrc
.prettierignore
.prettierrc.json
.travis.yml
.yarnclean
karma.*.conf.js
/src
index.ts
*.spec.js
/.github
/dist/src/tests
*.log
5 changes: 2 additions & 3 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
package-lock=false
registry=https://registry.yarnpkg.com
@microsoft:registry=https://npm.pkg.github.com/:_authToken={GITHUB_TOKEN}
registry=https://registry.npmjs.org
always-auth=true
9 changes: 9 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Microsoft Open Source Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).

Resources:

- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [[email protected]](mailto:[email protected]) with questions or concerns
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Contributing

This project welcomes contributions and suggestions. Most contributions require you to
agree to a Contributor License Agreement (CLA) declaring that you have the right to,
and actually do, grant us the rights to use your contribution. For details, visit
https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need
to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

# Rules

1. Do not push to master. Create a branch and push to it. The branch policy will forbid this.
1. You don't need to manually squash your commits. All commits will be merged via a squash commit.
33 changes: 26 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,38 @@ Coming soon.
### Source

```bash
npm install
npm run build
yarn install
yarn build
```

### Tests

```bash
npm install
npm run webtest
yarn install
yarn ci-test
```

## Testing

1. Compile tests
1. Open test.html in browser
1. You can add `?grep=foo` to the URL to run only tests containing 'foo' in the name
If a test fails and you need to run the individual tests, see which test command failed from the above run .i.e karma.sharedworker.conf.js, karma.webworker.conf.js, karma.browser.conf.js
Once identified, simply run the following

```bash
yarn install
yarn build
yarn test:debug:<target>
```

Where `<target>` is either `webworker`, `sharedworker` or `browser`.
Look through package.json for more details.
The default runner will launch both firefox + chrome in debug mode.

To iterate over tests, instead of the `yarn build` command mentioned above, run `yarn watch` instead.

## Contributing

Please read [the Contributing guide](./CONTRIBUTING.md).

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft’s Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.
41 changes: 41 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->

## Security

Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).

If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](<https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)>), please report it to us as described below.

## Reporting Security Issues

**Please do not report security vulnerabilities through public GitHub issues.**

Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).

If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).

You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).

Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:

- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
- Full paths of source file(s) related to the manifestation of the issue
- The location of the affected source code (tag/branch/commit or direct URL)
- Any special configuration required to reproduce the issue
- Step-by-step instructions to reproduce the issue
- Proof-of-concept or exploit code (if possible)
- Impact of the issue, including how an attacker might exploit the issue

This information will help us triage your report more quickly.

If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.

## Preferred Languages

We prefer all communications to be in English.

## Policy

Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).

<!-- END MICROSOFT SECURITY.MD BLOCK -->
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ export {
TransactionLockHelper,
TransactionToken,
} from "./src/TransactionLockHelper";
export type { OrderedMapType } from "./src/ordered-map";
17 changes: 17 additions & 0 deletions karma.browser.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = (config) => {
config.set({
// 1. Load this karma plugin
frameworks: ["mocha"],

files: [
{ pattern: "dist/ObjectStoreProvider.spec.js" },
{ pattern: "dist/SortedBTree.spec.js" },
],
customLaunchers: {
FirefoxHeadless: {
base: "Firefox",
flags: ["-headless"],
},
},
});
};
38 changes: 38 additions & 0 deletions karma.sharedworker.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module.exports = (config) => {
config.set({
// 1. Load this karma plugin
frameworks: ["mocha-webworker"],

// 2. Configure the files you would like karma to serve.
// Make sure you set `included` to `false`. Otherwise karma
// will execute your scripts outside of the WebWorker.
files: [{ pattern: "dist/ObjectStoreProvider.spec.js", included: false }],
customLaunchers: {
FirefoxHeadless: {
base: "Firefox",
flags: ["-headless"],
},
},
client: {
mochaSharedWorker: {
pattern: ["dist/ObjectStoreProvider.spec.js"],
// You can also use a SharedWorker for test execution
// instead of the default 'Worker'
worker: "SharedWorker",
// You can also pass some options to mocha:
mocha: {},
// You can also evaluate javascript code within the Worker at various stages:
evaluate: {
beforeMochaImport:
'self.console.log("Before the mocha script is imported")',
beforeMochaSetup:
'self.console.log("Before mocha is setup (mocha.setup())")',
beforeScripts: 'self.console.log("Before your scripts are imported")',
beforeRun:
'self.console.log("Before your tests are run (mocha.run())")',
afterRun: 'self.console.log("After your tests have been run")',
},
},
},
});
};
Loading