react-native-ui-lib 8.2.1-snapshot.7671 → 8.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "8.2.1-snapshot.7671",
3
+ "version": "8.2.1",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -3,16 +3,6 @@ const _ = require('lodash');
3
3
  const chalk = require('chalk');
4
4
  const childProcess = require('child_process');
5
5
  const readline = require('readline');
6
- const BRANCH_CATEGORIES = [
7
- {name: 'features', branch: 'feat/', title: ':gift: Features'},
8
- {name: 'web', branch: 'web/', title: ':spider_web: Web support'},
9
- {name: 'fixes', branch: 'fix/', title: ':wrench: Fixes'},
10
- {name: 'infra', branch: 'infra/', title: ':gear: Maintenance & Infra'}
11
- ];
12
-
13
- function getBranchPrefixes() {
14
- return BRANCH_CATEGORIES.map(category => category.branch);
15
- }
16
6
 
17
7
  function fetchLatestReleaseDate(tagPrefix, version) {
18
8
  const release = childProcess.execSync(`gh release view ${tagPrefix}${version}`).toString();
@@ -181,7 +171,10 @@ function generateReleaseNotesFromPRs(PRs, categories, header) {
181
171
  }
182
172
 
183
173
  const prCategories = [
184
- ...BRANCH_CATEGORIES,
174
+ {name: 'features', branch: 'feat/', title: ':gift: Features'},
175
+ {name: 'web', branch: 'web/', title: ':spider_web: Web support'},
176
+ {name: 'fixes', branch: 'fix/', title: ':wrench: Fixes'},
177
+ {name: 'infra', branch: 'infra/', title: ':gear: Maintenance & Infra'},
185
178
  ...categories,
186
179
  {name: 'others', branch: '', title: 'OTHERS'},
187
180
  {
@@ -260,4 +253,4 @@ async function generateReleaseNotes(latestVersion,
260
253
  });
261
254
  }
262
255
 
263
- module.exports = {generateReleaseNotes, generateReleaseNotesFromPRs, parsePR, getBranchPrefixes};
256
+ module.exports = {generateReleaseNotes, generateReleaseNotesFromPRs, parsePR};