Skip to content

Commit

Permalink
Bump deps after releasing 4.15.3 (#4392)
Browse files Browse the repository at this point in the history
* Bump deps

* Debump react-redux

* Fix ESLint

* Fix tests

* Fix tests

* Add jest-environment-jsdom

* Fix tests

* Fix test

* Fix test

* Update entry

* Fix tests by transpiling uuid

* Fix expect
  • Loading branch information
compulim authored Aug 14, 2022
1 parent d4b4fef commit 87ce14c
Show file tree
Hide file tree
Showing 51 changed files with 54,281 additions and 50,100 deletions.
65 changes: 65 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,71 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Changed

- Bumped all dependencies to the latest versions, by [@compulim](https://github.com/compulim) in PR [#4392](https://github.com/microsoft/BotFramework-WebChat/pull/4392)
- Production dependencies
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/runtime)
- [`@emotion/[email protected]`](https://npmjs.com/package/@emotion/css)
- [`[email protected]`](https://npmjs.com/package/core-js)
- [`[email protected]`](https://npmjs.com/package/markdown-it-attrs)
- [`[email protected]`](https://npmjs.com/package/markdown-it)
- [`[email protected]`](https://npmjs.com/package/redux)
- [`[email protected]`](https://npmjs.com/package/sanitize-html)
- Development dependencies
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/cli)
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/core)
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/plugin-proposal-class-properties)
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/plugin-proposal-object-rest-spread)
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/plugin-transform-runtime)
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/plugin-transform-typescript)
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/preset-env)
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/preset-react)
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/preset-typescript)
- [`@babel/[email protected]`](https://npmjs.com/package/@babel/runtime)
- [`@emotion/[email protected]`](https://npmjs.com/package/@emotion/react)
- [`@fluentui/[email protected]`](https://npmjs.com/package/@fluentui/react)
- [`@types/[email protected]`](https://npmjs.com/package/@types/node)
- [`@types/[email protected]`](https://npmjs.com/package/@types/react)
- [`@typescript-eslint/[email protected]`](https://npmjs.com/package/@typescript-eslint/eslint-plugin)
- [`@typescript-eslint/[email protected]`](https://npmjs.com/package/@typescript-eslint/parser)
- [`[email protected]`](https://npmjs.com/package/babel-jest)
- [`[email protected]`](https://npmjs.com/package/babel-loader)
- [`[email protected]`](https://npmjs.com/package/babel-plugin-transform-inline-environment-variables)
- [`[email protected]`](https://npmjs.com/package/concurrently)
- [`[email protected]`](https://npmjs.com/package/core-js)
- [`[email protected]`](https://npmjs.com/package/dotenv)
- [`[email protected]`](https://npmjs.com/package/error-stack-parser)
- [`[email protected]`](https://npmjs.com/package/esbuild)
- [`[email protected]`](https://npmjs.com/package/eslint-plugin-prettier)
- [`[email protected]`](https://npmjs.com/package/eslint-plugin-react-hooks)
- [`[email protected]`](https://npmjs.com/package/eslint-plugin-react)
- [`[email protected]`](https://npmjs.com/package/eslint-plugin-security)
- [`[email protected]`](https://npmjs.com/package/eslint)
- [`[email protected]`](https://npmjs.com/package/express)
- [`[email protected]`](https://npmjs.com/package/http-proxy-middleware)
- [`[email protected]`](https://npmjs.com/package/husky)
- [`[email protected]`](https://npmjs.com/package/jest-environment-node)
- [`[email protected]`](https://npmjs.com/package/jest-image-snapshot)
- [`[email protected]`](https://npmjs.com/package/jest-junit)
- [`[email protected]`](https://npmjs.com/package/jest-trx-results-processor)
- [`[email protected]`](https://npmjs.com/package/jest)
- [`[email protected]`](https://npmjs.com/package/lerna)
- [`[email protected]`](https://npmjs.com/package/lint-staged)
- [`[email protected]`](https://npmjs.com/package/node-dev)
- [`[email protected]`](https://npmjs.com/package/nodemon)
- [`[email protected]`](https://npmjs.com/package/nopt)
- [`[email protected]`](https://npmjs.com/package/prettier)
- [`[email protected]`](https://npmjs.com/package/react-scripts)
- [`[email protected]`](https://npmjs.com/package/selenium-webdriver)
- [`[email protected]`](https://npmjs.com/package/serve)
- [`[email protected]`](https://npmjs.com/package/source-map-loader)
- [`[email protected]`](https://npmjs.com/package/strip-ansi)
- [`[email protected]`](https://npmjs.com/package/terser-webpack-plugin)
- [`[email protected]`](https://npmjs.com/package/typescript)
- [`[email protected]`](https://npmjs.com/package/webpack-cli)
- [`[email protected]`](https://npmjs.com/package/webpack)

## [4.15.3] - 2022-08-10

### Breaking changes
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 11 additions & 4 deletions __tests__/adaptiveCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import { logging } from 'selenium-webdriver';
import { imageSnapshotOptions, timeouts } from './constants.json';
import allImagesLoaded from './setup/conditions/allImagesLoaded';
import minNumActivitiesShown from './setup/conditions/minNumActivitiesShown';
import scrollToBottomCompleted from './setup/conditions/scrollToBottomCompleted';
import uiConnected from './setup/conditions/uiConnected';

import createAdaptiveCardsHostConfig from '../packages/bundle/src/adaptiveCards/Styles/adaptiveCardHostConfig';

// selenium-webdriver API doc:
// https://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_WebDriver.html

Expand Down Expand Up @@ -58,7 +55,17 @@ test('action styles', async () => {
});

test('breakfast card with custom host config', async () => {
const adaptiveCardHostConfig = createAdaptiveCardsHostConfig({ bubbleTextColor: '#FF0000' });
const adaptiveCardHostConfig = {
containerStyles: {
default: {
foregroundColors: {
default: {
default: '#FF9900'
}
}
}
}
};

const { driver, pageObjects } = await setupWebDriver({
props: {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/html/assets/transcripts/markdown-message.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"role": "bot"
},
"id": "1.0",
"text": "## Basic formatting\r\n\r\nParagraphs can be written like so. A paragraph is the \r\nbasic block of Markdown. \r\nA paragraph is what text will turn \r\ninto when there is no reason it should become anything else.\r\n\r\nParagraphs must be separated by a blank line. Basic formatting of *italics* \nand **bold** is supported. This *can be **nested** like* so.\r\n\r\n## Lists\r\n\r\n### Ordered list\r\n\r\n1. one\r\n2. two\r\n3. three\r\n4. four\r\n\r\n### Unordered list\r\n\r\n* An item\r\n* Another item\r\n* Yet another item\r\n* And there\\'s more...\r\n\r\n## Paragraph modifiers\r\n\r\n### Code block\r\n\r\n```\r\nCode blocks are very useful for developers and other \r\npeople who look at code or other things that are written \r\nin plain text. As you can see, it uses a fixed-width font.\r\n```\r\n\r\nYou can also make `inline code` to add code into other things.\r\n\r\n### Quote\r\n\r\n> Here is a quote. What this is should be self explanatory. \r\n> Quotes are automatically indented when they are used.",
"text": "## Basic formatting\r\n\r\nParagraphs can be written like so. A paragraph is the \r\nbasic block of Markdown. \r\nA paragraph is what text will turn \r\ninto when there is no reason it should become anything else.\r\n\r\nParagraphs must be separated by a blank line. Basic formatting of *italics* \nand **bold** is supported. This *can be **nested** like* so.\r\n\r\n## Lists\r\n\r\n### Ordered list\r\n\r\n1. one\r\n2. two\r\n3. three\r\n4. four\r\n\r\n### Unordered list\r\n\r\n* An item\r\n* Another item\r\n* Yet another item\r\n* And there's more...\r\n\r\n## Paragraph modifiers\r\n\r\n### Code block\r\n\r\n```\r\nCode blocks are very useful for developers and other \r\npeople who look at code or other things that are written \r\nin plain text. As you can see, it uses a fixed-width font.\r\n```\r\n\r\nYou can also make `inline code` to add code into other things.\r\n\r\n### Quote\r\n\r\n> Here is a quote. What this is should be self explanatory. \r\n> Quotes are automatically indented when they are used.",
"timestamp": 0,
"type": "message"
}
Expand Down
4 changes: 2 additions & 2 deletions __tests__/setup/jestNodeEnvironmentWithTimezone.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Adopted from https://stackoverflow.com/questions/56261381/how-do-i-set-a-timezone-in-my-jest-config.
const NodeEnvironment = require('jest-environment-node');
const { TestEnvironment } = require('jest-environment-node');

/**
* Timezone-aware Jest environment. Supports `@timezone` JSDoc
* pragma within test suites to set timezone.
*/
module.exports = class TimezoneAwareNodeEnvironment extends NodeEnvironment {
module.exports = class TimezoneAwareNodeEnvironment extends TestEnvironment {
constructor(config, context) {
// Allow test suites to change timezone, even if TZ is passed in a script.
// Falls back to existing TZ environment variable or UTC if no timezone is specified.
Expand Down
2 changes: 1 addition & 1 deletion babel-passthru-transformer.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = { process: value => value };
module.exports = { process: value => ({ code: value }) };
10 changes: 9 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { defaults } = require('jest-config');
const { join, relative } = require('path');

module.exports = {
Expand Down Expand Up @@ -99,5 +100,12 @@ module.exports = {
transform: {
'[\\/]__tests__[\\/]html[\\/]': './babel-passthru-transformer.js',
'\\.[jt]sx?$': './babel-jest-config.js'
}
},
transformIgnorePatterns: [
// jest-environment-jsdom import packages as browser.
// Packages, such as "uuid", export itself for browser as ES5 + ESM.
// Since jest@28 cannot consume ESM yet, we need to transpile these packages.
'/node_modules/(?!(uuid)/)',
...defaults.transformIgnorePatterns.filter(pattern => pattern !== '/node_modules/')
]
};
Loading

0 comments on commit 87ce14c

Please sign in to comment.