Skip to content

Commit

Permalink
Develop version 1.1.0 (#4)
Browse files Browse the repository at this point in the history
 * Move Mediaosup as a collector to a monitor level
 * Add MediasoupProducerCollector for Mediasop Producer objects
 * Add MediasoupConsumerCollector for Mediasoup Consumer objects
 * Add MediasoupDataConsumerCollector for Mediasoup DataConsumer objects
 * Add MediasoupDataProducerCollector for Mediasoup DataProducer objects
 * Add MediasoupTransportCollector for Mediasoup Transport objects
 * Add MediasoupRouterCollector for Mediasoup Router objects
 * Add MediasoupWorkerCollector for Mediasoup Worker objects
 * Add CustomSfuEvent from schema 2.2.0
 * Add Collector as an object
 * change readme accordingly
 * make add/remove collector boolean based
 * bugfix for PromiseFetcher if the min and max pacing time is equal
 * Add new interface for StatsReader to get monitored entry based on id
 * Make sample() method sync in SfuMonitor
 * Make send method sync and possible having a callback
* Add per transport type pollStats supplier functions
* Add tests to mediasoup collectors
* fix test for timer, and fix bug that timer stays there even if there is no listener
* infer transport type based on constructor
* internal flag fix
* fix empty polled stats problem
  • Loading branch information
balazskreith authored Nov 30, 2022
1 parent 67e21bf commit f9f0b7c
Show file tree
Hide file tree
Showing 95 changed files with 18,617 additions and 3,151 deletions.
31 changes: 13 additions & 18 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
env: {
browser: true,
es2021: true,
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
"plugins": [
"@typescript-eslint"
],
"ignorePatterns": ["*.txt"],
"rules": {
plugins: ["@typescript-eslint"],
ignorePatterns: ["*.txt"],
rules: {
"prefer-for-of": 0,
"no-inferrable-types": 0,
"no-explicit-any": 0,
"ban-types": 0,
"no-this-alias": 0,
"no-non-null-assertion": 0,
}
}
},
};
57 changes: 33 additions & 24 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,42 @@
name: Publish
on:
push:
branches:
- master
push:
branches:
- master
pull_request:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
- name: NPM Install
run: npm i
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Install
run: yarn

# - name: NPM Test
# run: npm run test
- name: Build
run: yarn build

- name: Install
run: yarn
- name: Test
run: yarn test

- name: Build
run: yarn build
- name: Setup Custom Contexts
shell: bash
run: |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
echo "##[set-output name=version;]$(cat ./package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')"
id: job_context

- name: Test
run: yarn test
- name: Make snapshot version
if: steps.job_context.outputs.branch != 'master'
run: |
npm version ${{ steps.job_context.outputs.version }}-SNAPSHOT.${{ github.sha }} --git-tag-version false
- uses: JS-DevTools/npm-publish@v1
with:
access: public
token: ${{ secrets.NPM_TOKEN }}
- uses: JS-DevTools/npm-publish@v1
with:
access: public
token: ${{ secrets.NPM_TOKEN }}
24 changes: 12 additions & 12 deletions .github/workflows/trigger_website_changes.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Dispatch events to website repository
on:
push:
branches: [ master ]
push:
branches: [master]
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.WEBSITE_REPO_ACCESS_TOKEN }}
repository: ObserveRTC/website-3.0
event-type: updated-sfu-integrations
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
dispatch:
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.WEBSITE_REPO_ACCESS_TOKEN }}
repository: ObserveRTC/website-3.0
event-type: updated-sfu-integrations
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist/
lib/
keys/
yarn.lock
todo.txt
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"tabWidth": 4,
"trailingComma": "es5",
"printWidth": 120
}
}
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 1.1.0

* use schema 2.2.0
* Add MediasoupMonitor, as a specialized SfuMonitor
* Change Collectors interface, from now it is accessable through `monitor.collectors`
* Export CustomSfuEvent from schema 2.2.0, and create method `addCustomSfuEvent` to the monitor
* bugfix for PromiseFetcher if the min and max pacing time is equal
* Make `sample` method sync instead of async
* Fix bug of Timer stays live even there is no listener
* Add tests for mediasoup monitor and collectors
* Make mediasoup integration one line and everything is watched
* Send keepalive samples for in-, and outbound rtp pad when polling stats and no bytes are flowing on them

# 1.0.0

Init
Init
12 changes: 5 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Finding Issues to Work on

If you are interested in contributing to ObserveRTC
If you are interested in contributing to ObserveRTC
and are looking for issues to work on, take a look at the issues
tagged with [help wanted](https://github.com/ObserveRTC/sfu-monitor-js/labels/help%20wanted).

Expand All @@ -16,14 +16,12 @@ The documentation sources are located at `docs/`.

## Working on the code base

The source is written in typescript.
The source is written in typescript.

## Creating a pull request

Once you are ready with your changes:

- Commit your changes in your local branch
- Push your changes to your remote branch on GitHub
- Send us a [pull request](https://help.github.com/articles/creating-a-pull-request)


- Commit your changes in your local branch
- Push your changes to your remote branch on GitHub
- Send us a [pull request](https://help.github.com/articles/creating-a-pull-request)
Loading

0 comments on commit f9f0b7c

Please sign in to comment.