Skip to content

Commit

Permalink
merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz committed Nov 10, 2022
1 parent e14fba8 commit 6382cc1
Show file tree
Hide file tree
Showing 108 changed files with 2,913 additions and 446 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-mugs-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@moralisweb3/streams': patch
---

Fix errors due to changes in webhook data for log parser function and update parse server streams docs
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

# 🚀 Quick start

If you're new to Moralis, check the [quickstart guide in the official docs](https://docs.moralis.io/moralis-dapp/getting-started) on how to get started.
If you're new to Moralis, check the [quickstart guide in the official docs](https://docs.moralis.io/docs/quickstart) on how to get started.

If you're already familiar with Moralis and have your server set up. Then follow along to connect your SDK:

Expand All @@ -66,17 +66,17 @@ Import Moralis:
import Moralis from 'moralis';
```

## 2. Initialise Moralis
## 2. Initialize Moralis

After your dependency is added, you simply need to initialize moralis via the `start` method:

```javascript
Moralis.start({
apiKey: '<YOUR_API_KEY>',
apiKey: 'YOUR_API_KEY',
});
```

After that you can use any Moralis functionalities via, as described in our [extensive docs](https://docs.moralis.io)
After that you can use any Moralis functionalities as described in our [extensive docs](https://docs.moralis.io)

# ⭐️ Star us

Expand All @@ -88,10 +88,9 @@ If you need help with setting up the boilerplate or have other questions - don't

# 🧭 Table of Contents

- [🚨 Beta version](#-beta-version)
- [🚀 Quick start](#-quick-start)
- [1. Install Moralis](#1-install-moralis)
- [2. Initialise Moralis](#2-initialise-moralis)
- [2. Initialize Moralis](#2-initialize-moralis)
- [⭐️ Star us](#️-star-us)
- [🤝 Need help](#-need-help)
- [🧭 Table of Contents](#-table-of-contents)
Expand Down Expand Up @@ -136,7 +135,7 @@ Then, initialize the app the same way as when using the umbrella `moralis` packa

```javascript
core.start({
apiKey: '<YOUR_API_KEY>',
apiKey: 'YOUR_API_KEY',
// ...and any other configuration
});
```
Expand Down
2 changes: 1 addition & 1 deletion demos/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"dotenv": "^16.0.1",
"moralis": "^2.6.7"
"moralis": "^2.7.1"
},
"devDependencies": {
"@moralisweb3/eslint-config": "^1.0.1",
Expand Down
4 changes: 2 additions & 2 deletions demos/express-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"main": "dist/index.js",
"private": true,
"dependencies": {
"@moralisweb3/common-core": "^2.6.7",
"@moralisweb3/core": "^2.7.1",
"@types/express-rate-limit": "^6.0.0",
"dotenv": "^16.0.1",
"envalid": "7.3.1",
"express": "^4.18.1",
"express-rate-limit": "^6.5.1",
"moralis": "^2.6.7",
"moralis": "^2.7.1",
"redis": "^4.2.0",
"cors": "^2.8.5"
},
Expand Down
6 changes: 3 additions & 3 deletions demos/firebase-auth-ext/hosting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"dependencies": {
"@ethersproject/providers": "^5.7.1",
"@moralisweb3/client-firebase-auth-utils": "^2.6.7",
"@moralisweb3/client-firebase-evm-auth": "^2.6.7",
"@moralisweb3/client-firebase-sol-auth": "^2.6.7",
"@moralisweb3/client-firebase-auth-utils": "^2.7.1",
"@moralisweb3/client-firebase-evm-auth": "^2.7.1",
"@moralisweb3/client-firebase-sol-auth": "^2.7.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
2 changes: 1 addition & 1 deletion demos/firebase-proxy/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"firebase-admin": "^10.0.2",
"firebase-functions": "^3.18.0",
"firebase-functions-rate-limiter": "^3.9.1",
"moralis": "^2.6.7"
"moralis": "^2.7.1"
},
"devDependencies": {
"@firebase/app-types": "^0.7.0",
Expand Down
4 changes: 2 additions & 2 deletions demos/moralis-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"main": "dist/index.js",
"private": true,
"dependencies": {
"@moralisweb3/common-core": "^2.6.7",
"@moralisweb3/core": "^2.7.1",
"dotenv": "^16.0.1",
"envalid": "7.3.1",
"express": "^4.18.1",
"moralis": "^2.6.7",
"moralis": "^2.7.1",
"ngrok": "^4.3.3",
"redis": "^4.2.0",
"web3-utils": "^1.7.5",
Expand Down
2 changes: 1 addition & 1 deletion demos/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"axios": "^0.27.2",
"eslint": "^8.22.0",
"ethers": "5.6.9",
"moralis": "^2.6.7",
"moralis": "^2.7.1",
"next": "12.2.5",
"next-auth": "4.10.3",
"react": "^18.2.0",
Expand Down
16 changes: 16 additions & 0 deletions demos/parse-server-migration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# demo-parse-server-migration

## 1.1.0

### Minor Changes

- [#782](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/782) [`07c8ca69`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/07c8ca6988431d1fdf4a9bce509371ec52174af4) Thanks [@sogunshola](https://github.com/sogunshola)! - Incuded parse server package with streams plugin implementation and added document builder to streams package.

* [#782](https://github.com/MoralisWeb3/Moralis-JS-SDK/pull/782) [`07c8ca69`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/07c8ca6988431d1fdf4a9bce509371ec52174af4) Thanks [@sogunshola](https://github.com/sogunshola)! - Included parse server package and added document builder logic to streams package

### Patch Changes

- Updated dependencies [[`07c8ca69`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/07c8ca6988431d1fdf4a9bce509371ec52174af4), [`07c8ca69`](https://github.com/MoralisWeb3/Moralis-JS-SDK/commit/07c8ca6988431d1fdf4a9bce509371ec52174af4)]:
- @moralisweb3/parse-server@2.7.0
- [email protected]
- @moralisweb3/core@2.7.0
7 changes: 4 additions & 3 deletions demos/parse-server-migration/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"name": "demo-parse-server-migration",
"version": "1.0.0",
"version": "1.1.0",
"main": "dist/index.js",
"private": true,
"dependencies": {
"@moralisweb3/parse-server": "2.7.0",
"@codemirror/language": "^0.20.0",
"@moralisweb3/common-core": "^2.6.7",
"@moralisweb3/core": "^2.7.0",
"@types/node": "^18.7.15",
"dotenv": "^16.0.1",
"envalid": "7.3.1",
"express": "^4.18.1",
"express-rate-limit": "^6.5.1",
"graphql": "^16.6.0",
"graphql-ws": "^5.10.1",
"moralis": "^2.2.0",
"moralis": "^2.7.0",
"parse-server": "^5.2.7"
},
"devDependencies": {
Expand Down
10 changes: 9 additions & 1 deletion demos/parse-server-migration/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { parseServer } from './parseServer';
// @ts-ignore
import ParseServer from 'parse-server';
import http from 'http';
import { streamsSync } from '@moralisweb3/parse-server';

export const app = express();

Expand All @@ -18,7 +19,14 @@ app.use(express.json());

app.use(cors());

app.use(`/server`, parseServer);
app.use(
streamsSync(parseServer, {
apiKey: config.MORALIS_API_KEY,
webhookUrl: '/streams',
}),
);

app.use(`/server`, parseServer.app);

const httpServer = http.createServer(app);
httpServer.listen(config.PORT, () => {
Expand Down
2 changes: 1 addition & 1 deletion demos/parse-server-migration/src/parseServer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { ParseServer } from 'parse-server';
import ParseServer from 'parse-server';
import config from './config';
import MoralisEthAdapter from './auth/MoralisEthAdapter';

Expand Down
4 changes: 2 additions & 2 deletions demos/parse-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"private": true,
"dependencies": {
"@codemirror/language": "^0.20.0",
"@moralisweb3/common-core": "^2.6.7",
"@moralisweb3/core": "^2.7.1",
"dotenv": "^16.0.1",
"envalid": "7.3.1",
"express": "^4.18.1",
"express-rate-limit": "^6.5.1",
"graphql": "^16.6.0",
"graphql-ws": "^5.10.1",
"moralis": "^2.6.7",
"moralis": "^2.7.1",
"parse-dashboard": "^4.1.4",
"parse-server": "^5.2.7"
},
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"main": "dist/index.js",
"private": true,
"dependencies": {
"@moralisweb3/common-core": "^2.6.7",
"@moralisweb3/core": "^2.7.1",
"@supabase/supabase-js": "^1.35.4",
"dotenv": "^16.0.1",
"envalid": "7.3.1",
"express": "^4.18.1",
"jsonwebtoken": "^8.5.1",
"moralis": "^2.6.7",
"moralis": "^2.7.1",
"uuid": "^8.3.2",
"cors": "^2.8.5"
},
Expand Down
14 changes: 14 additions & 0 deletions packages/apiUtils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @moralisweb3/api-utils

## 2.7.1

### Patch Changes

- Updated dependencies []:
- @moralisweb3/core@2.7.1

## 2.7.0

### Patch Changes

- Updated dependencies []:
- @moralisweb3/core@2.7.0

## 2.6.7

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/apiUtils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/api-utils",
"author": "Moralis",
"version": "2.6.7",
"version": "2.7.1",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand All @@ -12,7 +12,7 @@
],
"scripts": {
"test": "yarn jest --runInBand --detectOpenHandles --forceExit --ci",
"test:coverage": "yarn run test --coverage",
"test:coverage": "yarn run test --coverage --coverageReporters json-summary",
"test:watch": "yarn run test --watch",
"lint": "eslint . --ext .js,.ts,.tsx,jsx",
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
Expand All @@ -22,9 +22,9 @@
"devDependencies": {
"prettier": "^2.5.1",
"typescript": "^4.5.5",
"@moralisweb3/common-evm-utils": "^2.6.7"
"@moralisweb3/evm-utils": "^2.7.1"
},
"dependencies": {
"@moralisweb3/common-core": "^2.6.7"
"@moralisweb3/core": "^2.7.1"
}
}
20 changes: 20 additions & 0 deletions packages/auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @moralisweb3/auth

## 2.7.1

### Patch Changes

- Updated dependencies []:
- @moralisweb3/core@2.7.1
- @moralisweb3/api-utils@2.7.1
- @moralisweb3/evm-utils@2.7.1
- @moralisweb3/sol-utils@2.7.1

## 2.7.0

### Patch Changes

- Updated dependencies []:
- @moralisweb3/core@2.7.0
- @moralisweb3/api-utils@2.7.0
- @moralisweb3/evm-utils@2.7.0
- @moralisweb3/sol-utils@2.7.0

## 2.6.7

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/auth",
"author": "Moralis",
"version": "2.6.7",
"version": "2.7.1",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand All @@ -12,7 +12,7 @@
],
"scripts": {
"test": "yarn jest --runInBand --detectOpenHandles --forceExit --ci",
"test:coverage": "yarn run test --coverage",
"test:coverage": "yarn run test --coverage --coverageReporters json-summary",
"test:watch": "yarn run test --watch",
"lint": "eslint . --ext .js,.ts,.tsx,jsx",
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
Expand All @@ -28,9 +28,9 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@moralisweb3/api-utils": "^2.6.7",
"@moralisweb3/common-core": "^2.6.7",
"@moralisweb3/common-evm-utils": "^2.6.7",
"@moralisweb3/common-sol-utils": "^2.6.7"
"@moralisweb3/api-utils": "^2.7.1",
"@moralisweb3/core": "^2.7.1",
"@moralisweb3/evm-utils": "^2.7.1",
"@moralisweb3/sol-utils": "^2.7.1"
}
}
4 changes: 4 additions & 0 deletions packages/client/firebaseAuthUtils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @moralisweb3/client-firebase-auth-utils

## 2.7.1

## 2.7.0

## 2.6.7

## 2.6.6
Expand Down
2 changes: 1 addition & 1 deletion packages/client/firebaseAuthUtils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/client-firebase-auth-utils",
"author": "Moralis",
"version": "2.6.7",
"version": "2.7.1",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand Down
14 changes: 14 additions & 0 deletions packages/client/firebaseEvmAuth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @moralisweb3/client-firebase-evm-auth

## 2.7.1

### Patch Changes

- Updated dependencies []:
- @moralisweb3/client-firebase-auth-utils@2.7.1

## 2.7.0

### Patch Changes

- Updated dependencies []:
- @moralisweb3/client-firebase-auth-utils@2.7.0

## 2.6.7

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/client/firebaseEvmAuth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moralisweb3/client-firebase-evm-auth",
"author": "Moralis",
"version": "2.6.7",
"version": "2.7.1",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
Expand All @@ -22,7 +22,7 @@
},
"dependencies": {
"firebase": "^9.10.0",
"@moralisweb3/client-firebase-auth-utils": "^2.6.7",
"@moralisweb3/client-firebase-auth-utils": "^2.7.1",
"@ethersproject/providers": "^5.7.1",
"@metamask/detect-provider": "^1.2.0"
}
Expand Down
Loading

0 comments on commit 6382cc1

Please sign in to comment.