Skip to content

Release/3.0.0 #480

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

Closed
wants to merge 181 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
aeb9af6
Create msgraph-sdk-javascript.yml
nokafor Dec 29, 2019
e054775
Update msgraph-sdk-javascript.yml
nokafor Mar 20, 2020
08cf572
Installed eslint, removed tslint and related files and added rules
nikithauc Aug 9, 2020
f0bfec0
Temporary disabling no-mixed-spaces-and-tabs rule
nikithauc Aug 9, 2020
eed4f73
Adding prettier rule in eslint.rc
nikithauc Aug 17, 2020
ec45c1b
Merge branch 'dev' into JS-Migrate-To-ESLint-Part-1_#308
nikithauc Aug 17, 2020
e571309
Merge branch 'dev' into JS-Migrate-To-ESLint-Part-1_#308
nikithauc Aug 17, 2020
459ffeb
Merge branch 'JS-Migrate-To-ESLint-Part-1_#308' of https://github.com…
nikithauc Aug 17, 2020
16a3ff0
Removing the inline tslint rules
nikithauc Aug 25, 2020
7a01c60
Added period
nikithauc Aug 25, 2020
ed10042
Merge branch 'dev' into gallery-automation-updates
baywet Sep 8, 2020
7a631d1
More rules
nikithauc Sep 19, 2020
999b114
Adding token credential auth provider
nikithauc Sep 25, 2020
9e4db10
testing with samplenpm
nikithauc Sep 29, 2020
6a12f68
Change GraphRequest.count default value to true
OlivierCuyp Oct 8, 2020
289f566
custom error non error type set to Graph Error body
nikithauc Oct 30, 2020
213bc07
Adding istanbul for code coverage
nikithauc Nov 6, 2020
d06308e
Unit testing empty access token
nikithauc Nov 9, 2020
cd9107c
Adding a comment
nikithauc Nov 9, 2020
ee778f9
Adding GraphClientError Class
nikithauc Nov 13, 2020
4c894a8
Adding GraphClientError Class
nikithauc Nov 13, 2020
0dab297
Adding client secret cred flow
nikithauc Nov 13, 2020
faccdf6
Adding unit tests for graph client error class
nikithauc Nov 17, 2020
cadd22e
Merge branch 'dev' into nikitha/graph-clientside-error
nikithauc Nov 17, 2020
d4d1db0
Correcting file name and changing the rawresponse condition check
nikithauc Nov 17, 2020
09aa804
Merge branch 'nikitha/graph-clientside-error' of https://github.com/m…
nikithauc Nov 17, 2020
6e74cda
Adding unit tests
nikithauc Nov 28, 2020
a56a103
package json change
nikithauc Nov 29, 2020
7f12ab6
Adding readme docs
nikithauc Nov 29, 2020
d0a5704
Merge branch 'dev' into nikitha/graph-clientside-error
nikithauc Dec 4, 2020
b6cee0b
Karma test
nikithauc Dec 7, 2020
fc89aeb
Bump ini from 1.3.5 to 1.3.7
dependabot[bot] Dec 11, 2020
c604cae
Merge pull request #365 from microsoftgraph/dependabot/npm_and_yarn/i…
nikithauc Dec 11, 2020
5a836ca
Bump ini from 1.3.5 to 1.3.7 in /scripts
dependabot[bot] Dec 11, 2020
4ffbc1d
Merge pull request #366 from microsoftgraph/dependabot/npm_and_yarn/s…
nikithauc Dec 11, 2020
d70b08a
Adding project references from spec and aut
nikithauc Dec 16, 2020
b3e3164
update typescript and tslib
nikithauc Dec 19, 2020
5a39925
adding the graph api response interface
nikithauc Dec 21, 2020
78a7dad
Merge branch 'nikitha/graph-clientside-error' of https://github.com/m…
nikithauc Dec 21, 2020
ba5e318
Changing param type in doc
nikithauc Dec 21, 2020
386aae3
Merge branch 'dev' into nikitha/graph-clientside-error
nikithauc Dec 21, 2020
96b40bd
Merge pull request #353 from microsoftgraph/nikitha/graph-clientside-…
nikithauc Dec 21, 2020
ba0947d
temporarily resetting package json
nikithauc Dec 23, 2020
40e1a43
Merge with dev
nikithauc Dec 23, 2020
862081c
Updating to isomorphic-fetch 3.00, commenting some tests
nikithauc Dec 23, 2020
d89f994
Exporting authProviders from lib folder
nikithauc Dec 23, 2020
8c57c0a
Exporting authProviders from lib folder
nikithauc Dec 23, 2020
6330bfb
adding headless browser
nikithauc Dec 26, 2020
86d3bff
sorting the graph responsehandler tests
nikithauc Dec 30, 2020
3a0787e
Removing test/package.json
nikithauc Dec 30, 2020
1a23f51
middlewareutil removing getall
nikithauc Dec 31, 2020
2c15c5d
merge with dev
nikithauc Dec 31, 2020
a580f54
Extended batching example with image rendering
plamber Dec 31, 2020
2b5b59e
Removing rethrown errors
nikithauc Dec 31, 2020
7aba27f
merge with dev
nikithauc Dec 31, 2020
4f2efaa
Update docs/content/Batching.md
plamber Jan 1, 2021
e06f3f3
Update docs/content/Batching.md
plamber Jan 1, 2021
3c729a2
Update docs/content/Batching.md
plamber Jan 1, 2021
7084038
Adding headers to chaoshandleroptions
nikithauc Jan 2, 2021
5d40cdc
Adding documentation
nikithauc Jan 2, 2021
fdcb113
Delete files and format
nikithauc Jan 2, 2021
4d2cd23
Removing rethrown errors
nikithauc Jan 2, 2021
2cfaf69
Keywords, msal files path change
nikithauc Jan 3, 2021
0bcb659
Resetting file, removing empty references
nikithauc Jan 3, 2021
5a8ed6a
Adding eslint-sort-import plugin
nikithauc Jan 4, 2021
524572e
Merge pull request #368 from plamber/dev
baywet Jan 4, 2021
6ea648a
Merge branch 'dev' into code-coverage
nikithauc Jan 4, 2021
6f6c690
Merge branch 'dev' into Authentication
nikithauc Jan 4, 2021
39d242e
Create versionTest.yml
nikithauc Jan 5, 2021
1967788
Delete versionTest.yml
nikithauc Jan 5, 2021
4c4ee32
added assertions, removed dup test file, language changes
nikithauc Jan 6, 2021
eceb67e
Merge pull request #370 from microsoftgraph/code-coverage
nikithauc Jan 6, 2021
e169e3c
Merging with 3.0.0
nikithauc Jan 7, 2021
48d5a01
Merge branch 'Authentication' of https://github.com/microsoftgraph/ms…
nikithauc Jan 7, 2021
a7e1a62
merge with 3.0.0
nikithauc Jan 7, 2021
de59819
Merge branch '3.0.0' into count-default-true
nikithauc Jan 8, 2021
23fc68e
Merge pull request #340 from OlivierCuyp/count-default-true
nikithauc Jan 8, 2021
5a14bee
Merge branch 'dev' into gallery-automation-updates
nikithauc Jan 8, 2021
ca3d823
Merge pull request #263 from microsoftgraph/gallery-automation-updates
nikithauc Jan 8, 2021
a2bf615
Update issue templates
nikithauc Jan 11, 2021
7da0d9f
refactoring with error conditions and test merge
nikithauc Jan 12, 2021
c61af2e
Adding note and karma file path
nikithauc Jan 12, 2021
81f0213
Merge branch 'dev' into nikithauc/update-TS-4.1.3
nikithauc Jan 12, 2021
d5c4d13
Creating CI github action
nikithauc Jan 13, 2021
75a80a4
Merge pull request #377 from microsoftgraph/nikithauc/ci_github
nikithauc Jan 13, 2021
571bdaf
adding js sample
nikithauc Jan 13, 2021
53afe2f
Merge branch 'dev' into Issue-Template-Update
nikithauc Jan 13, 2021
dfce4fd
Correcting doc language errors
nikithauc Jan 13, 2021
7e39e1b
Update docs/TokenCredentialAuthenticationProvider.md
nikithauc Jan 13, 2021
e688aeb
Merge pull request #374 from microsoftgraph/Issue-Template-Update
nikithauc Jan 13, 2021
bfa737f
Merge branch 'dev' into nikithauc/update-TS-4.1.3
nikithauc Jan 14, 2021
10dc19d
Merge pull request #376 from microsoftgraph/nikithauc/update-TS-4.1.3
nikithauc Jan 14, 2021
cf34076
audit fix
nikithauc Jan 19, 2021
08cb455
audit fix
nikithauc Jan 19, 2021
a26c288
Merge pull request #381 from microsoftgraph/nikithauc/audit
nikithauc Jan 19, 2021
fee04ec
Update docs/TokenCredentialAuthenticationProvider.md
nikithauc Jan 20, 2021
3a2fe1b
Update samples/tokenCredentialSamples/ClientCredentialFlow/README.md
nikithauc Jan 20, 2021
6c296a0
Re-adding peerdependency meta in package.json
nikithauc Jan 21, 2021
c9aff66
Merge branch 'Authentication' of https://github.com/microsoftgraph/ms…
nikithauc Jan 21, 2021
c41881f
Merge pull request #371 from microsoftgraph/Authentication
nikithauc Jan 27, 2021
98ff475
merging with 3.0.0
nikithauc Jan 29, 2021
8d5d756
Removing try-catch blocks
nikithauc Jan 29, 2021
9cbc5a5
update packages
nikithauc Feb 2, 2021
ca19972
Lint samples, eslint remove comments
nikithauc Feb 4, 2021
be8e853
Correcting test assertion, using multiline disabling
nikithauc Feb 5, 2021
7ff9039
Reenable eslint after code-block
nikithauc Feb 5, 2021
bb319a5
Merge pull request #389 from microsoftgraph/JS-Migrate-To-ESLint-Part…
nikithauc Feb 6, 2021
34a5436
Adding upload result, isCancelled upload session property
nikithauc Feb 22, 2021
a528b22
Create publishing.md
nikithauc Feb 23, 2021
7ac914b
Update publishing.md
nikithauc Feb 23, 2021
b1492b4
AuthHandler check for graph url, createUploadResult static function
nikithauc Feb 28, 2021
5602d6e
Adding unit test, linting
nikithauc Mar 1, 2021
39f52b0
Update publishing.md
nikithauc Mar 1, 2021
6c26af3
resetting files
nikithauc Mar 1, 2021
a14eafc
cancel task doc, conditions update
nikithauc Mar 2, 2021
647c329
Format errors
nikithauc Mar 4, 2021
05e3d36
Correcting param case
nikithauc Mar 4, 2021
a18b0a2
Apply suggestions from code review
baywet Mar 4, 2021
dcf1d6c
Apply suggestions from code review
baywet Mar 4, 2021
61fe3dd
Merge pull request #397 from microsoftgraph/nikithauc/largeFile-uploa…
nikithauc Mar 4, 2021
4f5ed0b
Merge pull request #396 from microsoftgraph/nikithauc/publish-doc
nikithauc Mar 15, 2021
8d03bc1
rollup new entry point, token cred auth provider, deprecate implicitmsal
nikithauc Mar 15, 2021
f54101f
browser index.js;minor doc change
nikithauc Mar 15, 2021
8ccf60c
Update docs/TokenCredentialAuthenticationProvider.md
nikithauc Mar 17, 2021
398303d
Merge pull request #403 from microsoftgraph/nikithauc/rollup-entry
nikithauc Mar 17, 2021
9ad1150
LargeFileUpload - node js stream support and progress handling, ro…
nikithauc Mar 25, 2021
7c0c3f1
Merge branch 'dev' into 3.0.0
nikithauc Mar 29, 2021
d193793
Adding cancelrequest doc (#409)
nikithauc Mar 29, 2021
7a25b95
Document supported Node.js version (#414)
nikithauc Apr 1, 2021
a703e6e
adding canary graph in constants (#413)
nikithauc Apr 1, 2021
5a6f0e9
Bump y18n from 3.2.1 to 3.2.2 in /scripts (#412)
dependabot[bot] Apr 5, 2021
2b36dd8
Bump y18n from 3.2.1 to 3.2.2 (#411)
dependabot[bot] Apr 5, 2021
c239b7c
Bump y18n from 4.0.0 to 4.0.1 in /samples/browser (#410)
dependabot[bot] Apr 5, 2021
a2b6dea
ReadMe - Adding table of contents (#416)
nikithauc Apr 7, 2021
0043f10
Remove timeout option and update node-fetch options (#425)
nikithauc Apr 19, 2021
597f716
LargeFileTaskUpload- High-level design changes (#392)
nikithauc Apr 20, 2021
e238b45
Sebastienlevert/fix chaos handler random (#429)
sebastienlevert Apr 20, 2021
beea121
Create v3-upgrade-guide.md (#430)
nikithauc Apr 21, 2021
b125863
Sync with dev, TS library update, doc correction. (#432)
nikithauc Apr 22, 2021
3639c75
merging with dev
nikithauc Apr 22, 2021
9bda63d
Merge pull request #434 from microsoftgraph/3.0.0
nikithauc Apr 22, 2021
5135768
Bump ini in /samples/tokenCredentialSamples/AuthenticationCodeFlow
dependabot[bot] Apr 22, 2021
bb7e507
Bump ini in /samples/tokenCredentialSamples/ClientCredentialFlow
dependabot[bot] Apr 22, 2021
1a1ba8a
Update package.json
nikithauc Apr 22, 2021
c6e5bfb
Merge pull request #435 from microsoftgraph/dependabot/npm_and_yarn/s…
nikithauc Apr 22, 2021
8846fc1
Merge branch 'dev' into dependabot/npm_and_yarn/samples/tokenCredenti…
nikithauc Apr 22, 2021
9441382
Merge pull request #436 from microsoftgraph/dependabot/npm_and_yarn/s…
nikithauc Apr 22, 2021
552c12f
Merge branch 'dev' into nikithauc/set-preview-01-v3
nikithauc Apr 22, 2021
6e0d26b
- udpates dependencies to latest to address a security issue
baywet Apr 22, 2021
fd4f3b7
updating version in package.lock and version file
nikithauc Apr 22, 2021
e480877
Merge pull request #439 from microsoftgraph/security/samples
nikithauc Apr 22, 2021
da82066
Merge branch 'dev' into nikithauc/set-preview-01-v3
nikithauc Apr 22, 2021
a3f2106
removing orphan package.lock json file
nikithauc Apr 22, 2021
4bd6014
Merge branch 'dev' into nikithauc/delete-orphan-file
nikithauc Apr 22, 2021
8977374
Merge pull request #437 from microsoftgraph/nikithauc/set-preview-01-v3
nikithauc Apr 22, 2021
7a5469d
Merge branch 'dev' into nikithauc/delete-orphan-file
nikithauc Apr 22, 2021
5c32593
Merge pull request #440 from microsoftgraph/nikithauc/delete-orphan-file
nikithauc Apr 22, 2021
755a540
modifying return type of onedrive create (#442)
nikithauc Apr 26, 2021
5dd013a
ignoring the test folder (#441)
nikithauc Apr 26, 2021
c892e00
changed paths, graphclienterror, slicefile deprecation (#443)
nikithauc Apr 28, 2021
12b1747
Bump hosted-git-info from 2.7.1 to 2.8.9 in /scripts
dependabot[bot] May 10, 2021
7792fc3
Merge pull request #448 from microsoftgraph/dependabot/npm_and_yarn/s…
baywet May 10, 2021
8efd47e
Bump lodash from 4.17.19 to 4.17.21 in /samples/browser
dependabot[bot] May 10, 2021
cf0f0a8
Merge pull request #447 from microsoftgraph/dependabot/npm_and_yarn/s…
baywet May 10, 2021
ed06eb7
fix vulnerabilities (#450)
nikithauc May 10, 2021
a318a65
Bump ws from 7.4.5 to 7.4.6 (#459)
dependabot[bot] May 31, 2021
b763af5
Bump ws from 7.1.2 to 7.4.6 in /samples/browser (#458)
dependabot[bot] May 31, 2021
62d95ea
Adding `CustomHosts` options (#453)
nikithauc Jun 1, 2021
c7ac5a9
Fixing broken links in documentation (#462)
nikithauc Jun 2, 2021
710de2d
Resume stream upload (#460)
nikithauc Jun 4, 2021
55f15d6
Release/3.0.0 preview.2 (#467)
nikithauc Jun 8, 2021
b8b8511
Adding `customHosts` change (#468)
nikithauc Jun 8, 2021
52d1ea1
fix docs markdown link
Southclaws Jun 14, 2021
176d74a
Merge pull request #472 from Southclaws/patch-1
baywet Jun 14, 2021
c2fe947
Documentation - add links to JS samples (#473)
nikithauc Jun 18, 2021
dde2550
Remove the azure/identity tip for browser (#478)
nikithauc Jul 1, 2021
af6db7c
Updating the samples folder (#477)
nikithauc Jul 1, 2021
68f8ac8
Merge branch 'master' into release/3.0.0
nikithauc Jul 8, 2021
0ea2f7b
setting version to 3.0.0
nikithauc Jul 8, 2021
f4a7c59
Trigger Build
nikithauc Jul 9, 2021
4bc0857
Setting min node version to 12
nikithauc Jul 12, 2021
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
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.js
*.js.map
*.d.ts

node_modules
lib
spec/development
190 changes: 190 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "simple-import-sort"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"prettier/prettier": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "typeLike",
"format": ["PascalCase"],
"filter": {
"regex": "^(__String|[A-Za-z]+_[A-Za-z]+)$",
"match": false
}
},
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": false
},
"filter": {
"regex": "^I(Arguments|TextWriter|O([A-Z][a-z]+[A-Za-z]*)?)$",
"match": false
}
},
{
"selector": "variable",
"format": ["camelCase", "PascalCase", "UPPER_CASE"],
"leadingUnderscore": "allow",
"filter": {
"regex": "^(_{1,2}filename|_{1,2}dirname|_+|[A-Za-z]+_[A-Za-z]+)$",
"match": false
}
},
{
"selector": "function",
"format": ["camelCase", "PascalCase"],
"leadingUnderscore": "allow",
"filter": {
"regex": "^[A-Za-z]+_[A-Za-z]+$",
"match": false
}
},
{
"selector": "parameter",
"format": ["camelCase"],
"leadingUnderscore": "allow",
"filter": {
"regex": "^(_+|[A-Za-z]+_[A-Z][a-z]+)$",
"match": false
}
},
{
"selector": "method",
"format": ["camelCase", "PascalCase"],
"leadingUnderscore": "allow",
"filter": {
"regex": "^[A-Za-z]+_[A-Za-z]+$",
"match": false
}
},
{
"selector": "memberLike",
"format": ["camelCase"],
"leadingUnderscore": "allow",
"filter": {
"regex": "^[A-Za-z]+_[A-Za-z]+$",
"match": false
}
},
{
"selector": "enumMember",
"format": ["camelCase", "PascalCase"],
"leadingUnderscore": "allow",
"filter": {
"regex": "^[A-Za-z]+_[A-Za-z]+$",
"match": false
}
},
{
"selector": "property",
"format": null
}
],
"@typescript-eslint/semi": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/quotes": [
"error",
"double",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"@typescript-eslint/space-within-parens": ["off", "never"],
"@typescript-eslint/triple-slash-reference": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-this-alias": "error",
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowTernary": true
}
],
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/indent": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/member-delimiter-style": [
"off",
{
"multiline": {
"delimiter": "none",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-array-constructor": "error",
"no-useless-catch": "error",
"prefer-rest-params": "off",
"no-constant-condition": "error",
"simple-import-sort/imports": "error",
"brace-style": "error",
"constructor-super": "error",
"curly": ["error", "multi-line"],
"dot-notation": "off",
"eqeqeq": "error",
"new-parens": "error",
"no-caller": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-empty": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-fallthrough": "error",
"no-new-func": "off",
"no-new-wrappers": "error",
"no-return-await": "off",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-unsafe-finally": "error",
"no-unused-labels": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-const": "error",
"prefer-object-spread": "error",
"quote-props": "off",
"space-in-parens": "error",
"unicode-bom": ["error", "never"],
"use-isnan": "error"
}
}
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
title: ''
labels: ''
assignees: ''

---

# Bug Report
Expand Down Expand Up @@ -40,6 +41,7 @@ For more information, see the `CONTRIBUTING` guide.
Add any other context about the problem here..

## Usage Information
Request ID - Value of the `requestId` field if you are receiving a Graph API error response

SDK Version - [SDK version you are using]

Expand Down
7 changes: 4 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
title: ''
labels: ''
assignees: ''

---

# Feature Request
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/ci_validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Graph JS SDK CI

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
17 changes: 9 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ npm-debug.log
/lib/*
!/lib/.npmignore

/authProviders/*

src/**/*.js
src/**/*.js.map
src/**/*.d.ts

samples/node/secrets.json
samples/browser/src/secrets.js
samples/browser/src/graph-js-sdk.js
samples/browser/src/graph-es-sdk.js
samples/**/secrets.ts
samples/**/secrets.js
samples/node_modules/**
samples/lib/

test/development/secrets.ts

spec/**/*.js
spec/**/*.d.ts
spec/**/*.js.map
spec/**/secrets.ts
.nyc_output/*
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
src/
scripts/
scripts/
design/
changelogs/
6 changes: 3 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ src/**/*.js
src/**/*.js.map
src/**/*.d.ts

spec/**/*.js
spec/**/*.js.map
spec/**/*.d.ts
test/**/*.js
test/**/*.js.map
test/**/*.d.ts
10 changes: 5 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"request": "launch",
"name": "Run Content tests",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": ["${workspaceRoot}/lib/spec/content/*.js"],
"args": ["${workspaceRoot}/lib/test/common/**/*.js"],
"cwd": "${workspaceRoot}",
"preLaunchTask": "Run Compile",
"outFiles": [],
Expand All @@ -29,7 +29,7 @@
"request": "launch",
"name": "Run Core tests",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": ["${workspaceRoot}/lib/spec/core/*.js"],
"args": ["${workspaceRoot}/lib/test/common/core/*.js"],
"cwd": "${workspaceRoot}",
"preLaunchTask": "Run Compile",
"outFiles": [],
Expand All @@ -40,7 +40,7 @@
"request": "launch",
"name": "Run Middleware tests",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": ["${workspaceRoot}/lib/spec/middleware/*.js"],
"args": ["${workspaceRoot}/lib/test/common/middleware/*.js"],
"cwd": "${workspaceRoot}",
"preLaunchTask": "Run Compile",
"outFiles": [],
Expand All @@ -51,7 +51,7 @@
"request": "launch",
"name": "Run Tasks tests",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": ["${workspaceRoot}/lib/spec/tasks/*.js"],
"args": ["${workspaceRoot}/lib/test/common/tasks/*.js"],
"cwd": "${workspaceRoot}",
"preLaunchTask": "Run Compile",
"outFiles": [],
Expand All @@ -62,7 +62,7 @@
"request": "launch",
"name": "Run Workload tests",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": ["${workspaceRoot}/spec/development/workload/*.js"],
"args": ["${workspaceRoot}/test/common/development/workload/*.js"],
"cwd": "${workspaceRoot}",
"preLaunchTask": "Run Compile",
"outFiles": [],
Expand Down
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,9 @@ npm install

To edit files, open them in an editor of your choice and modify them. To create a new file, use the editor of your choice and save the new file in the appropriate location in your local copy of the repository. While working, save your work frequently.

*Note: Make sure to add unit tests to validate you changes.*
_Note: Make sure to add unit tests to validate you changes._

Once you have done with your changes, You have to build and test your changes
To build the library run,
Build and test your changes with the following commands after you have completed your work:

```cmd
npm run build
Expand Down
Loading