Skip to content

Commit

Permalink
v1.1.1 - Upgrade all packages (#31)
Browse files Browse the repository at this point in the history
Bump all dependencies to latest version
Install jest-environment-jsdom since it is no longer included with jest
  • Loading branch information
enuchi authored Dec 25, 2022
1 parent 4c41254 commit 5e9dab7
Show file tree
Hide file tree
Showing 7 changed files with 2,488 additions and 3,381 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"root": true,
"parser": "@typescript-eslint/parser",
"extends": ["airbnb-typescript/base", "plugin:prettier/recommended"],
"plugins": ["@typescript-eslint", "prettier"],
"plugins": ["@typescript-eslint", "import", "prettier"],
"env": {
"browser": true,
"es6": true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [14, 16]
node-version: [14, 16, 18]

steps:
- uses: actions/checkout@v2
Expand All @@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/
- run: yarn
- run: npm publish
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [14, 16]
node-version: [14, 16, 18]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ Calling `new GASClient({ allowedDevelopmentDomains })` will create an instance w

## Change Log

v1.1.1
- Upgrade all packages

v1.1.0
- Uses webpack + ts-loader for build and publish as UMD build
- Renames build folder from `build` to `dist`
Expand Down
43 changes: 22 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gas-client",
"version": "1.1.0",
"version": "1.1.1",
"description": "A client-side utility class that can call server-side Google Apps Script functions",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down Expand Up @@ -33,31 +33,32 @@
"Client"
],
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.10.5",
"@babel/preset-env": "^7.10.4",
"@types/jest": "^26.0.23",
"@types/node": "^14.6.2",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "3.10.1",
"@typescript-eslint/parser": "3.10.1",
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"@types/jest": "^29.2.4",
"@types/node": "^18.11.17",
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "5.47.0",
"@typescript-eslint/parser": "5.47.0",
"babel-eslint": "^10.1.0",
"eslint": "^7.5.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-airbnb-typescript": "^9.0.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-prettier": "^3.1.4",
"jest": "^27.0.4",
"prettier": "^2.0.5",
"ts-jest": "^27.0.3",
"eslint": "^8.30.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.7",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"prettier": "^2.8.1",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.2",
"typescript": "^4.3.2",
"typescript": "^4.9.4",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"uuid": "^8.2.0"
"uuid": "^9.0.0"
}
}
13 changes: 8 additions & 5 deletions src/types/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ interface DevServerResponse extends GasFunctionData {
}

interface DevServerContentWindow<Origin extends 'GAS' | 'App'> extends Window {
postMessage: (
message: Origin extends 'GAS' ? DevServerResponse : DevServerRequest,
targetOrigin: string,
transfer?: Transferable[]
) => void;
postMessage: {
(
message: Origin extends 'GAS' ? DevServerResponse : DevServerRequest,
targetOrigin: string,
transfer?: Transferable[]
): void;
(message: any, options?: WindowPostMessageOptions): void;
};
}

interface AppWindow extends Window {
Expand Down
Loading

0 comments on commit 5e9dab7

Please sign in to comment.