Skip to content

Commit

Permalink
Prepare code for release 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Cierpliwy committed Jan 9, 2020
1 parent 22b8277 commit e8b8652
Show file tree
Hide file tree
Showing 8 changed files with 2,775 additions and 1,244 deletions.
37 changes: 8 additions & 29 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*

; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
node_modules/react-native/Libraries/react-native/React.js

; Ignore polyfills
node_modules/react-native/Libraries/polyfills/.*

Expand All @@ -21,7 +13,10 @@ node_modules/react-native/Libraries/polyfills/.*
node_modules/warning/.*

; Flow doesn't support platforms
.*/Libraries/Utilities/HMRLoadingView.js
.*/Libraries/Utilities/LoadingView.js

; Integration tests
.*/integration-tests/.*

[untyped]
.*/node_modules/@react-native-community/cli/.*/.*
Expand All @@ -42,27 +37,11 @@ module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js

module.system=haste
module.system.haste.use_name_reducers=true
# get basename
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
# strip .js or .js.flow suffix
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
# strip .ios suffix
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
module.system.haste.paths.blacklist=.*/__tests__/.*
module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation.js
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*

munge_underscores=true

module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
Expand Down Expand Up @@ -96,4 +75,4 @@ untyped-import
untyped-type-import

[version]
^0.98.0
^0.105.0
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
120
],
"javascript.validate.enable": false,
// Prettier
"prettier.eslintIntegration": false,
// Flow
"flow.useNPMPackagedFlow": true
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
**1.1.1**

- Update development dependencies
- Add more information to the README and INTRO file.
- Remove `const` from enum types in the typescript definition file.
- Add backpressure buffer for notifications.

**1.1.0**

- Add support for descriptors.
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ What this library does NOT support:

## Recent Changes

**1.1.0**
**1.1.1**

- Add support for descriptors.
- Fix XCode 11 compilation error.
- Update development dependencies
- Add more information to the README and INTRO file.
- Remove `const` from enum types in the typescript definition file.
- Add backpressure buffer for notifications.

[All previous changes](CHANGELOG.md)

Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
1. Commit your changes.
2. Reinstall all dependencies `git clean -xfd && npm install`.
* If there are any vulnerabilities fix them with `npm audit fix`.
* Make sure `package-lock.json` and `yarn.lock` files are updated.
* Make sure `package-lock.json` is updated.
3. Check for all type and documentation errors by running `npm run lint`.
4. Run local tests via `npm test`.
5. Bump version in `package.json` file.
Expand Down
12 changes: 7 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!doctype html>
<html>
<html lang="en">
<head>
<meta charset='utf-8'>
<title>react-native-ble-plx 1.1.0 | Documentation</title>
<title>react-native-ble-plx 1.1.1 | Documentation</title>
<meta name='description' content='React Native Bluetooth Low Energy library'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>react-native-ble-plx</h3>
<div class='mb1'><code>1.1.0</code></div>
<div class='mb1'><code>1.1.1</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down Expand Up @@ -2018,8 +2018,10 @@ <h2>Connecting and discovering services and characteristics</h2>
.catch(<span class="hljs-function">(<span class="hljs-params">error</span>) =&gt;</span> {
<span class="hljs-comment">// Handle errors</span>
});</pre>
<p>Discovery of services and characteristics is required to be executed only once. Additionally
it can be a long process depending on number of characteristics and services available.</p>
<p>Discovery of services and characteristics is required to be executed once per connection*.
It can be a long process depending on number of characteristics and services available.</p>
<p>* Extremely rarely, when peripheral's service/characteristic set can change during a connection
an additional service discovery may be needed.</p>
<h2>Read, write and monitor values</h2>
<p>After successful discovery of services you can call </p>
<ul>
Expand Down
Loading

0 comments on commit e8b8652

Please sign in to comment.