Skip to content
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

fix: npmrc registry url #2112

Merged
merged 16 commits into from
Apr 5, 2024
Merged

fix: npmrc registry url #2112

merged 16 commits into from
Apr 5, 2024

Conversation

anuraghazra
Copy link
Member

@anuraghazra anuraghazra commented Apr 3, 2024

Description

Changes

  • Forced npm registry to use the default npm registry instead of our local machine's razorpay scoped registry. (Since we are not using any private packages)
  • Fixed yarn resolutions for react types. Since we had to regenerate the yarn.lock things got messed up

Additional Information

Component Checklist

  • Update Component Status Page
  • Perform Manual Testing in Other Browsers
  • Add KitchenSink Story
  • Add Interaction Tests (if applicable)
  • Add changeset

Copy link

changeset-bot bot commented Apr 3, 2024

⚠️ No Changeset found

Latest commit: f72c1b5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Apr 3, 2024

✅ PR title follows Conventional Commits specification.

Comment on lines 308 to 309
"react": "18.2.0",
"@types/react": "17.0.38",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should target upgrading types to v18

@@ -0,0 +1 @@
@razorpay:registry=https://registry.npmjs.org/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the default npmjs registry?

@@ -250,7 +250,7 @@
"react-native": "0.72.3",
"react-native-gesture-handler": "2.9.0",
"react-native-reanimated": "3.4.2",
"react-native-svg": "12.3.0",
"react-native-svg": "15.1.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Member Author

@anuraghazra anuraghazra Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v12 types are not compatible with react18 types.

plus we and most of our consumers are using react-native >v70, thus according to this table we should be using v15 of rnsvg.

Copy link

codesandbox-ci bot commented Apr 4, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f72c1b5:

Sandbox Source
razorpay/blade: basic Configuration

@rzpcibot
Copy link
Collaborator

rzpcibot commented Apr 4, 2024

Bundle Size Report

Updated Components
Status Component Base Size (kb) Current Size (kb) Diff
Accordion, AccordionItemHeader, AccordionItemBody, AccordionItem 7.597 7.324 -0.273 KB
ActionList, ActionListItem, ActionListItemBadge, ActionListItemBadgeGroup, ActionListItemIcon, ActionListItemText, ActionListSection 12.829 12.598 -0.231 KB
Alert 11.775 11.573 -0.202 KB
Amount 1.329 1.142 -0.187 KB
Badge 1.050 0.860 -0.190 KB
BladeProvider 1.868 1.694 -0.174 KB
BottomSheet 9.723 9.455 -0.268 KB
Box 0.977 0.790 -0.187 KB
Breadcrumb, BreadcrumbItem 2.776 2.576 -0.200 KB
ButtonGroup 1.373 1.179 -0.194 KB
Card, CardBody, CardHeader, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderTrailing, CardFooter, CardFooterLeading, CardFooterTrailing 9.424 9.215 -0.209 KB
Carousel, CarouselItem 7.061 6.869 -0.192 KB
Checkbox 6.248 6.038 -0.210 KB
Chip, ChipGroup 5.585 5.383 -0.202 KB
Collapsible, CollapsibleLink, CollapsibleButton, CollapsibleBody 9.696 9.484 -0.212 KB
Counter 1.002 0.821 -0.181 KB
Divider 0.770 0.567 -0.203 KB
Drawer, DrawerBody, DrawerHeader 16.186 16.157 -0.029 KB
Dropdown, DropdownOverlay, DropdownButton, DropdownLink, DropdownFooter, DropdownHeader 22.991 23.047 +0.056 KB
FileUpload 13.737 13.514 -0.223 KB
Indicator 1.142 0.965 -0.177 KB
List, ListItem, ListItemLink, ListItemCode, ListItemText 5.305 5.116 -0.189 KB
Modal 12.815 12.841 +0.026 KB
Popover, PopoverInteractiveWrapper 20.557 20.649 +0.092 KB
ProgressBar 1.927 1.734 -0.193 KB
Radio 5.001 4.760 -0.241 KB
Skeleton 1.013 0.804 -0.209 KB
SpotlightPopoverTour, SpotlightPopoverTourFooter, SpotlightPopoverTourStep 28.564 28.568 +0.004 KB
Switch 4.773 4.546 -0.227 KB
Table, TableHeader, TableHeaderCell, TableHeaderRow, TableBody, TableCell, TableRow, TableFooter, TableFooterCell, TableFooterRow, TablePagination, TableToolbar, TableToolbarActions 51.921 51.914 -0.007 KB
Tabs, TabItem, TabList, TabPanel 6.835 6.652 -0.183 KB
Tag 3.675 3.479 -0.196 KB
ToastContainer, useToast 12.994 12.793 -0.201 KB
Tooltip, TooltipInteractiveWrapper 15.426 15.490 +0.064 KB
Button 6.220 6.005 -0.215 KB
IconButton 1.017 0.809 -0.208 KB
CheckboxGroup 4.407 4.202 -0.205 KB
SelectInput, AutoComplete 18.918 18.709 -0.209 KB
OTPInput 13.037 12.821 -0.216 KB
PasswordInput 14.966 14.760 -0.206 KB
PhoneNumberInput 48.597 48.556 -0.041 KB
TextArea 13.325 13.101 -0.224 KB
TextInput 14.966 14.743 -0.223 KB
Link 2.346 2.153 -0.193 KB
RadioGroup 4.362 4.170 -0.192 KB
Spinner 2.161 1.950 -0.211 KB
Code 0.840 0.645 -0.195 KB
Display 0.736 0.544 -0.192 KB
Heading, getHeadingProps 0.681 0.486 -0.195 KB
Text 0.233 0.003 -0.230 KB

Generated by 🚫 dangerJS against f72c1b5

Copy link
Member

@saurabhdaware saurabhdaware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. Can you check if we can do something about those anys 🙈

@@ -2,7 +2,7 @@ name: Blade PR Title Check

on:
pull_request_target:
types: [open, edited, synchronize]
types: [opened, edited, synchronize]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was incorrect all along? how was it working 😄 ?

"@types/react-native": "0.64.4",
"@types/styled-components": "5.1.25",
"@types/styled-components-react-native": "5.1.3",
"@types/react": "18.2.24",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

styled-components, react-native types not needed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh just saw they are added in blade's package.json. So why is types/react needed here but types/styled-components are in blade's package.json?

@kamleshchandnani kamleshchandnani merged commit 460a23d into master Apr 5, 2024
17 checks passed
@kamleshchandnani kamleshchandnani deleted the anu/registry-url-fix branch April 5, 2024 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants